Alexei Starovoitov f91840a32d perf, bpf: Add BPF support to all perf_event types
Allow BPF_PROG_TYPE_PERF_EVENT program types to attach to all
perf_event types, including HW_CACHE, RAW, and dynamic pmu events.
Only tracepoint/kprobe events are treated differently which require
BPF_PROG_TYPE_TRACEPOINT/BPF_PROG_TYPE_KPROBE program types accordingly.

Also add support for reading all event counters using
bpf_perf_event_read() helper.

Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-06-04 21:58:01 -04:00
..
2017-05-12 15:57:15 -07:00
2017-05-08 18:49:23 -07:00
2017-05-12 15:57:15 -07:00
2017-01-12 07:01:56 -07:00
2017-05-08 17:15:12 -07:00
2017-04-21 20:30:46 +08:00
2016-12-22 22:58:37 -05:00