diff options
| author | Kaixu Xia <[email protected]> | 2015-08-06 07:02:32 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2015-08-09 22:50:05 -0700 |
| commit | ffe8690c85b8426db7783064724d106702f1b1e8 (patch) | |
| tree | baf9499372ba05151d168ecf4aff23591ab981ba /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | f1d5ca434413b20cd3f8c18ff2b634b7782149a5 (diff) | |
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 <[email protected]>
Signed-off-by: Peter Zijlstra <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions