]> git.baikalelectronics.ru Git - kernel.git/commit
intel_th: msu: Make stopping the trace optional
authorAlexander Shishkin <alexander.shishkin@linux.intel.com>
Thu, 19 Mar 2020 08:51:52 +0000 (10:51 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 24 Mar 2020 12:45:24 +0000 (13:45 +0100)
commit8622dfefb6ac333c58d354331d1bf78a2927ce51
tree4c2231b8ee97abfb55854d74c7fc411dfa768527
parent3baf89abca196f6dcb7038fd5342fd6e82f3260c
intel_th: msu: Make stopping the trace optional

Some use cases prefer to keep collecting the trace data into the last
available window while the other windows are being offloaded instead of
stopping the trace. In this scenario, the window switch happens
automatically when the next window becomes available again.

Add an option to allow this and a sysfs attribute to enable it.

Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20200319085152.52183-1-alexander.shishkin@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/ABI/testing/sysfs-bus-intel_th-devices-msc
drivers/hwtracing/intel_th/msu.c