> Can we change this, such that perf_event_output also takes a second set of > registers (iregs) that get sampled for PERF_SAMPLE_REGS_INTR? I'm very new to > real kernel development, what kind of ABI/API stability guarantees exist for > something like "perf_event_output"?
Yes you can change it. That's no API/ABI stability guarantee for kernel internal functions, as long as you change all callers in tree. -Andi