diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2016-09-01 12:33:46 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2016-09-01 12:33:46 -0400 |
commit | 0cb7bf61b1e9f05027de58c80f9b46a714d24e35 (patch) | |
tree | 41fb55cf62d07b425122f9a8b96412c0d8eb99c5 /tools/perf/util/sort.c | |
parent | aa877175e7a9982233ed8f10cb4bfddd78d82741 (diff) | |
parent | 3eab887a55424fc2c27553b7bfe32330df83f7b8 (diff) |
Merge branch 'linus' into smp/hotplug
Apply upstream changes to avoid conflicts with pending patches.
Diffstat (limited to 'tools/perf/util/sort.c')
-rw-r--r-- | tools/perf/util/sort.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/perf/util/sort.c b/tools/perf/util/sort.c index 947d21f38398..3d3cb8392c86 100644 --- a/tools/perf/util/sort.c +++ b/tools/perf/util/sort.c | |||
@@ -588,7 +588,11 @@ static char *get_trace_output(struct hist_entry *he) | |||
588 | } else { | 588 | } else { |
589 | pevent_event_info(&seq, evsel->tp_format, &rec); | 589 | pevent_event_info(&seq, evsel->tp_format, &rec); |
590 | } | 590 | } |
591 | return seq.buffer; | 591 | /* |
592 | * Trim the buffer, it starts at 4KB and we're not going to | ||
593 | * add anything more to this buffer. | ||
594 | */ | ||
595 | return realloc(seq.buffer, seq.len + 1); | ||
592 | } | 596 | } |
593 | 597 | ||
594 | static int64_t | 598 | static int64_t |