diff options
author | Kaixu Xia <xiakaixu@huawei.com> | 2015-08-06 10:02:35 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-08-10 08:50:06 +0300 |
commit | 35578d7984003097af2b1e34502bc943d40c1804 (patch) | |
tree | b2eca5ddc9446e771dd5a9e1629b12f98b9f2bf0 /samples/bpf/tracex6_user.c | |
parent | ea317b267e9d03a8241893aa176fba7661d07579 (diff) | |
download | linux-35578d7984003097af2b1e34502bc943d40c1804.tar.xz |
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: Kaixu Xia <xiakaixu@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'samples/bpf/tracex6_user.c')
0 files changed, 0 insertions, 0 deletions