perf_counter: Standardize event names
[linux-2.6.git] / tools / perf / builtin-top.c
index 309dbc7..fe338d3 100644 (file)
@@ -562,13 +562,13 @@ try_again:
                 * is always available even if no PMU support:
                 */
                if (attr->type == PERF_TYPE_HARDWARE
-                       && attr->config == PERF_COUNT_CPU_CYCLES) {
+                       && attr->config == PERF_COUNT_HW_CPU_CYCLES) {
 
                        if (verbose)
                                warning(" ... trying to fall back to cpu-clock-ticks\n");
 
                        attr->type = PERF_TYPE_SOFTWARE;
-                       attr->config = PERF_COUNT_CPU_CLOCK;
+                       attr->config = PERF_COUNT_SW_CPU_CLOCK;
                        goto try_again;
                }
                printf("\n");