perf stat: Move enable_on_exec setup under earlier code
authorJiri Olsa <jolsa@kernel.org>
Thu, 3 Dec 2015 09:06:45 +0000 (10:06 +0100)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 7 Dec 2015 21:12:59 +0000 (18:12 -0300)
commitc8280cec2a196f2ffea83dd755b17eb020ca1b83
tree7794fed446eb112f7f9c78cb0f7a4d41f5589a29
parent67ccdecd09cac818146b1e153ff901cb67570012
perf stat: Move enable_on_exec setup under earlier code

It's more readable this way and we can save one
perf_evsel__is_group_leader condition in current code.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1449133606-14429-7-git-send-email-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-stat.c