|
@@ -485,7 +485,7 @@ static bool is_ebb_event(struct perf_event *event)
|
|
|
* check that the PMU supports EBB, meaning those that don't can still
|
|
|
* use bit 63 of the event code for something else if they wish.
|
|
|
*/
|
|
|
- return (ppmu->flags & PPMU_EBB) &&
|
|
|
+ return (ppmu->flags & PPMU_ARCH_207S) &&
|
|
|
((event->attr.config >> PERF_EVENT_CONFIG_EBB_SHIFT) & 1);
|
|
|
}
|
|
|
|
|
@@ -777,7 +777,7 @@ void perf_event_print_debug(void)
|
|
|
if (ppmu->flags & PPMU_HAS_SIER)
|
|
|
sier = mfspr(SPRN_SIER);
|
|
|
|
|
|
- if (ppmu->flags & PPMU_EBB) {
|
|
|
+ if (ppmu->flags & PPMU_ARCH_207S) {
|
|
|
pr_info("MMCR2: %016lx EBBHR: %016lx\n",
|
|
|
mfspr(SPRN_MMCR2), mfspr(SPRN_EBBHR));
|
|
|
pr_info("EBBRR: %016lx BESCR: %016lx\n",
|
|
@@ -1696,7 +1696,7 @@ static int power_pmu_event_init(struct perf_event *event)
|
|
|
|
|
|
if (has_branch_stack(event)) {
|
|
|
/* PMU has BHRB enabled */
|
|
|
- if (!(ppmu->flags & PPMU_BHRB))
|
|
|
+ if (!(ppmu->flags & PPMU_ARCH_207S))
|
|
|
return -EOPNOTSUPP;
|
|
|
}
|
|
|
|