linux_dsm_epyc7002/tools/perf/arch/x86
Ravi Bangoria 2d01ecc580 perf/sdt/x86: Add renaming logic for (missing) 8 bit registers
I found couple of events using al, bl, cl and dl registers for argument.
These are not directly accepted by uprobe_events and thus needs to be
mapped to ax, bx, cx and dx respectively.

Few ex,

  /usr/bin/qemu-system-s390x
    css_adapter_interrupt: 1@%bl
    css_chpid_add: 1@%cl 1@%sil 1@%dl
    dma_bdrv_io: 8@%rbx 8@%rbp -8@%r14 1@%al

  /usr/bin/postgres
    buffer__read__done: ... -1@-bash -1@%al
    buffer__read__start: ... -1@%al

I don't find any sdt events using ah, bh,... registers. But I also don't
see any reason to not use them, so there might be rare events using
these registers, and if so, perf should have a renaming logic for them
too.

Signed-off-by: Ravi Bangoria <ravi.bangoria@linux.vnet.ibm.com>
Acked-by: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Alexis Berlemont <alexis.berlemont@gmail.com>
Cc: Hemant Kumar <hemant@linux.vnet.ibm.com>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20170328094754.3156-2-ravi.bangoria@linux.vnet.ibm.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2017-03-28 12:24:56 -03:00
..
annotate perf annotate: Add per arch instructions annotate handlers 2016-11-17 17:31:59 -03:00
entry/syscalls perf tools: Update x86's syscall_64.tbl, adding pkey_(alloc,free,mprotect) 2016-10-28 11:29:44 -02:00
include perf probe: Fix dwarf regs table for x86_64 2016-09-12 10:37:07 -03:00
tests perf test: Remove "test" and similar strings from test descriptions 2016-11-29 12:46:11 -03:00
util perf/sdt/x86: Add renaming logic for (missing) 8 bit registers 2017-03-28 12:24:56 -03:00
Build perf tests: Add arch tests 2015-10-05 16:55:38 -03:00
Makefile perf tools: Make the x86 clean quiet 2016-04-25 17:56:15 -03:00