summaryrefslogtreecommitdiffstats
path: root/tools/hv
diff options
context:
space:
mode:
authorSteven Rostedt (VMware)2017-10-13 00:40:02 +0200
committerDavid S. Miller2017-10-16 22:10:20 +0200
commit9185a610f8f7f1b4e4d28c9de27d1969cf58e0f1 (patch)
treee3add3c3a46dcfd40605ecee36193a94b430a209 /tools/hv
parentipv6: only update __use and lastusetime once per jiffy at most (diff)
downloadkernel-qcow2-linux-9185a610f8f7f1b4e4d28c9de27d1969cf58e0f1.tar.gz
kernel-qcow2-linux-9185a610f8f7f1b4e4d28c9de27d1969cf58e0f1.tar.xz
kernel-qcow2-linux-9185a610f8f7f1b4e4d28c9de27d1969cf58e0f1.zip
tracing: bpf: Hide bpf trace events when they are not used
All the trace events defined in include/trace/events/bpf.h are only used when CONFIG_BPF_SYSCALL is defined. But this file gets included by include/linux/bpf_trace.h which is included by the networking code with CREATE_TRACE_POINTS defined. If a trace event is created but not used it still has data structures and functions created for its use, even though nothing is using them. To not waste space, do not define the BPF trace events in bpf.h unless CONFIG_BPF_SYSCALL is defined. Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org> Acked-by: Alexei Starovoitov <ast@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/hv')
0 files changed, 0 insertions, 0 deletions