commit | 35578d7984003097af2b1e34502bc943d40c1804 | [log] [tgz] |
---|---|---|
author | Kaixu Xia <xiakaixu@huawei.com> | Thu Aug 06 07:02:35 2015 +0000 |
committer | David S. Miller <davem@davemloft.net> | Sun Aug 09 22:50:06 2015 -0700 |
tree | b2eca5ddc9446e771dd5a9e1629b12f98b9f2bf0 | |
parent | ea317b267e9d03a8241893aa176fba7661d07579 [diff] |
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>