lkml.org 
[lkml]   [2017]   [Nov]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 10/12] perf, tools: Add args and gprs shortcut for registers
Date
From: Andi Kleen <ak@linux.intel.com>

Writing all registers to sample with -I can give very long command
lines. Add short hands for "args" and "gprs"

Signed-off-by: Andi Kleen <ak@linux.intel.com>
---
tools/perf/arch/x86/util/perf_regs.c | 9 +++++++++
1 file changed, 9 insertions(+)

diff --git a/tools/perf/arch/x86/util/perf_regs.c b/tools/perf/arch/x86/util/perf_regs.c
index 4b2caf6d48e7..7d877c49bae5 100644
--- a/tools/perf/arch/x86/util/perf_regs.c
+++ b/tools/perf/arch/x86/util/perf_regs.c
@@ -30,6 +30,15 @@ const struct sample_reg sample_reg_masks[] = {
SMPL_REG(R13, PERF_REG_X86_R13),
SMPL_REG(R14, PERF_REG_X86_R14),
SMPL_REG(R15, PERF_REG_X86_R15),
+ { "args", PERF_REG_X86_DI | PERF_REG_X86_SI | PERF_REG_X86_DX |
+ PERF_REG_X86_CX |
+ PERF_REG_X86_R8 | PERF_REG_X86_R9 },
+ { "gpr", PERF_REG_X86_AX | PERF_REG_X86_BX | PERF_REG_X86_CX |
+ PERF_REG_X86_DX | PERF_REG_X86_SI | PERF_REG_X86_DI |
+ PERF_REG_X86_BP | PERF_REG_X86_SP | PERF_REG_X86_R8 |
+ PERF_REG_X86_R9 | PERF_REG_X86_R10| PERF_REG_X86_R11|
+ PERF_REG_X86_R12| PERF_REG_X86_R13| PERF_REG_X86_R14|
+ PERF_REG_X86_R15 },
#endif
SMPL_REG_END
};
--
2.13.6
\
 
 \ /
  Last update: 2017-11-28 01:25    [W:0.420 / U:0.060 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site