OSDN Git Service

perf/x86/intel/lbr: Unify the stored format of LBR information
authorKan Liang <kan.liang@linux.intel.com>
Fri, 3 Jul 2020 12:49:16 +0000 (05:49 -0700)
committerPeter Zijlstra <peterz@infradead.org>
Wed, 8 Jul 2020 09:38:53 +0000 (11:38 +0200)
commit5624986dc61b81a77fb6136bc232593483d1c254
tree99a220f73d6d76b503a21a9ee3d8799eb6870e3d
parent49d8184f2036ff5b8d1eea3d61bac8b23420eca7
perf/x86/intel/lbr: Unify the stored format of LBR information

Current LBR information in the structure x86_perf_task_context is stored
in a different format from the PEBS LBR record and Architecture LBR,
which prevents the sharing of the common codes.

Use the format of the PEBS LBR record as a unified format. Use a generic
name lbr_entry to replace pebs_lbr_entry.

Signed-off-by: Kan Liang <kan.liang@linux.intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/1593780569-62993-11-git-send-email-kan.liang@linux.intel.com
arch/x86/events/intel/ds.c
arch/x86/events/intel/lbr.c
arch/x86/events/perf_event.h
arch/x86/include/asm/perf_event.h