diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2012-12-10 14:41:31 -0500 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2012-12-11 15:19:01 -0500 |
commit | f77a951826b44b763e4d9fbd2479b6132d2bd7fc (patch) | |
tree | 13d02b7130d1d6ce0fe7ef787c1ed56258f4868c /tools/perf/builtin-trace.c | |
parent | 62b807f64948f55776b1cc57298966d915b1a402 (diff) |
perf evlist: Set the leader in the perf_evlist__config method
Since we need to ensure the leader is set before configuring the
evsel perf_event_attrs.
Reducing the boilerplate needed by tools, helping, for instance,
'perf trace', that wasn't setting the leader.
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Namhyung Kim <namhyung@gmail.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/n/tip-22shm0ptkch2kgl7rtqlligx@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/builtin-trace.c')
-rw-r--r-- | tools/perf/builtin-trace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/builtin-trace.c b/tools/perf/builtin-trace.c index 7932ffa29889..d222d7fc7e96 100644 --- a/tools/perf/builtin-trace.c +++ b/tools/perf/builtin-trace.c | |||
@@ -455,7 +455,7 @@ static int trace__run(struct trace *trace, int argc, const char **argv) | |||
455 | goto out_delete_evlist; | 455 | goto out_delete_evlist; |
456 | } | 456 | } |
457 | 457 | ||
458 | perf_evlist__config_attrs(evlist, &trace->opts); | 458 | perf_evlist__config(evlist, &trace->opts); |
459 | 459 | ||
460 | signal(SIGCHLD, sig_handler); | 460 | signal(SIGCHLD, sig_handler); |
461 | signal(SIGINT, sig_handler); | 461 | signal(SIGINT, sig_handler); |