Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 156631
b: refs/heads/master
c: 10b8e30
h: refs/heads/master
i:
  156629: 393aada
  156627: d89872c
  156623: 650de98
v: v3
  • Loading branch information
Frederic Weisbecker authored and Ingo Molnar committed Aug 9, 2009
1 parent 5571467 commit 20d611b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 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: 25446036cbfc2c89faacdb4fb4603943d2197dc6
refs/heads/master: 10b8e3066066708f304e0fc5cfe658e05abf943d
7 changes: 4 additions & 3 deletions trunk/kernel/perf_counter.c
Original file line number Diff line number Diff line change
Expand Up @@ -2646,7 +2646,7 @@ static void perf_counter_output(struct perf_counter *counter, int nmi,
u64 counter;
} group_entry;
struct perf_callchain_entry *callchain = NULL;
struct perf_tracepoint_record *tp;
struct perf_tracepoint_record *tp = NULL;
int callchain_size = 0;
u64 time;
struct {
Expand Down Expand Up @@ -2717,7 +2717,8 @@ static void perf_counter_output(struct perf_counter *counter, int nmi,

if (sample_type & PERF_SAMPLE_TP_RECORD) {
tp = data->private;
header.size += tp->size;
if (tp)
header.size += tp->size;
}

ret = perf_output_begin(&handle, counter, header.size, nmi, 1);
Expand Down Expand Up @@ -2783,7 +2784,7 @@ static void perf_counter_output(struct perf_counter *counter, int nmi,
}
}

if (sample_type & PERF_SAMPLE_TP_RECORD)
if ((sample_type & PERF_SAMPLE_TP_RECORD) && tp)
perf_output_copy(&handle, tp->record, tp->size);

perf_output_end(&handle);
Expand Down

0 comments on commit 20d611b

Please sign in to comment.