[v2,0/2] tracing: Fix cpu buffers unavailable problem and add its testcase

Message ID 20230805033816.3284594-1-zhengyejian1@huawei.com
Headers
Series tracing: Fix cpu buffers unavailable problem and add its testcase |

Message

Zheng Yejian Aug. 5, 2023, 3:38 a.m. UTC
  Hi,

This is the v2 to fix cpu buffers unavailable problem after some
operations on file 'tracing_cpumask' and 'snapshot', also upload
its testcase. Changes show as below.

v2:
  - Fix compile issue reported-by kernel test robot <lkp@intel.com> with
    suggestion from Steve:
    - Link: https://lore.kernel.org/all/202308050731.PQutr3r0-lkp@intel.com/
    - Link: https://lore.kernel.org/all/20230804125107.41d6cdb1@gandalf.local.home/

  - Add a step to set tracing_on in testcase (see patch 2) and add
    descriptions of each step.

v1:
  - Link: https://lore.kernel.org/all/20230804124549.2562977-1-zhengyejian1@huawei.com/

Zheng Yejian (2):
  tracing: Fix cpu buffers unavailable due to 'record_disabled' messed
  selftests/ftrace: Add a basic testcase for snapshot

 kernel/trace/trace.c                          |  6 ++++
 .../ftrace/test.d/00basic/snapshot1.tc        | 31 +++++++++++++++++++
 2 files changed, 37 insertions(+)
 create mode 100644 tools/testing/selftests/ftrace/test.d/00basic/snapshot1.tc