diff options
Diffstat (limited to 'include/uapi/linux/perf_event.h')
| -rw-r--r-- | include/uapi/linux/perf_event.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/uapi/linux/perf_event.h b/include/uapi/linux/perf_event.h index 309211b3eb67..d97f84c080da 100644 --- a/include/uapi/linux/perf_event.h +++ b/include/uapi/linux/perf_event.h | |||
| @@ -167,6 +167,7 @@ enum perf_branch_sample_type_shift { | |||
| 167 | PERF_SAMPLE_BRANCH_COND_SHIFT = 10, /* conditional branches */ | 167 | PERF_SAMPLE_BRANCH_COND_SHIFT = 10, /* conditional branches */ |
| 168 | 168 | ||
| 169 | PERF_SAMPLE_BRANCH_CALL_STACK_SHIFT = 11, /* call/ret stack */ | 169 | PERF_SAMPLE_BRANCH_CALL_STACK_SHIFT = 11, /* call/ret stack */ |
| 170 | PERF_SAMPLE_BRANCH_IND_JUMP_SHIFT = 12, /* indirect jumps */ | ||
| 170 | 171 | ||
| 171 | PERF_SAMPLE_BRANCH_MAX_SHIFT /* non-ABI */ | 172 | PERF_SAMPLE_BRANCH_MAX_SHIFT /* non-ABI */ |
| 172 | }; | 173 | }; |
| @@ -186,6 +187,7 @@ enum perf_branch_sample_type { | |||
| 186 | PERF_SAMPLE_BRANCH_COND = 1U << PERF_SAMPLE_BRANCH_COND_SHIFT, | 187 | PERF_SAMPLE_BRANCH_COND = 1U << PERF_SAMPLE_BRANCH_COND_SHIFT, |
| 187 | 188 | ||
| 188 | PERF_SAMPLE_BRANCH_CALL_STACK = 1U << PERF_SAMPLE_BRANCH_CALL_STACK_SHIFT, | 189 | PERF_SAMPLE_BRANCH_CALL_STACK = 1U << PERF_SAMPLE_BRANCH_CALL_STACK_SHIFT, |
| 190 | PERF_SAMPLE_BRANCH_IND_JUMP = 1U << PERF_SAMPLE_BRANCH_IND_JUMP_SHIFT, | ||
| 189 | 191 | ||
| 190 | PERF_SAMPLE_BRANCH_MAX = 1U << PERF_SAMPLE_BRANCH_MAX_SHIFT, | 192 | PERF_SAMPLE_BRANCH_MAX = 1U << PERF_SAMPLE_BRANCH_MAX_SHIFT, |
| 191 | }; | 193 | }; |
| @@ -564,6 +566,10 @@ struct perf_event_mmap_page { | |||
| 564 | #define PERF_RECORD_MISC_GUEST_USER (5 << 0) | 566 | #define PERF_RECORD_MISC_GUEST_USER (5 << 0) |
| 565 | 567 | ||
| 566 | /* | 568 | /* |
| 569 | * Indicates that /proc/PID/maps parsing are truncated by time out. | ||
| 570 | */ | ||
| 571 | #define PERF_RECORD_MISC_PROC_MAP_PARSE_TIMEOUT (1 << 12) | ||
| 572 | /* | ||
| 567 | * PERF_RECORD_MISC_MMAP_DATA and PERF_RECORD_MISC_COMM_EXEC are used on | 573 | * PERF_RECORD_MISC_MMAP_DATA and PERF_RECORD_MISC_COMM_EXEC are used on |
| 568 | * different events so can reuse the same bit position. | 574 | * different events so can reuse the same bit position. |
| 569 | */ | 575 | */ |
| @@ -800,6 +806,18 @@ enum perf_event_type { | |||
| 800 | */ | 806 | */ |
| 801 | PERF_RECORD_ITRACE_START = 12, | 807 | PERF_RECORD_ITRACE_START = 12, |
| 802 | 808 | ||
| 809 | /* | ||
| 810 | * Records the dropped/lost sample number. | ||
| 811 | * | ||
| 812 | * struct { | ||
| 813 | * struct perf_event_header header; | ||
| 814 | * | ||
| 815 | * u64 lost; | ||
| 816 | * struct sample_id sample_id; | ||
| 817 | * }; | ||
| 818 | */ | ||
| 819 | PERF_RECORD_LOST_SAMPLES = 13, | ||
| 820 | |||
| 803 | PERF_RECORD_MAX, /* non-ABI */ | 821 | PERF_RECORD_MAX, /* non-ABI */ |
| 804 | }; | 822 | }; |
| 805 | 823 | ||
