diff options
author | Eugene Syromyatnikov <evgsyr@gmail.com> | 2016-10-03 01:35:53 +0300 |
---|---|---|
committer | Eugene Syromyatnikov <evgsyr@gmail.com> | 2016-10-31 11:29:20 +0300 |
commit | 015aee943e0d4ebf42ff0574ad77a69647d44e40 (patch) | |
tree | d1c5d8c1009a1ca7193397147ba16982933519e8 /configure.ac | |
parent | 6ed2a84aabdcfceb7a41e557fd5819abb21024ed (diff) | |
download | strace-015aee943e0d4ebf42ff0574ad77a69647d44e40.tar.gz |
tests: add tests for perf_event_attr structure decoding in perf_event_open
* configure.ac: Add checks for presence of various fields of struct
perf_event_attr defined in kernel headers.
* tests/perf_event_open.c: New file.
* tests/perf_event_open_unabbrev.c: Likewise.
* tests/perf_event_open.test: New test.
* tests/perf_event_open_unabbrev.test: Likewise.
* tests/.gitignore: Add perf_event_open, perf_event_open_unabbrev.
* tests/Makefile.am (check_PROGRAMS): Likewise.
(DECODER_TESTS): Add perf_event_open.test, perf_event_open_unabbrev.test.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 404dfb9da..3102a9b2c 100644 --- a/configure.ac +++ b/configure.ac @@ -347,6 +347,30 @@ AC_CHECK_MEMBERS(m4_normalize([ siginfo_t.si_overrun ]),,, [#include <signal.h>]) +AC_CHECK_MEMBERS(m4_normalize([ + struct perf_event_attr.precise_ip, + struct perf_event_attr.mmap_data, + struct perf_event_attr.sample_id_all, + struct perf_event_attr.exclude_host, + struct perf_event_attr.exclude_guest, + struct perf_event_attr.exclude_callchain_kernel, + struct perf_event_attr.exclude_callchain_user, + struct perf_event_attr.mmap2, + struct perf_event_attr.comm_exec, + struct perf_event_attr.use_clockid, + struct perf_event_attr.context_switch, + struct perf_event_attr.write_backward, + struct perf_event_attr.bp_type, + struct perf_event_attr.config1, + struct perf_event_attr.config2, + struct perf_event_attr.branch_sample_type, + struct perf_event_attr.sample_regs_user, + struct perf_event_attr.sample_stack_user, + struct perf_event_attr.sample_regs_intr, + struct perf_event_attr.aux_watermark, + struct perf_event_attr.sample_max_stack +]),,, [#include <linux/perf_event.h>]) + AC_CHECK_HEADERS(m4_normalize([ asm/cachectl.h asm/sysmips.h |