|
@@ -302,8 +302,8 @@ struct perf_event_attr {
|
|
|
exclude_callchain_kernel : 1, /* exclude kernel callchains */
|
|
exclude_callchain_kernel : 1, /* exclude kernel callchains */
|
|
|
exclude_callchain_user : 1, /* exclude user callchains */
|
|
exclude_callchain_user : 1, /* exclude user callchains */
|
|
|
mmap2 : 1, /* include mmap with inode data */
|
|
mmap2 : 1, /* include mmap with inode data */
|
|
|
-
|
|
|
|
|
- __reserved_1 : 40;
|
|
|
|
|
|
|
+ comm_exec : 1, /* flag comm events that are due to an exec */
|
|
|
|
|
+ __reserved_1 : 39;
|
|
|
|
|
|
|
|
union {
|
|
union {
|
|
|
__u32 wakeup_events; /* wakeup every n events */
|
|
__u32 wakeup_events; /* wakeup every n events */
|
|
@@ -502,7 +502,12 @@ struct perf_event_mmap_page {
|
|
|
#define PERF_RECORD_MISC_GUEST_KERNEL (4 << 0)
|
|
#define PERF_RECORD_MISC_GUEST_KERNEL (4 << 0)
|
|
|
#define PERF_RECORD_MISC_GUEST_USER (5 << 0)
|
|
#define PERF_RECORD_MISC_GUEST_USER (5 << 0)
|
|
|
|
|
|
|
|
|
|
+/*
|
|
|
|
|
+ * PERF_RECORD_MISC_MMAP_DATA and PERF_RECORD_MISC_COMM_EXEC are used on
|
|
|
|
|
+ * different events so can reuse the same bit position.
|
|
|
|
|
+ */
|
|
|
#define PERF_RECORD_MISC_MMAP_DATA (1 << 13)
|
|
#define PERF_RECORD_MISC_MMAP_DATA (1 << 13)
|
|
|
|
|
+#define PERF_RECORD_MISC_COMM_EXEC (1 << 13)
|
|
|
/*
|
|
/*
|
|
|
* Indicates that the content of PERF_SAMPLE_IP points to
|
|
* Indicates that the content of PERF_SAMPLE_IP points to
|
|
|
* the actual instruction that triggered the event. See also
|
|
* the actual instruction that triggered the event. See also
|