diff options
Diffstat (limited to 'tools/perf/python')
-rwxr-xr-x | tools/perf/python/twatch.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/python/twatch.py b/tools/perf/python/twatch.py index 5e9f3b7b7ee8..df638c438a9f 100755 --- a/tools/perf/python/twatch.py +++ b/tools/perf/python/twatch.py | |||
@@ -23,9 +23,9 @@ def main(): | |||
23 | sample_id_all = 1, | 23 | sample_id_all = 1, |
24 | sample_type = perf.SAMPLE_PERIOD | perf.SAMPLE_TID | perf.SAMPLE_CPU | perf.SAMPLE_TID) | 24 | sample_type = perf.SAMPLE_PERIOD | perf.SAMPLE_TID | perf.SAMPLE_CPU | perf.SAMPLE_TID) |
25 | evsel.open(cpus = cpus, threads = threads); | 25 | evsel.open(cpus = cpus, threads = threads); |
26 | evlist = perf.evlist() | 26 | evlist = perf.evlist(cpus, threads) |
27 | evlist.add(evsel) | 27 | evlist.add(evsel) |
28 | evlist.mmap(cpus = cpus, threads = threads) | 28 | evlist.mmap() |
29 | while True: | 29 | while True: |
30 | evlist.poll(timeout = -1) | 30 | evlist.poll(timeout = -1) |
31 | for cpu in cpus: | 31 | for cpu in cpus: |