Skip to content
Commit 35578d79 authored by Kaixu Xia's avatar Kaixu Xia Committed by David S. Miller
Browse files

bpf: Implement function bpf_perf_event_read() that get the selected hardware PMU conuter



According to the perf_event_map_fd and index, the function
bpf_perf_event_read() can convert the corresponding map
value to the pointer to struct perf_event and return the
Hardware PMU counter value.

Signed-off-by: default avatarKaixu Xia <xiakaixu@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ea317b26
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment