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.
7 lines
140 B
Plaintext
7 lines
140 B
Plaintext
PERF_ATTR_SIZE_VER0 64
|
|
PERF_ATTR_SIZE_VER1 72
|
|
PERF_ATTR_SIZE_VER2 80
|
|
PERF_ATTR_SIZE_VER3 96
|
|
PERF_ATTR_SIZE_VER4 104
|
|
PERF_ATTR_SIZE_VER5 112
|