xref: /linux/tools/perf/arch/powerpc/util/pmu.c (revision 79790b6818e96c58fe2bffee1b418c16e64e7b80)
1*abbdd79bSKan Liang // SPDX-License-Identifier: GPL-2.0
2*abbdd79bSKan Liang 
3*abbdd79bSKan Liang #include <string.h>
4*abbdd79bSKan Liang 
5*abbdd79bSKan Liang #include "../../../util/pmu.h"
6*abbdd79bSKan Liang #include "mem-events.h"
7*abbdd79bSKan Liang 
perf_pmu__arch_init(struct perf_pmu * pmu)8*abbdd79bSKan Liang void perf_pmu__arch_init(struct perf_pmu *pmu)
9*abbdd79bSKan Liang {
10*abbdd79bSKan Liang 	if (pmu->is_core)
11*abbdd79bSKan Liang 		pmu->mem_events = perf_mem_events_power;
12*abbdd79bSKan Liang }
13