]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
samples/bpf: xdp_redirect_cpu have not need for read_trace_pipe
authorJesper Dangaard Brouer <brouer@redhat.com>
Fri, 1 Feb 2019 21:42:24 +0000 (22:42 +0100)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 1 Feb 2019 22:37:51 +0000 (23:37 +0100)
commit7313798b144c5b945dc47502a233cabb7022cb70
treec72b0c30bebaec184d91788c5a2c5299cf9c4fe6
parentf3cea32d56e96c510af454616104e3979f7626dd
samples/bpf: xdp_redirect_cpu have not need for read_trace_pipe

The sample xdp_redirect_cpu is not using helper bpf_trace_printk.
Thus it makes no sense that the --debug option us reading
from /sys/kernel/debug/tracing/trace_pipe via read_trace_pipe.
Simply remove it.

Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
Acked-by: John Fastabend <john.fastabend@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
samples/bpf/xdp_redirect_cpu_user.c