From 581ec1bca7aacf667413460f3f9cab0cb85b774b Mon Sep 17 00:00:00 2001 From: Eugene Syromyatnikov Date: Tue, 29 Jun 2021 03:56:36 +0200 Subject: 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. --- bundled/linux/include/uapi/linux/perf_event.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bundled') 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 */ -- cgit v1.2.1