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.
9 lines
203 B
Plaintext
9 lines
203 B
Plaintext
PERF_COUNT_HW_CACHE_L1D 0
|
|
PERF_COUNT_HW_CACHE_L1I 1
|
|
PERF_COUNT_HW_CACHE_LL 2
|
|
PERF_COUNT_HW_CACHE_DTLB 3
|
|
PERF_COUNT_HW_CACHE_ITLB 4
|
|
PERF_COUNT_HW_CACHE_BPU 5
|
|
PERF_COUNT_HW_CACHE_NODE 6
|
|
#unterminated
|