summaryrefslogtreecommitdiffstats
path: root/samples/bpf/test_lwt_bpf.sh
diff options
context:
space:
mode:
authorRoss Zwisler <zwisler@google.com>2023-03-13 21:56:27 +0100
committerAlexei Starovoitov <ast@kernel.org>2023-03-14 05:51:30 +0100
commit27d7fdf06fdb84455ff585b58c8034e2fab42583 (patch)
tree6db438ddc306f32e69758cbcc1d69cbf3e10e298 /samples/bpf/test_lwt_bpf.sh
parentbpf: Disable migration when freeing stashed local kptr using obj drop (diff)
downloadlinux-27d7fdf06fdb84455ff585b58c8034e2fab42583.tar.xz
linux-27d7fdf06fdb84455ff585b58c8034e2fab42583.zip
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 comments and samples in the bpf code still refer to this older debugfs path, so let's update them to avoid confusion. There are a few spots where the bpf code explicitly checks both tracefs and debugfs (tools/bpf/bpftool/tracelog.c and tools/lib/api/fs/fs.c) and I've left those alone so that the tools can continue to work with both paths. 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-2-zwisler@kernel.org Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'samples/bpf/test_lwt_bpf.sh')
-rwxr-xr-xsamples/bpf/test_lwt_bpf.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/samples/bpf/test_lwt_bpf.sh b/samples/bpf/test_lwt_bpf.sh
index 2e9f5126963b..0bf2d0f6bf4b 100755
--- a/samples/bpf/test_lwt_bpf.sh
+++ b/samples/bpf/test_lwt_bpf.sh
@@ -21,7 +21,7 @@ IP_LOCAL="192.168.99.1"
PROG_SRC="test_lwt_bpf.c"
BPF_PROG="test_lwt_bpf.o"
-TRACE_ROOT=/sys/kernel/debug/tracing
+TRACE_ROOT=/sys/kernel/tracing
CONTEXT_INFO=$(cat ${TRACE_ROOT}/trace_options | grep context)
function lookup_mac()