]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - arch/x86/kernel/cpu/perf_event_intel.c
perf, x86: Improve the PEBS ABI
[net-next-2.6.git] / arch / x86 / kernel / cpu / perf_event_intel.c
index a4b56ac425cb1a30c4ba7927844af20b66c37d49..fdbc652d3febaa5b7da8a3b844d5a031a677d4a0 100644 (file)
@@ -563,7 +563,7 @@ static void intel_pmu_disable_event(struct perf_event *event)
 
        x86_pmu_disable_event(event);
 
-       if (unlikely(event->attr.precise))
+       if (unlikely(event->attr.precise_ip))
                intel_pmu_pebs_disable(event);
 }
 
@@ -615,7 +615,7 @@ static void intel_pmu_enable_event(struct perf_event *event)
                return;
        }
 
-       if (unlikely(event->attr.precise))
+       if (unlikely(event->attr.precise_ip))
                intel_pmu_pebs_enable(event);
 
        __x86_pmu_enable_event(hwc, ARCH_PERFMON_EVENTSEL_ENABLE);