libbpf: fallback to tracefs mount point if debugfs is not mounted
authorAndrii Nakryiko <andrii@kernel.org>
Fri, 15 Jul 2022 18:57:36 +0000 (11:57 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 19 Jul 2022 16:54:28 +0000 (09:54 -0700)
commita1ac9fd6c6504aa1838930bbfae6217ab6b95945
tree38d084bb6b5f8a251cc99ee8c7b9c10f6dfba0c9
parentfd1894224407c484f652ad456e1ce423e89bb3eb
libbpf: fallback to tracefs mount point if debugfs is not mounted

Teach libbpf to fallback to tracefs mount point (/sys/kernel/tracing) if
debugfs (/sys/kernel/debug/tracing) isn't mounted.

Acked-by: Yonghong Song <yhs@fb.com>
Suggested-by: Connor O'Brien <connoro@google.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/r/20220715185736.898848-1-andrii@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/lib/bpf/libbpf.c