2023-08-05 04:49:52

by Zheng Yejian

[permalink] [raw]
Subject: [PATCH v2 0/2] tracing: Fix cpu buffers unavailable problem and add its testcase

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 <[email protected]> with
suggestion from Steve:
- Link: https://lore.kernel.org/all/[email protected]/
- Link: https://lore.kernel.org/all/[email protected]/

- 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/[email protected]/

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

--
2.25.1