From: Arnaldo Carvalho de Melo Date: Mon, 30 Jan 2012 16:43:21 +0000 (-0200) Subject: perf python: Use attr.watermark in twatch.py X-Git-Tag: v3.5-rc1~102^2~30^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cfeb1d90a1b1db96383b48888cb7a5f10ca12e12;p=profile%2Fivi%2Fkernel-x86-ivi.git perf python: Use attr.watermark in twatch.py We want to be woken up for every PERF_RECORD_ event, attr.wakeup_events is only for PERF_RECORD_SAMPLE, so also use attr.watermark = 1 to fix that. Suggested-by: Peter Zijlstra Cc: David Ahern Cc: Frederic Weisbecker Cc: Mike Galbraith Cc: Paul Mackerras Cc: Peter Zijlstra Cc: Stephane Eranian Link: http://lkml.kernel.org/n/tip-v3lnpwgrr8mllcr3ntduuqvc@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- diff --git a/tools/perf/python/twatch.py b/tools/perf/python/twatch.py index df638c4..b11cca5 100755 --- a/tools/perf/python/twatch.py +++ b/tools/perf/python/twatch.py @@ -19,7 +19,7 @@ def main(): cpus = perf.cpu_map() threads = perf.thread_map() evsel = perf.evsel(task = 1, comm = 1, mmap = 0, - wakeup_events = 1, sample_period = 1, + wakeup_events = 1, watermark = 1, sample_id_all = 1, sample_type = perf.SAMPLE_PERIOD | perf.SAMPLE_TID | perf.SAMPLE_CPU | perf.SAMPLE_TID) evsel.open(cpus = cpus, threads = threads);