OSDN Git Service

bpf: support raw tracepoints in modules
authorMatt Mullins <mmullins@fb.com>
Thu, 13 Dec 2018 00:42:37 +0000 (16:42 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 18 Dec 2018 22:08:12 +0000 (14:08 -0800)
commita38d1107f937ca95dcf820161ef44ea683d6a0b1
tree6fe1371db87f368a635d6d4aa7ef58031a940cf7
parenta137401d85129953a1713d443216eb6b1074c12e
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>
include/linux/module.h
include/linux/trace_events.h
kernel/bpf/syscall.c
kernel/module.c
kernel/trace/bpf_trace.c