diff options
author | Alexei Starovoitov | 2017-06-03 06:03:52 +0200 |
---|---|---|
committer | David S. Miller | 2017-06-05 03:58:01 +0200 |
commit | f91840a32deef5cb1bf73338bc5010f843b01426 (patch) | |
tree | e7a3eec8f6794fda623941afb426db5c1f8472b0 /samples/bpf/trace_event_user.c | |
parent | neigh: Really delete an arp/neigh entry on "ip neigh delete" or "arp -d" (diff) | |
download | kernel-qcow2-linux-f91840a32deef5cb1bf73338bc5010f843b01426.tar.gz kernel-qcow2-linux-f91840a32deef5cb1bf73338bc5010f843b01426.tar.xz kernel-qcow2-linux-f91840a32deef5cb1bf73338bc5010f843b01426.zip |
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>
Diffstat (limited to 'samples/bpf/trace_event_user.c')
0 files changed, 0 insertions, 0 deletions