[PATCH 0/6] Decoding of perf_event_attr structure

Eugene Syromyatnikov evgsyr at gmail.com
Sat Oct 15 19:40:21 UTC 2016


Hello.

The following patch implements decoding of the perf_event_attr structure
used in perf_event_open syscall.

Eugene Syromyatnikov (6):
  defs.h: Add offsetofend macro
  Implement decoding of perf_event_attr structure in perf_event_open
    syscall
  tests: Add period parameter to fill_memory_ex
  tests: Move fill_memory{,_ex} into a separate file
  xlat: Add values for clockname definitions
  tests: Add tests for perf_event_attr structure decoding in
    perf_event_open

 Makefile.am                                 |    1 +
 configure.ac                                |   24 +
 defs.h                                      |    5 +
 perf.c                                      |  409 +++++++++++++-
 perf_event_struct.h                         |   73 +++
 tests/.gitignore                            |    2 +
 tests/Makefile.am                           |    5 +
 tests/fill_memory.c                         |   18 +
 tests/perf_event_open.test                  |    2 +-
 tests/perf_event_open_verbose.c             |  790 +++++++++++++++++++++++++++
 tests/perf_event_open_verbose.test          |    7 +
 tests/perf_event_open_verbose_unabbrev.c    |    2 +
 tests/perf_event_open_verbose_unabbrev.test |    7 +
 tests/quotactl-xfs.c                        |    2 +-
 tests/quotactl.h                            |   16 -
 tests/tests.h                               |   10 +
 xlat/clocknames.in                          |   24 +-
 xlat/hw_breakpoint_len.in                   |    4 +
 xlat/hw_breakpoint_type.in                  |    6 +
 xlat/perf_attr_size.in                      |    6 +
 xlat/perf_branch_sample_type.in             |   16 +
 xlat/perf_event_read_format.in              |    4 +
 xlat/perf_event_sample_format.in            |   19 +
 xlat/perf_hw_cache_id.in                    |    8 +
 xlat/perf_hw_cache_op_id.in                 |    4 +
 xlat/perf_hw_cache_op_result_id.in          |    3 +
 xlat/perf_hw_id.in                          |   11 +
 xlat/perf_sw_ids.in                         |   12 +
 xlat/perf_type_id.in                        |    7 +
 29 files changed, 1460 insertions(+), 37 deletions(-)
 create mode 100644 perf_event_struct.h
 create mode 100644 tests/fill_memory.c
 create mode 100644 tests/perf_event_open_verbose.c
 create mode 100755 tests/perf_event_open_verbose.test
 create mode 100644 tests/perf_event_open_verbose_unabbrev.c
 create mode 100755 tests/perf_event_open_verbose_unabbrev.test
 create mode 100644 xlat/hw_breakpoint_len.in
 create mode 100644 xlat/hw_breakpoint_type.in
 create mode 100644 xlat/perf_attr_size.in
 create mode 100644 xlat/perf_branch_sample_type.in
 create mode 100644 xlat/perf_event_read_format.in
 create mode 100644 xlat/perf_event_sample_format.in
 create mode 100644 xlat/perf_hw_cache_id.in
 create mode 100644 xlat/perf_hw_cache_op_id.in
 create mode 100644 xlat/perf_hw_cache_op_result_id.in
 create mode 100644 xlat/perf_hw_id.in
 create mode 100644 xlat/perf_sw_ids.in
 create mode 100644 xlat/perf_type_id.in

-- 
1.7.10.4





More information about the Strace-devel mailing list