I follow this document and using perf record with --intr-regs=ax,bx,r15, trying to log additional CPU register information with PEBS record.
perf record
--intr-regs=ax,bx,r15
I find a way to achieve it by using perf report -D, and then find the registers' name which you need for record by record (but this seems to be very inefficient..).
perf report -D
Or someone else can provide a more streamlined approach?