6ed2a84aab
* linux/perf_event_struct.h: New file, definition of struct perf_event_attr from Linux 4.8 * Makefile.am (strace_SOURCES): Add it. * xlat/hw_breakpoint_len.in: New file. * xlat/hw_breakpoint_type.in: Likewise. * xlat/perf_attr_size.in: Likewise. * xlat/perf_branch_sample_type.in: Likewise. * xlat/perf_event_read_format.in: Likewise. * xlat/perf_event_sample_format.in: Likewise. * xlat/perf_hw_cache_id.in: Likewise. * xlat/perf_hw_cache_op_id.in: Likewise. * xlat/perf_hw_cache_op_result_id.in: Likewise. * xlat/perf_hw_id.in: Likewise. * xlat/perf_sw_ids.in: Likewise. * xlat/perf_type_id.in: Likewise. * perf.c [HAVE_LINUX_PERF_EVENT_H]: Remove inclusion of <linux/perf_event.h>. (PRINT_XLAT): New macro for simplifying printing values from sorted xlat. (printxlat_search): New function, wrapper for xlat_search with behaviour similar to printval. (print_perf_event_attr): New print_event_attr structure fetching and printing function. (SYS_FUNC(perf_event_open)): Use print_perf_event_attr for displaying attr argument contents. * tests/perf_event_open.c: Renamed to tests/perf_event_open_nonverbose.c. * tests/perf_event_open.test: add -e verbose=none in order to preserve output format being checked (in case verbose output is enabled, contents of attr arguments are shown now); rename to tests/perf_event_open_nonverbose.test; add -e trace=perf_event_open.
12 lines
424 B
Plaintext
12 lines
424 B
Plaintext
PERF_COUNT_HW_CPU_CYCLES 0
|
|
PERF_COUNT_HW_INSTRUCTIONS 1
|
|
PERF_COUNT_HW_CACHE_REFERENCES 2
|
|
PERF_COUNT_HW_CACHE_MISSES 3
|
|
PERF_COUNT_HW_BRANCH_INSTRUCTIONS 4
|
|
PERF_COUNT_HW_BRANCH_MISSES 5
|
|
PERF_COUNT_HW_BUS_CYCLES 6
|
|
PERF_COUNT_HW_STALLED_CYCLES_FRONTEND 7
|
|
PERF_COUNT_HW_STALLED_CYCLES_BACKEND 8
|
|
PERF_COUNT_HW_REF_CPU_CYCLES 9
|
|
#unterminated
|