powerpc/perf: factor out power8 pmu functions
Factor out some of the power8 pmu functions to new file "isa207-common.c" to share with power9 pmu code. Only code movement and no logic change Signed-off-by: Madhavan Srinivasan <maddy@linux.vnet.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
This commit is contained in:

committed by
Michael Ellerman

parent
4d3576b207
commit
7ffd948fae
@@ -227,4 +227,10 @@
|
||||
#define MAX_ALT 2
|
||||
#define MAX_PMU_COUNTERS 6
|
||||
|
||||
int isa207_get_constraint(u64 event, unsigned long *maskp, unsigned long *valp);
|
||||
int isa207_compute_mmcr(u64 event[], int n_ev,
|
||||
unsigned int hwc[], unsigned long mmcr[],
|
||||
struct perf_event *pevents[]);
|
||||
void isa207_disable_pmc(unsigned int pmc, unsigned long mmcr[]);
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user