diff options
| author | Jiri Olsa <[email protected]> | 2015-12-03 09:06:43 +0000 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2015-12-07 21:12:58 +0000 |
| commit | ab46db0a3325a064bb24e826b12995d157565efb (patch) | |
| tree | af5c27e7913a0d101e2cf8c9281daef9e9367e80 /tools/perf/builtin-stat.c | |
| parent | perf evlist: Factor perf_evlist__(enable|disable) functions (diff) | |
| download | kernel-ab46db0a3325a064bb24e826b12995d157565efb.tar.gz kernel-ab46db0a3325a064bb24e826b12995d157565efb.zip | |
perf stat: Use perf_evlist__enable in handle_initial_delay
No need to mimic the behaviour of perf_evlist__enable, we can use it
directly.
Signed-off-by: Jiri Olsa <[email protected]>
Tested-by: Arnaldo Carvalho de Melo <[email protected]>
Cc: Adrian Hunter <[email protected]>
Cc: David Ahern <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/builtin-stat.c')
| -rw-r--r-- | tools/perf/builtin-stat.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/tools/perf/builtin-stat.c b/tools/perf/builtin-stat.c index 813c52ad9303..8ca40deaa728 100644 --- a/tools/perf/builtin-stat.c +++ b/tools/perf/builtin-stat.c @@ -253,12 +253,9 @@ static void process_interval(void) static void handle_initial_delay(void) { - struct perf_evsel *counter; - if (initial_delay) { usleep(initial_delay * 1000); - evlist__for_each(evsel_list, counter) - perf_evsel__enable(counter); + perf_evlist__enable(evsel_list); } } |
