diff options
| author | Arnaldo Carvalho de Melo <[email protected]> | 2015-07-27 17:13:21 -0300 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2015-07-29 10:51:45 -0300 |
| commit | 58b32c1b538f2d197ce385d6a314e83f8b787021 (patch) | |
| tree | 279b5d0478e1e5e7af9f7f3127be341b81a29048 /tools/perf/scripts/python | |
| parent | 84576da2f72e51be63c5b63c0e297028fa7ac59f (diff) | |
perf python: Make twatch.py use soft dummy event, freq=0
To not sample, what we want are just the PERF_RECORD_ lifetime events
for threads, using the default, PERF_TYPE_HARDWARE +
PERF_COUNT_HW_CYCLES and freq=1 (the default), makes perf reenable
irq_vectors:local_timer_entry, disabling nohz, not good for some use
cases where all we want is to get notifications when threads comes and
goes...
Fix it by using PERF_TYPE_SOFTWARE (no counter rotation) and
PERF_COUNT_SW_DUMMY (created by Adrian so that we could have access to
those PERF_RECORD_ goodies).
Reported-by: Luiz Fernando Capitulino <[email protected]>
Suggested-by: Peter Zijlstra <[email protected]>
Cc: Adrian Hunter <[email protected]>
Cc: Borislav Petkov <[email protected]>
Cc: David Ahern <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Cc: Jaroslav Skarvada <[email protected]>
Cc: Jeremy Eder <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Stephane Eranian <[email protected]>
Link: http://lkml.kernel.org/n/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions