summaryrefslogtreecommitdiff
path: root/bundled
diff options
context:
space:
mode:
authorEugene Syromyatnikov <evgsyr@gmail.com>2021-06-29 03:56:36 +0200
committerDmitry V. Levin <ldv@strace.io>2021-06-30 09:52:37 +0000
commit581ec1bca7aacf667413460f3f9cab0cb85b774b (patch)
tree8690ebcbce02265d56feeb8eba203fab3ff92a09 /bundled
parent077c5bcd20ce73173aeb55f74cc46e102ec89709 (diff)
downloadstrace-581ec1bca7aacf667413460f3f9cab0cb85b774b.tar.gz
perf: implement struct perf_event_attr.remove_on_exec field decoding
Introduced in Linux commit v5.13-rc1~119^2~37. * bundled/linux/include/uapi/linux/perf_event.h: Updated to commit v5.13-rc1~119^2~37. * src/perf_event_struct.h (struct perf_event_attr): Add remove_on_exec field. * src/perf.c (print_perf_event_attr): Print it; correct __reserved_1 comment. * tests/perf_event_open.c (struct pea_flags): Add remove_on_exec field. (print_event_attr): Print it, correct the __reserved_1 field comment.
Diffstat (limited to 'bundled')
-rw-r--r--bundled/linux/include/uapi/linux/perf_event.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/bundled/linux/include/uapi/linux/perf_event.h b/bundled/linux/include/uapi/linux/perf_event.h
index ec407df63..b6f0c16dc 100644
--- a/bundled/linux/include/uapi/linux/perf_event.h
+++ b/bundled/linux/include/uapi/linux/perf_event.h
@@ -390,7 +390,8 @@ struct perf_event_attr {
text_poke : 1, /* include text poke events */
build_id : 1, /* use build id in mmap2 events */
inherit_thread : 1, /* children only inherit if cloned with CLONE_THREAD */
- __reserved_1 : 28;
+ remove_on_exec : 1, /* event is removed from task on exec */
+ __reserved_1 : 27;
union {
__u32 wakeup_events; /* wakeup every n events */