diff options
-rw-r--r-- | include/linux/perf_counter.h | 2 | ||||
-rw-r--r-- | kernel/perf_counter.c | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/include/linux/perf_counter.h b/include/linux/perf_counter.h index 40dc0e273d9c..9cea32a0655d 100644 --- a/include/linux/perf_counter.h +++ b/include/linux/perf_counter.h | |||
@@ -104,7 +104,7 @@ enum perf_counter_sample_format { | |||
104 | PERF_SAMPLE_ADDR = 1U << 3, | 104 | PERF_SAMPLE_ADDR = 1U << 3, |
105 | PERF_SAMPLE_GROUP = 1U << 4, | 105 | PERF_SAMPLE_GROUP = 1U << 4, |
106 | PERF_SAMPLE_CALLCHAIN = 1U << 5, | 106 | PERF_SAMPLE_CALLCHAIN = 1U << 5, |
107 | PERF_SAMPLE_CONFIG = 1U << 6, | 107 | PERF_SAMPLE_ID = 1U << 6, |
108 | PERF_SAMPLE_CPU = 1U << 7, | 108 | PERF_SAMPLE_CPU = 1U << 7, |
109 | }; | 109 | }; |
110 | 110 | ||
diff --git a/kernel/perf_counter.c b/kernel/perf_counter.c index 37a5a241ca7e..e75b91a76a58 100644 --- a/kernel/perf_counter.c +++ b/kernel/perf_counter.c | |||
@@ -2392,8 +2392,8 @@ static void perf_counter_output(struct perf_counter *counter, | |||
2392 | header.size += sizeof(u64); | 2392 | header.size += sizeof(u64); |
2393 | } | 2393 | } |
2394 | 2394 | ||
2395 | if (sample_type & PERF_SAMPLE_CONFIG) { | 2395 | if (sample_type & PERF_SAMPLE_ID) { |
2396 | header.type |= PERF_SAMPLE_CONFIG; | 2396 | header.type |= PERF_SAMPLE_ID; |
2397 | header.size += sizeof(u64); | 2397 | header.size += sizeof(u64); |
2398 | } | 2398 | } |
2399 | 2399 | ||
@@ -2439,8 +2439,8 @@ static void perf_counter_output(struct perf_counter *counter, | |||
2439 | if (sample_type & PERF_SAMPLE_ADDR) | 2439 | if (sample_type & PERF_SAMPLE_ADDR) |
2440 | perf_output_put(&handle, addr); | 2440 | perf_output_put(&handle, addr); |
2441 | 2441 | ||
2442 | if (sample_type & PERF_SAMPLE_CONFIG) | 2442 | if (sample_type & PERF_SAMPLE_ID) |
2443 | perf_output_put(&handle, counter->attr.config); | 2443 | perf_output_put(&handle, counter->id); |
2444 | 2444 | ||
2445 | if (sample_type & PERF_SAMPLE_CPU) | 2445 | if (sample_type & PERF_SAMPLE_CPU) |
2446 | perf_output_put(&handle, cpu_entry); | 2446 | perf_output_put(&handle, cpu_entry); |