diff options
author | Peter Zijlstra <a.p.zijlstra@chello.nl> | 2009-06-05 08:44:52 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-06-05 12:07:47 -0400 |
commit | ac4bcf889469ffbca88f234d3184452886a47905 (patch) | |
tree | 7a183aaa0524d2e1ad192f01ac9a48ba2e9b51d6 /kernel | |
parent | 136107a76fe5f62906162f730834477b71cf131e (diff) |
perf_counter: Change PERF_SAMPLE_CONFIG into PERF_SAMPLE_ID
The purpose of PERF_SAMPLE_CONFIG was to identify the counters,
since then we've added counter ids, use those instead.
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/perf_counter.c | 8 |
1 files changed, 4 insertions, 4 deletions
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); |