Skip to contentSkip to conversation

perf python: Use attr.watermark in twatch.py

tip:perf/core tip-bot for Arnaldo Carvalho de Melo 1 participant 1 message Jan 31, 2012 perf events

lore
Share & tools
lore
#0 lore raw
Commit-ID:  cfeb1d90a1b1db96383b48888cb7a5f10ca12e12
Gitweb:     http://git.kernel.org/tip/cfeb1d90a1b1db96383b48888cb7a5f10ca12e12
Author:     Arnaldo Carvalho de Melo <[email protected]>
AuthorDate: Mon, 30 Jan 2012 14:43:21 -0200
Committer:  Arnaldo Carvalho de Melo <[email protected]>
CommitDate: Mon, 30 Jan 2012 18:38:23 -0200

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.

---
 tools/perf/python/twatch.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
tools/perf/python/twatch.py +1 -1
index df638c4..b11cca5 100755
@@ -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);