summaryrefslogtreecommitdiffstats
path: root/include/linux/bpf.h
diff options
context:
space:
mode:
authorKaixu Xia2015-08-06 09:02:32 +0200
committerDavid S. Miller2015-08-10 07:50:05 +0200
commitffe8690c85b8426db7783064724d106702f1b1e8 (patch)
treebaf9499372ba05151d168ecf4aff23591ab981ba /include/linux/bpf.h
parentMerge branch 'mv88e6xxx-switchdev-fdb' (diff)
downloadkernel-qcow2-linux-ffe8690c85b8426db7783064724d106702f1b1e8.tar.gz
kernel-qcow2-linux-ffe8690c85b8426db7783064724d106702f1b1e8.tar.xz
kernel-qcow2-linux-ffe8690c85b8426db7783064724d106702f1b1e8.zip
perf: add the necessary core perf APIs when accessing events counters in eBPF programs
This patch add three core perf APIs: - perf_event_attrs(): export the struct perf_event_attr from struct perf_event; - perf_event_get(): get the struct perf_event from the given fd; - perf_event_read_local(): read the events counters active on the current CPU; These APIs are needed when accessing events counters in eBPF programs. The API perf_event_read_local() comes from Peter and I add the corresponding SOB. Signed-off-by: Kaixu Xia <xiakaixu@huawei.com> Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/bpf.h')
0 files changed, 0 insertions, 0 deletions