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.
20 lines
636 B
Plaintext
20 lines
636 B
Plaintext
PERF_SAMPLE_IP 1 << 0
|
|
PERF_SAMPLE_TID 1 << 1
|
|
PERF_SAMPLE_TIME 1 << 2
|
|
PERF_SAMPLE_ADDR 1 << 3
|
|
PERF_SAMPLE_READ 1 << 4
|
|
PERF_SAMPLE_CALLCHAIN 1 << 5
|
|
PERF_SAMPLE_ID 1 << 6
|
|
PERF_SAMPLE_CPU 1 << 7
|
|
PERF_SAMPLE_PERIOD 1 << 8
|
|
PERF_SAMPLE_STREAM_ID 1 << 9
|
|
PERF_SAMPLE_RAW 1 << 10
|
|
PERF_SAMPLE_BRANCH_STACK 1 << 11
|
|
PERF_SAMPLE_REGS_USER 1 << 12
|
|
PERF_SAMPLE_STACK_USER 1 << 13
|
|
PERF_SAMPLE_WEIGHT 1 << 14
|
|
PERF_SAMPLE_DATA_SRC 1 << 15
|
|
PERF_SAMPLE_IDENTIFIER 1 << 16
|
|
PERF_SAMPLE_TRANSACTION 1 << 17
|
|
PERF_SAMPLE_REGS_INTR 1 << 18
|