perf python: Use attr.watermark in twatch.py
authorArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 30 Jan 2012 16:43:21 +0000 (14:43 -0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 30 Jan 2012 20:38:23 +0000 (18:38 -0200)
commitcfeb1d90a1b1db96383b48888cb7a5f10ca12e12
tree0c8ec8fd12db30fae33710b32faeb05d10b0e46a
parentd30d4a080d195892091ad7d014fc9293cc08ea0f
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 <peterz@infradead.org>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
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-v3lnpwgrr8mllcr3ntduuqvc@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/python/twatch.py