aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/include')
-rw-r--r--arch/powerpc/include/asm/perf_counter.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/powerpc/include/asm/perf_counter.h b/arch/powerpc/include/asm/perf_counter.h
index 2ceb0fefa93a..8ccd4e155768 100644
--- a/arch/powerpc/include/asm/perf_counter.h
+++ b/arch/powerpc/include/asm/perf_counter.h
@@ -21,6 +21,7 @@
21 * describe the PMU on a particular POWER-family CPU. 21 * describe the PMU on a particular POWER-family CPU.
22 */ 22 */
23struct power_pmu { 23struct power_pmu {
24 const char *name;
24 int n_counter; 25 int n_counter;
25 int max_alternatives; 26 int max_alternatives;
26 unsigned long add_fields; 27 unsigned long add_fields;
@@ -41,8 +42,6 @@ struct power_pmu {
41 [PERF_COUNT_HW_CACHE_RESULT_MAX]; 42 [PERF_COUNT_HW_CACHE_RESULT_MAX];
42}; 43};
43 44
44extern struct power_pmu *ppmu;
45
46/* 45/*
47 * Values for power_pmu.flags 46 * Values for power_pmu.flags
48 */ 47 */
@@ -56,6 +55,8 @@ extern struct power_pmu *ppmu;
56#define PPMU_LIMITED_PMC_REQD 2 /* have to put this on a limited PMC */ 55#define PPMU_LIMITED_PMC_REQD 2 /* have to put this on a limited PMC */
57#define PPMU_ONLY_COUNT_RUN 4 /* only counting in run state */ 56#define PPMU_ONLY_COUNT_RUN 4 /* only counting in run state */
58 57
58extern int register_power_pmu(struct power_pmu *);
59
59struct pt_regs; 60struct pt_regs;
60extern unsigned long perf_misc_flags(struct pt_regs *regs); 61extern unsigned long perf_misc_flags(struct pt_regs *regs);
61extern unsigned long perf_instruction_pointer(struct pt_regs *regs); 62extern unsigned long perf_instruction_pointer(struct pt_regs *regs);