bpf: support raw tracepoints in modules
Distributions build drivers as modules, including network and filesystem drivers which export numerous tracepoints. This enables bpf(BPF_RAW_TRACEPOINT_OPEN) to attach to those tracepoints. Signed-off-by:Matt Mullins <mmullins@fb.com> Acked-by:
Martin KaFai Lau <kafai@fb.com> Signed-off-by:
Alexei Starovoitov <ast@kernel.org>
Showing
- include/linux/module.h 4 additions, 0 deletionsinclude/linux/module.h
- include/linux/trace_events.h 6 additions, 2 deletionsinclude/linux/trace_events.h
- kernel/bpf/syscall.c 8 additions, 3 deletionskernel/bpf/syscall.c
- kernel/module.c 5 additions, 0 deletionskernel/module.c
- kernel/trace/bpf_trace.c 97 additions, 2 deletionskernel/trace/bpf_trace.c
Please register or sign in to comment