diff options
author | Ross Zwisler <zwisler@google.com> | 2023-03-13 23:56:28 +0300 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2023-03-14 07:51:30 +0300 |
commit | ab4c15feb2ebcf9f4abe31457d7cbc8f3de9c2ab (patch) | |
tree | d66282c6c7ff3afb5242d46dfb45925ec17d206f /tools/testing/selftests/bpf/progs/test_stacktrace_map.c | |
parent | 27d7fdf06fdb84455ff585b58c8034e2fab42583 (diff) | |
download | linux-ab4c15feb2ebcf9f4abe31457d7cbc8f3de9c2ab.tar.xz |
selftests/bpf: use canonical ftrace path
The canonical location for the tracefs filesystem is at
/sys/kernel/tracing.
But, from Documentation/trace/ftrace.rst:
Before 4.1, all ftrace tracing control files were within the debugfs
file system, which is typically located at /sys/kernel/debug/tracing.
For backward compatibility, when mounting the debugfs file system,
the tracefs file system will be automatically mounted at:
/sys/kernel/debug/tracing
Many tests in the bpf selftest code still refer to this older debugfs
path, so let's update them to avoid confusion.
Signed-off-by: Ross Zwisler <zwisler@google.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Link: https://lore.kernel.org/r/20230313205628.1058720-3-zwisler@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_stacktrace_map.c')
-rw-r--r-- | tools/testing/selftests/bpf/progs/test_stacktrace_map.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/bpf/progs/test_stacktrace_map.c b/tools/testing/selftests/bpf/progs/test_stacktrace_map.c index 728dbd39eff0..47568007b668 100644 --- a/tools/testing/selftests/bpf/progs/test_stacktrace_map.c +++ b/tools/testing/selftests/bpf/progs/test_stacktrace_map.c @@ -38,7 +38,7 @@ struct { __type(value, stack_trace_t); } stack_amap SEC(".maps"); -/* taken from /sys/kernel/debug/tracing/events/sched/sched_switch/format */ +/* taken from /sys/kernel/tracing/events/sched/sched_switch/format */ struct sched_switch_args { unsigned long long pad; char prev_comm[TASK_COMM_LEN]; |