When there's new data in the AUX space, output a record indicating its offset and size and a set of flags, such as PERF_AUX_FLAG_TRUNCATED, to mean the described data was truncated to fit in the ring buffer.
Showing the changes to include/uapi (1 of 3 files). Show all
Unified · Split
| @@ -768,6 +768,20 @@ enum perf_event_type { · 767 unmodified lines | ||
| 768 | 768 | */ |
| 769 | 769 | PERF_RECORD_MMAP2 = 10, |
| 770 | 770 | |
| 771 | + /* | |
| 772 | + * Records that new data landed in the AUX buffer part. | |
| 773 | + * | |
| 774 | + * struct { | |
| 775 | + * struct perf_event_header header; | |
| 776 | + * | |
| 777 | + * u64 aux_offset; | |
| 778 | + * u64 aux_size; | |
| 779 | + * u64 flags; | |
| 780 | + * struct sample_id sample_id; | |
| 781 | + * }; | |
| 782 | + */ | |
| 783 | + PERF_RECORD_AUX = 11, | |
| 784 | + | |
| 771 | 785 | PERF_RECORD_MAX, /* non-ABI */ |
| 772 | 786 | }; |
| 773 | 787 | |
| @@ -785,6 +799,11 @@ enum perf_callchain_context { · 11 unmodified lines | ||
| 785 | 799 | PERF_CONTEXT_MAX = (__u64)-4095, |
| 786 | 800 | }; |
| 787 | 801 | |
| 802 | +/** | |
| 803 | + * PERF_RECORD_AUX::flags bits | |
| 804 | + */ | |
| 805 | +#define PERF_AUX_FLAG_TRUNCATED 0x01 /* record was truncated to fit */ | |
| 806 | + | |
| 788 | 807 | #define PERF_FLAG_FD_NO_GROUP (1UL << 0) |
| 789 | 808 | #define PERF_FLAG_FD_OUTPUT (1UL << 1) |
| 790 | 809 | #define PERF_FLAG_PID_CGROUP (1UL << 2) /* pid=cgroup id, per-cpu mode only */ |