diff options
Diffstat (limited to 'include/uapi')
| -rw-r--r-- | include/uapi/linux/perf_event.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/include/uapi/linux/perf_event.h b/include/uapi/linux/perf_event.h index a77f43af72b8..408b8c730731 100644 --- a/include/uapi/linux/perf_event.h +++ b/include/uapi/linux/perf_event.h | |||
| @@ -757,4 +757,28 @@ union perf_mem_data_src { | |||
| 757 | #define PERF_MEM_S(a, s) \ | 757 | #define PERF_MEM_S(a, s) \ |
| 758 | (((u64)PERF_MEM_##a##_##s) << PERF_MEM_##a##_SHIFT) | 758 | (((u64)PERF_MEM_##a##_##s) << PERF_MEM_##a##_SHIFT) |
| 759 | 759 | ||
| 760 | /* | ||
| 761 | * single taken branch record layout: | ||
| 762 | * | ||
| 763 | * from: source instruction (may not always be a branch insn) | ||
| 764 | * to: branch target | ||
| 765 | * mispred: branch target was mispredicted | ||
| 766 | * predicted: branch target was predicted | ||
| 767 | * | ||
| 768 | * support for mispred, predicted is optional. In case it | ||
| 769 | * is not supported mispred = predicted = 0. | ||
| 770 | * | ||
| 771 | * in_tx: running in a hardware transaction | ||
| 772 | * abort: aborting a hardware transaction | ||
| 773 | */ | ||
| 774 | struct perf_branch_entry { | ||
| 775 | __u64 from; | ||
| 776 | __u64 to; | ||
| 777 | __u64 mispred:1, /* target mispredicted */ | ||
| 778 | predicted:1,/* target predicted */ | ||
| 779 | in_tx:1, /* in transaction */ | ||
| 780 | abort:1, /* transaction abort */ | ||
| 781 | reserved:60; | ||
| 782 | }; | ||
| 783 | |||
| 760 | #endif /* _UAPI_LINUX_PERF_EVENT_H */ | 784 | #endif /* _UAPI_LINUX_PERF_EVENT_H */ |
