162306a36Sopenharmony_ciWhat: /sys/bus/intel_th/devices/<intel_th_id>-msc<msc-id>/wrap 262306a36Sopenharmony_ciDate: June 2015 362306a36Sopenharmony_ciKernelVersion: 4.3 462306a36Sopenharmony_ciContact: Alexander Shishkin <alexander.shishkin@linux.intel.com> 562306a36Sopenharmony_ciDescription: (RW) Configure MSC buffer wrapping. 1 == wrapping enabled. 662306a36Sopenharmony_ci 762306a36Sopenharmony_ciWhat: /sys/bus/intel_th/devices/<intel_th_id>-msc<msc-id>/mode 862306a36Sopenharmony_ciDate: June 2015 962306a36Sopenharmony_ciKernelVersion: 4.3 1062306a36Sopenharmony_ciContact: Alexander Shishkin <alexander.shishkin@linux.intel.com> 1162306a36Sopenharmony_ciDescription: (RW) Configure MSC operating mode: 1262306a36Sopenharmony_ci 1362306a36Sopenharmony_ci - "single", for contiguous buffer mode (high-order alloc); 1462306a36Sopenharmony_ci - "multi", for multiblock mode; 1562306a36Sopenharmony_ci - "ExI", for DCI handler mode; 1662306a36Sopenharmony_ci - "debug", for debug mode; 1762306a36Sopenharmony_ci - any of the currently loaded buffer sinks. 1862306a36Sopenharmony_ci 1962306a36Sopenharmony_ci If operating mode changes, existing buffer is deallocated, 2062306a36Sopenharmony_ci provided there are no active users and tracing is not enabled, 2162306a36Sopenharmony_ci otherwise the write will fail. 2262306a36Sopenharmony_ci 2362306a36Sopenharmony_ciWhat: /sys/bus/intel_th/devices/<intel_th_id>-msc<msc-id>/nr_pages 2462306a36Sopenharmony_ciDate: June 2015 2562306a36Sopenharmony_ciKernelVersion: 4.3 2662306a36Sopenharmony_ciContact: Alexander Shishkin <alexander.shishkin@linux.intel.com> 2762306a36Sopenharmony_ciDescription: (RW) Configure MSC buffer size for "single" or "multi" modes. 2862306a36Sopenharmony_ci 2962306a36Sopenharmony_ci In single mode, this is a single number of pages, has to be 3062306a36Sopenharmony_ci power of 2. In multiblock mode, this is a comma-separated list 3162306a36Sopenharmony_ci of numbers of pages for each window to be allocated. Number of 3262306a36Sopenharmony_ci windows is not limited. 3362306a36Sopenharmony_ci 3462306a36Sopenharmony_ci Writing to this file deallocates existing buffer (provided 3562306a36Sopenharmony_ci there are no active users and tracing is not enabled) and then 3662306a36Sopenharmony_ci allocates a new one. 3762306a36Sopenharmony_ci 3862306a36Sopenharmony_ciWhat: /sys/bus/intel_th/devices/<intel_th_id>-msc<msc-id>/win_switch 3962306a36Sopenharmony_ciDate: May 2019 4062306a36Sopenharmony_ciKernelVersion: 5.2 4162306a36Sopenharmony_ciContact: Alexander Shishkin <alexander.shishkin@linux.intel.com> 4262306a36Sopenharmony_ciDescription: (RW) Trigger window switch for the MSC's buffer, in 4362306a36Sopenharmony_ci multi-window mode. In "multi" mode, accepts writes of "1", thereby 4462306a36Sopenharmony_ci triggering a window switch for the buffer. Returns an error in any 4562306a36Sopenharmony_ci other operating mode or attempts to write something other than "1". 4662306a36Sopenharmony_ci 4762306a36Sopenharmony_ciWhat: /sys/bus/intel_th/devices/<intel_th_id>-msc<msc-id>/stop_on_full 4862306a36Sopenharmony_ciDate: March 2020 4962306a36Sopenharmony_ciKernelVersion: 5.7 5062306a36Sopenharmony_ciContact: Alexander Shishkin <alexander.shishkin@linux.intel.com> 5162306a36Sopenharmony_ciDescription: (RW) Configure whether trace stops when the last available window 5262306a36Sopenharmony_ci becomes full (1/y/Y) or wraps around and continues until the next 5362306a36Sopenharmony_ci window becomes available again (0/n/N). 5462306a36Sopenharmony_ci 55