Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 147673
b: refs/heads/master
c: ac4bcf8
h: refs/heads/master
i:
  147671: e960f00
v: v3
  • Loading branch information
Peter Zijlstra authored and Ingo Molnar committed Jun 5, 2009
1 parent 98374c7 commit 8d086a4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 136107a76fe5f62906162f730834477b71cf131e
refs/heads/master: ac4bcf889469ffbca88f234d3184452886a47905
2 changes: 1 addition & 1 deletion trunk/include/linux/perf_counter.h
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ enum perf_counter_sample_format {
PERF_SAMPLE_ADDR = 1U << 3,
PERF_SAMPLE_GROUP = 1U << 4,
PERF_SAMPLE_CALLCHAIN = 1U << 5,
PERF_SAMPLE_CONFIG = 1U << 6,
PERF_SAMPLE_ID = 1U << 6,
PERF_SAMPLE_CPU = 1U << 7,
};

Expand Down
8 changes: 4 additions & 4 deletions trunk/kernel/perf_counter.c
Original file line number Diff line number Diff line change
Expand Up @@ -2392,8 +2392,8 @@ static void perf_counter_output(struct perf_counter *counter,
header.size += sizeof(u64);
}

if (sample_type & PERF_SAMPLE_CONFIG) {
header.type |= PERF_SAMPLE_CONFIG;
if (sample_type & PERF_SAMPLE_ID) {
header.type |= PERF_SAMPLE_ID;
header.size += sizeof(u64);
}

Expand Down Expand Up @@ -2439,8 +2439,8 @@ static void perf_counter_output(struct perf_counter *counter,
if (sample_type & PERF_SAMPLE_ADDR)
perf_output_put(&handle, addr);

if (sample_type & PERF_SAMPLE_CONFIG)
perf_output_put(&handle, counter->attr.config);
if (sample_type & PERF_SAMPLE_ID)
perf_output_put(&handle, counter->id);

if (sample_type & PERF_SAMPLE_CPU)
perf_output_put(&handle, cpu_entry);
Expand Down

0 comments on commit 8d086a4

Please sign in to comment.