linux-stable/tools
Quentin Monnet be3245e22d tools: bpftool: attempt to mount tracefs if required for tracelog cmd
As a follow-up to commit 30da46b5dc ("tools: bpftool: add a command to
dump the trace pipe"), attempt to mount the tracefs virtual file system
if it is not detected on the system before trying to dump content of the
tracing pipe on an invocation of "bpftool prog tracelog".

Usually, tracefs in automatically mounted by debugfs when the user tries
to access it (e.g. "ls /sys/kernel/debug/tracing" mounts the tracefs).
So if we failed to find it, it is probably that debugfs is not here
either. Therefore, we just attempt a single mount, at a location that
does not involve debugfs: /sys/kernel/tracing.

Suggested-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: Quentin Monnet <quentin.monnet@netronome.com>
Reviewed-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
2018-12-18 14:47:17 +01:00
..
accounting
arch tools arch x86: Update tools's copy of cpufeatures.h 2018-11-19 12:27:07 -08:00
bpf tools: bpftool: attempt to mount tracefs if required for tracelog cmd 2018-12-18 14:47:17 +01:00
build tools build feature: Check if get_current_dir_name() is available 2018-11-19 12:12:17 -08:00
cgroup
crypto
firewire
gpio
hv
iio
include tools/bpf: sync btf.h header from kernel to tools 2018-12-18 01:11:59 +01:00
kvm/kvm_stat
laptop
leds
lib bpf: libbpf: fix memleak by freeing line_info 2018-12-18 01:16:23 +01:00
memory-model
nfsd
objtool objtool: Fix segfault in .cold detection with -ffunction-sections 2018-11-20 18:59:00 +01:00
pci
pcmcia
perf perf tools beauty ioctl: Support new ISO7816 commands 2018-11-19 12:38:50 -08:00
power tools cpupower: Override CFLAGS assignments 2018-11-06 08:54:16 -07:00
scripts
spi
testing tools/bpf: check precise {func, line, jited_line}_info_rec_size in test_btf 2018-12-18 14:46:32 +01:00
thermal/tmon
time
usb
virtio
vm
wmi
Makefile