blob: a74252e580a564b833bf4fa06c4c53dc71e61586 [file] [log] [blame]
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00001What: /sys/bus/intel_th/devices/<intel_th_id>-msc<msc-id>/wrap
2Date: June 2015
3KernelVersion: 4.3
4Contact: Alexander Shishkin <alexander.shishkin@linux.intel.com>
5Description: (RW) Configure MSC buffer wrapping. 1 == wrapping enabled.
6
7What: /sys/bus/intel_th/devices/<intel_th_id>-msc<msc-id>/mode
8Date: June 2015
9KernelVersion: 4.3
10Contact: Alexander Shishkin <alexander.shishkin@linux.intel.com>
11Description: (RW) Configure MSC operating mode:
Olivier Deprez157378f2022-04-04 15:47:50 +020012
Andrew Scullb4b6d4a2019-01-02 15:54:55 +000013 - "single", for contiguous buffer mode (high-order alloc);
14 - "multi", for multiblock mode;
15 - "ExI", for DCI handler mode;
David Brazdil0f672f62019-12-10 10:32:29 +000016 - "debug", for debug mode;
17 - any of the currently loaded buffer sinks.
Olivier Deprez157378f2022-04-04 15:47:50 +020018
Andrew Scullb4b6d4a2019-01-02 15:54:55 +000019 If operating mode changes, existing buffer is deallocated,
20 provided there are no active users and tracing is not enabled,
21 otherwise the write will fail.
22
23What: /sys/bus/intel_th/devices/<intel_th_id>-msc<msc-id>/nr_pages
24Date: June 2015
25KernelVersion: 4.3
26Contact: Alexander Shishkin <alexander.shishkin@linux.intel.com>
27Description: (RW) Configure MSC buffer size for "single" or "multi" modes.
Olivier Deprez157378f2022-04-04 15:47:50 +020028
Andrew Scullb4b6d4a2019-01-02 15:54:55 +000029 In single mode, this is a single number of pages, has to be
30 power of 2. In multiblock mode, this is a comma-separated list
31 of numbers of pages for each window to be allocated. Number of
32 windows is not limited.
Olivier Deprez157378f2022-04-04 15:47:50 +020033
Andrew Scullb4b6d4a2019-01-02 15:54:55 +000034 Writing to this file deallocates existing buffer (provided
35 there are no active users and tracing is not enabled) and then
36 allocates a new one.
37
David Brazdil0f672f62019-12-10 10:32:29 +000038What: /sys/bus/intel_th/devices/<intel_th_id>-msc<msc-id>/win_switch
39Date: May 2019
40KernelVersion: 5.2
41Contact: Alexander Shishkin <alexander.shishkin@linux.intel.com>
42Description: (RW) Trigger window switch for the MSC's buffer, in
43 multi-window mode. In "multi" mode, accepts writes of "1", thereby
44 triggering a window switch for the buffer. Returns an error in any
45 other operating mode or attempts to write something other than "1".
Andrew Scullb4b6d4a2019-01-02 15:54:55 +000046
Olivier Deprez157378f2022-04-04 15:47:50 +020047What: /sys/bus/intel_th/devices/<intel_th_id>-msc<msc-id>/stop_on_full
48Date: March 2020
49KernelVersion: 5.7
50Contact: Alexander Shishkin <alexander.shishkin@linux.intel.com>
51Description: (RW) Configure whether trace stops when the last available window
52 becomes full (1/y/Y) or wraps around and continues until the next
53 window becomes available again (0/n/N).
54