mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 17:47:41 +02:00
perf header: In print_pmu_caps use perf_env e_machine
Switch from arch to e_machine in print_pmu_caps. Signed-off-by: Ian Rogers <irogers@google.com> Acked-by: Namhyung Kim <namhyung@kernel.org> Cc: Alexander Gordeev <agordeev@linux.ibm.com> Cc: Heiko Carstens <hca@linux.ibm.com> Cc: Honglei Wang <jameshongleiwang@126.com> Cc: Jan Polensky <japo@linux.ibm.com> Cc: Sumanth Korikkar <sumanthk@linux.ibm.com> Cc: Thomas Richter <tmricht@linux.ibm.com> Cc: Vasily Gorbik <gor@linux.ibm.com> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
parent
82ed70f00c
commit
5d57371b9c
|
|
@ -2461,15 +2461,16 @@ static void print_cpu_pmu_caps(struct feat_fd *ff, FILE *fp)
|
|||
static void print_pmu_caps(struct feat_fd *ff, FILE *fp)
|
||||
{
|
||||
struct perf_env *env = &ff->ph->env;
|
||||
struct pmu_caps *pmu_caps;
|
||||
uint16_t e_machine = perf_env__e_machine(env, /*e_flags=*/NULL);
|
||||
|
||||
for (int i = 0; i < env->nr_pmus_with_caps; i++) {
|
||||
pmu_caps = &env->pmu_caps[i];
|
||||
struct pmu_caps *pmu_caps = &env->pmu_caps[i];
|
||||
|
||||
__print_pmu_caps(fp, pmu_caps->nr_caps, pmu_caps->caps,
|
||||
pmu_caps->pmu_name);
|
||||
}
|
||||
|
||||
if (strcmp(perf_env__arch(env), "x86") == 0 &&
|
||||
if ((e_machine == EM_X86_64 || e_machine == EM_386) &&
|
||||
perf_env__has_pmu_mapping(env, "ibs_op")) {
|
||||
char *max_precise = perf_env__find_pmu_cap(env, "cpu", "max_precise");
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user