[PATCH 5/5] perf bpf: Support BPF program attach to tracepoints

2016-07-13 Thread Wang Nan
To support commit 98b5c2c65c29 ("perf, bpf: allow bpf programs attach to tracepoints"), this patch allows BPF script select tracepoints in their section name. Example: # cat test_tracepoint.c /*/ #include #define SEC(NAME) __attribute__((section(NA

[PATCH 5/5] perf bpf: Support BPF program attach to tracepoints

2016-07-13 Thread Wang Nan
To support commit 98b5c2c65c29 ("perf, bpf: allow bpf programs attach to tracepoints"), this patch allows BPF script select tracepoints in their section name. Example: # cat test_tracepoint.c /*/ #include #define SEC(NAME) __attribute__((section(NA