Skip to content

Commit 0ceb549

Browse files
committed
tools x86 uapi asm: Sync the pt_regs.h copy with the kernel sources
To get the changes in: 878068e ("perf/x86: Support outputting XMM registers") That will be used in a followup patch to allow users to ask for some or all of those registers to be collected in certain contatexts. This silences the following perf build warning: Warning: Kernel ABI header at 'tools/arch/x86/include/uapi/asm/perf_regs.h' differs from latest version at 'arch/x86/include/uapi/asm/perf_regs.h' diff -u tools/arch/x86/include/uapi/asm/perf_regs.h arch/x86/include/uapi/asm/perf_regs.h Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Andi Kleen <ak@linux.intel.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Kan Liang <kan.liang@linux.intel.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Link: https://lkml.kernel.org/n/tip-6pjnnrzqt3x3n2cd6br3wk7k@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
1 parent f98f10f commit 0ceb549

1 file changed

Lines changed: 22 additions & 1 deletion

File tree

‎tools/arch/x86/include/uapi/asm/perf_regs.h‎

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,29 @@ enum perf_event_x86_regs {
2727
PERF_REG_X86_R13,
2828
PERF_REG_X86_R14,
2929
PERF_REG_X86_R15,
30-
30+
/* These are the limits for the GPRs. */
3131
PERF_REG_X86_32_MAX = PERF_REG_X86_GS + 1,
3232
PERF_REG_X86_64_MAX = PERF_REG_X86_R15 + 1,
33+
34+
/* These all need two bits set because they are 128bit */
35+
PERF_REG_X86_XMM0 = 32,
36+
PERF_REG_X86_XMM1 = 34,
37+
PERF_REG_X86_XMM2 = 36,
38+
PERF_REG_X86_XMM3 = 38,
39+
PERF_REG_X86_XMM4 = 40,
40+
PERF_REG_X86_XMM5 = 42,
41+
PERF_REG_X86_XMM6 = 44,
42+
PERF_REG_X86_XMM7 = 46,
43+
PERF_REG_X86_XMM8 = 48,
44+
PERF_REG_X86_XMM9 = 50,
45+
PERF_REG_X86_XMM10 = 52,
46+
PERF_REG_X86_XMM11 = 54,
47+
PERF_REG_X86_XMM12 = 56,
48+
PERF_REG_X86_XMM13 = 58,
49+
PERF_REG_X86_XMM14 = 60,
50+
PERF_REG_X86_XMM15 = 62,
51+
52+
/* These include both GPRs and XMMX registers */
53+
PERF_REG_X86_XMM_MAX = PERF_REG_X86_XMM15 + 2,
3354
};
3455
#endif /* _ASM_X86_PERF_REGS_H */

0 commit comments

Comments
 (0)