]> git.baikalelectronics.ru Git - kernel.git/commit
perf parse-regs: Add generic support for arch__intr/user_reg_mask()
authorKan Liang <kan.liang@linux.intel.com>
Tue, 14 May 2019 20:19:33 +0000 (13:19 -0700)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 16 May 2019 17:17:12 +0000 (14:17 -0300)
commit43d05e0f50135346e4d09f4a39c96a7678988411
tree81ed2903ef6d25c9195a6f50f6665da321c9a5ac
parent0624f062ec4d5ba941dc61d9c69a8b8133ea6a60
perf parse-regs: Add generic support for arch__intr/user_reg_mask()

There may be different register mask for use with intr or user on some
platforms, e.g. Icelake.

Add weak functions arch__intr_reg_mask() and arch__user_reg_mask() to
return intr and user register mask respectively.

Check mask before printing or comparing the register name.

Generic code always return PERF_REGS_MASK. No functional change.

Suggested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Kan Liang <kan.liang@linux.intel.com>
Tested-by: Ravi Bangoria <ravi.bangoria@linux.ibm.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Link: http://lkml.kernel.org/r/1557865174-56264-2-git-send-email-kan.liang@linux.intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/parse-regs-options.c
tools/perf/util/perf_regs.c
tools/perf/util/perf_regs.h