perf/x86/amd/ibs: Add bitfield definitions in new <asm/amd-ibs.h> header
authorKim Phillips <kim.phillips@amd.com>
Tue, 17 Aug 2021 22:10:48 +0000 (17:10 -0500)
committerIngo Molnar <mingo@kernel.org>
Thu, 26 Aug 2021 07:14:36 +0000 (09:14 +0200)
commit6a371bafe613b7746c3d3ac486bdb3035f77e029
tree0d93bc681506d29a7b57af2c4391fe66dddcf365
parent05485745ad482c1910a45f23a5c255f6a0df0f46
perf/x86/amd/ibs: Add bitfield definitions in new <asm/amd-ibs.h> header

Add <asm/amd-ibs.h> with bitfield definitions for IBS MSRs,
and demonstrate usage within the driver.

Also move 'struct perf_ibs_data' where it can be shared with
the perf tool that will soon be using it.

No functional changes.

Signed-off-by: Kim Phillips <kim.phillips@amd.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20210817221048.88063-9-kim.phillips@amd.com
arch/x86/events/amd/ibs.c
arch/x86/include/asm/amd-ibs.h [new file with mode: 0644]