summaryrefslogtreecommitdiff
path: root/tests/perf_event_open.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/perf_event_open.c')
-rw-r--r--tests/perf_event_open.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/perf_event_open.c b/tests/perf_event_open.c
index 139d16ce5..6a01c8186 100644
--- a/tests/perf_event_open.c
+++ b/tests/perf_event_open.c
@@ -139,7 +139,7 @@ print_event_attr(struct perf_event_attr *attr_ptr, size_t size,
enum {
STRACE_PEA_ABBREV_SIZE =
offsetof(struct perf_event_attr, wakeup_events),
- STRACE_PEA_SIZE = 128,
+ STRACE_PEA_SIZE = 136,
};
uint32_t read_size;
@@ -385,6 +385,14 @@ print_event_attr(struct perf_event_attr *attr_ptr, size_t size,
val = attr->sig_data;
printf(", sig_data=%#" PRIx64, (uint64_t) val);
+ if (size <= 128) {
+ cutoff = 128;
+ goto end;
+ }
+
+ val = attr->config3;
+ printf(", config3=%#" PRIx64, (uint64_t) val);
+
cutoff = STRACE_PEA_SIZE;
end: