18c2ecf20Sopenharmony_ciWhat: /sys/bus/intel_th/devices/<intel_th_id>-msc<msc-id>/wrap 28c2ecf20Sopenharmony_ciDate: June 2015 38c2ecf20Sopenharmony_ciKernelVersion: 4.3 48c2ecf20Sopenharmony_ciContact: Alexander Shishkin <alexander.shishkin@linux.intel.com> 58c2ecf20Sopenharmony_ciDescription: (RW) Configure MSC buffer wrapping. 1 == wrapping enabled. 68c2ecf20Sopenharmony_ci 78c2ecf20Sopenharmony_ciWhat: /sys/bus/intel_th/devices/<intel_th_id>-msc<msc-id>/mode 88c2ecf20Sopenharmony_ciDate: June 2015 98c2ecf20Sopenharmony_ciKernelVersion: 4.3 108c2ecf20Sopenharmony_ciContact: Alexander Shishkin <alexander.shishkin@linux.intel.com> 118c2ecf20Sopenharmony_ciDescription: (RW) Configure MSC operating mode: 128c2ecf20Sopenharmony_ci 138c2ecf20Sopenharmony_ci - "single", for contiguous buffer mode (high-order alloc); 148c2ecf20Sopenharmony_ci - "multi", for multiblock mode; 158c2ecf20Sopenharmony_ci - "ExI", for DCI handler mode; 168c2ecf20Sopenharmony_ci - "debug", for debug mode; 178c2ecf20Sopenharmony_ci - any of the currently loaded buffer sinks. 188c2ecf20Sopenharmony_ci 198c2ecf20Sopenharmony_ci If operating mode changes, existing buffer is deallocated, 208c2ecf20Sopenharmony_ci provided there are no active users and tracing is not enabled, 218c2ecf20Sopenharmony_ci otherwise the write will fail. 228c2ecf20Sopenharmony_ci 238c2ecf20Sopenharmony_ciWhat: /sys/bus/intel_th/devices/<intel_th_id>-msc<msc-id>/nr_pages 248c2ecf20Sopenharmony_ciDate: June 2015 258c2ecf20Sopenharmony_ciKernelVersion: 4.3 268c2ecf20Sopenharmony_ciContact: Alexander Shishkin <alexander.shishkin@linux.intel.com> 278c2ecf20Sopenharmony_ciDescription: (RW) Configure MSC buffer size for "single" or "multi" modes. 288c2ecf20Sopenharmony_ci 298c2ecf20Sopenharmony_ci In single mode, this is a single number of pages, has to be 308c2ecf20Sopenharmony_ci power of 2. In multiblock mode, this is a comma-separated list 318c2ecf20Sopenharmony_ci of numbers of pages for each window to be allocated. Number of 328c2ecf20Sopenharmony_ci windows is not limited. 338c2ecf20Sopenharmony_ci 348c2ecf20Sopenharmony_ci Writing to this file deallocates existing buffer (provided 358c2ecf20Sopenharmony_ci there are no active users and tracing is not enabled) and then 368c2ecf20Sopenharmony_ci allocates a new one. 378c2ecf20Sopenharmony_ci 388c2ecf20Sopenharmony_ciWhat: /sys/bus/intel_th/devices/<intel_th_id>-msc<msc-id>/win_switch 398c2ecf20Sopenharmony_ciDate: May 2019 408c2ecf20Sopenharmony_ciKernelVersion: 5.2 418c2ecf20Sopenharmony_ciContact: Alexander Shishkin <alexander.shishkin@linux.intel.com> 428c2ecf20Sopenharmony_ciDescription: (RW) Trigger window switch for the MSC's buffer, in 438c2ecf20Sopenharmony_ci multi-window mode. In "multi" mode, accepts writes of "1", thereby 448c2ecf20Sopenharmony_ci triggering a window switch for the buffer. Returns an error in any 458c2ecf20Sopenharmony_ci other operating mode or attempts to write something other than "1". 468c2ecf20Sopenharmony_ci 478c2ecf20Sopenharmony_ciWhat: /sys/bus/intel_th/devices/<intel_th_id>-msc<msc-id>/stop_on_full 488c2ecf20Sopenharmony_ciDate: March 2020 498c2ecf20Sopenharmony_ciKernelVersion: 5.7 508c2ecf20Sopenharmony_ciContact: Alexander Shishkin <alexander.shishkin@linux.intel.com> 518c2ecf20Sopenharmony_ciDescription: (RW) Configure whether trace stops when the last available window 528c2ecf20Sopenharmony_ci becomes full (1/y/Y) or wraps around and continues until the next 538c2ecf20Sopenharmony_ci window becomes available again (0/n/N). 548c2ecf20Sopenharmony_ci 55