Re: [PATCH bpf-next v4 2/2] selftests/bpf: use canonical ftrace path
From: Steven Rostedt
Date: Mon Mar 13 2023 - 18:40:00 EST
On Mon, 13 Mar 2023 14:56:28 -0600
Ross Zwisler <zwisler@xxxxxxxxxx> wrote:
> From: Ross Zwisler <zwisler@xxxxxxxxxx>
>
> 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@xxxxxxxxxx>
> Acked-by: Michael S. Tsirkin <mst@xxxxxxxxxx>
Reviewed-by: Steven Rostedt (Google) <rostedt@xxxxxxxxxxx>
-- Steve
> ---
> tools/testing/selftests/bpf/get_cgroup_id_user.c | 9 +++++++--
> .../selftests/bpf/prog_tests/kprobe_multi_test.c | 7 ++++++-
> .../selftests/bpf/prog_tests/task_fd_query_tp.c | 9 +++++++--
> .../selftests/bpf/prog_tests/tp_attach_query.c | 9 +++++++--
> .../testing/selftests/bpf/prog_tests/trace_printk.c | 10 +++++++---
> .../selftests/bpf/prog_tests/trace_vprintk.c | 10 +++++++---
> .../selftests/bpf/progs/test_stacktrace_map.c | 2 +-
> tools/testing/selftests/bpf/progs/test_tracepoint.c | 2 +-
> tools/testing/selftests/bpf/test_ftrace.sh | 7 ++++++-
> tools/testing/selftests/bpf/test_tunnel.sh | 13 +++++++++----
> tools/testing/selftests/bpf/trace_helpers.c | 8 ++++++--
> 11 files changed, 64 insertions(+), 22 deletions(-)