This expands generic branch type classification by adding two more entries there in i.e irq and exception return. Also updates the x86 implementation to process X86_BR_IRET and X86_BR_IRQ records as appropriate. This changes branch types reported to user space on x86 platform but it should not be a problem. The possible scenarios and impacts are enumerated here.
Showing the changes to include/uapi (1 of 4 files). Show all
Unified · Split
| @@ -251,6 +251,8 @@ enum { · 250 unmodified lines | ||
| 251 | 251 | PERF_BR_SYSRET = 8, /* syscall return */ |
| 252 | 252 | PERF_BR_COND_CALL = 9, /* conditional function call */ |
| 253 | 253 | PERF_BR_COND_RET = 10, /* conditional function return */ |
| 254 | + PERF_BR_ERET = 11, /* exception return */ | |
| 255 | + PERF_BR_IRQ = 12, /* irq */ | |
| 254 | 256 | PERF_BR_MAX, |
| 255 | 257 | }; |
| 256 | 258 | |