diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-01-18 08:04:30 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-01-18 08:04:30 -0800 |
commit | c6fa63c659b3dd121f21afe7529f505505e79b23 (patch) | |
tree | 1ad782e1fa623416efce7a6525248b54458d5f7c /tools/perf/builtin-record.c | |
parent | 34c682adb30e9602e92f044056c142f69b4a6cfe (diff) | |
parent | ad7f4e3f7b966ac09c8f98dbc5024813a1685775 (diff) | |
download | lwn-c6fa63c659b3dd121f21afe7529f505505e79b23.tar.gz lwn-c6fa63c659b3dd121f21afe7529f505505e79b23.zip |
Merge branch 'perf-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
* 'perf-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
perf tools: Fix tracepoint id to string perf.data header table
perf tools: Fix handling of wildcards in tracepoint event selectors
powerpc: perf: Fix frequency calculation for overflowing counters
Diffstat (limited to 'tools/perf/builtin-record.c')
-rw-r--r-- | tools/perf/builtin-record.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/perf/builtin-record.c b/tools/perf/builtin-record.c index df6064ad9bf2..fcd29e8af29f 100644 --- a/tools/perf/builtin-record.c +++ b/tools/perf/builtin-record.c @@ -936,6 +936,8 @@ int cmd_record(int argc, const char **argv, const char *prefix __used) list_for_each_entry(pos, &evsel_list, node) { if (perf_evsel__alloc_fd(pos, cpus->nr, threads->nr) < 0) goto out_free_fd; + if (perf_header__push_event(pos->attr.config, event_name(pos))) + goto out_free_fd; } event_array = malloc((sizeof(struct pollfd) * MAX_NR_CPUS * MAX_COUNTERS * threads->nr)); |