Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 234452
b: refs/heads/master
c: 712a4b6
h: refs/heads/master
v: v3
  • Loading branch information
Arnaldo Carvalho de Melo committed Feb 17, 2011
1 parent 7de2900 commit e7e0062
Show file tree
Hide file tree
Showing 2 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: fec9cbd15b9e99bab9bc50f1ed7e20a1087d7c6d
refs/heads/master: 712a4b6049724278121d56aba683151d86c8c35a
10 changes: 5 additions & 5 deletions trunk/tools/perf/builtin-record.c
Original file line number Diff line number Diff line change
Expand Up @@ -538,11 +538,6 @@ static int __cmd_record(int argc, const char **argv)
if (have_tracepoints(&evsel_list->entries))
perf_header__set_feat(&session->header, HEADER_TRACE_INFO);

/*
* perf_session__delete(session) will be called at atexit_header()
*/
atexit(atexit_header);

if (forks) {
child_pid = fork();
if (child_pid < 0) {
Expand Down Expand Up @@ -601,6 +596,11 @@ static int __cmd_record(int argc, const char **argv)

perf_session__set_sample_type(session, sample_type);

/*
* perf_session__delete(session) will be called at atexit_header()
*/
atexit(atexit_header);

if (pipe_output) {
err = perf_header__write_pipe(output);
if (err < 0)
Expand Down

0 comments on commit e7e0062

Please sign in to comment.