lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Mon, 27 Nov 2017 16:23:19 -0800
From:   Andi Kleen <andi@...stfloor.org>
To:     acme@...nel.org
Cc:     jolsa@...nel.org, mhiramat@...nel.org, adrian.hunter@...el.com,
        linux-kernel@...r.kernel.org, Andi Kleen <ak@...ux.intel.com>
Subject: [PATCH 10/12] perf, tools: Add args and gprs shortcut for registers

From: Andi Kleen <ak@...ux.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@...ux.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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ