Copy the PERF_SAMPLE_HOST_IP and attr.mmap_bpf additions from include/uapi/linux/perf_event.h to tools/include/uapi/linux/perf_event.h. Signed-off-by: Ian Rogers --- tools/include/uapi/linux/perf_event.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tools/include/uapi/linux/perf_event.h b/tools/include/uapi/linux/perf_event.h index c49fc76292f7..146df3041c31 100644 --- a/tools/include/uapi/linux/perf_event.h +++ b/tools/include/uapi/linux/perf_event.h @@ -165,8 +165,9 @@ enum perf_event_sample_format { PERF_SAMPLE_DATA_PAGE_SIZE = 1U << 22, PERF_SAMPLE_CODE_PAGE_SIZE = 1U << 23, PERF_SAMPLE_WEIGHT_STRUCT = 1U << 24, + PERF_SAMPLE_HOST_IP = 1U << 25, - PERF_SAMPLE_MAX = 1U << 25, /* non-ABI */ + PERF_SAMPLE_MAX = 1U << 26, /* non-ABI */ }; #define PERF_SAMPLE_WEIGHT_TYPE (PERF_SAMPLE_WEIGHT | PERF_SAMPLE_WEIGHT_STRUCT) @@ -468,7 +469,8 @@ struct perf_event_attr { sigtrap : 1, /* send synchronous SIGTRAP on event */ defer_callchain: 1, /* request PERF_RECORD_CALLCHAIN_DEFERRED records */ defer_output : 1, /* output PERF_RECORD_CALLCHAIN_DEFERRED records */ - __reserved_1 : 24; + mmap_bpf : 1, /* filter mmap_data events with BPF prog */ + __reserved_1 : 23; union { __u32 wakeup_events; /* wake up every n events */ @@ -1093,6 +1095,7 @@ enum perf_event_type { * { u64 cgroup;} && PERF_SAMPLE_CGROUP * { u64 data_page_size;} && PERF_SAMPLE_DATA_PAGE_SIZE * { u64 code_page_size;} && PERF_SAMPLE_CODE_PAGE_SIZE + * { u64 host_ip;} && PERF_SAMPLE_HOST_IP * { u64 size; * char data[size]; } && PERF_SAMPLE_AUX * }; -- 2.56.1.915.g69d5ec7298-goog