aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorAndrew Morton <[email protected]>2022-12-16 14:45:03 -0800
committerAndrew Morton <[email protected]>2022-12-16 14:45:03 -0800
commit563a5423b7b75e1bee8b91caddf3181cca2a74bd (patch)
tree44fa2159392be20e96434588a866813dc08b11d7 /tools/perf/scripts/python/bin
parentf9eeef5918bbe1f2545d36280330dced25d6cf97 (diff)
parent77856d911a8c8724ee8e2b09d55979fc1de8f1c0 (diff)
Merge branch 'master' into mm-nonmm-stable
Diffstat (limited to 'tools/perf/scripts/python/bin')
-rwxr-xr-xtools/perf/scripts/python/bin/task-analyzer-record2
-rwxr-xr-xtools/perf/scripts/python/bin/task-analyzer-report3
2 files changed, 5 insertions, 0 deletions
diff --git a/tools/perf/scripts/python/bin/task-analyzer-record b/tools/perf/scripts/python/bin/task-analyzer-record
new file mode 100755
index 000000000000..0f6b51bb2767
--- /dev/null
+++ b/tools/perf/scripts/python/bin/task-analyzer-record
@@ -0,0 +1,2 @@
+#!/bin/bash
+perf record -e sched:sched_switch -e sched:sched_migrate_task "$@"
diff --git a/tools/perf/scripts/python/bin/task-analyzer-report b/tools/perf/scripts/python/bin/task-analyzer-report
new file mode 100755
index 000000000000..4b16a8cc40a0
--- /dev/null
+++ b/tools/perf/scripts/python/bin/task-analyzer-report
@@ -0,0 +1,3 @@
+#!/bin/bash
+# description: analyze timings of tasks
+perf script -s "$PERF_EXEC_PATH"/scripts/python/task-analyzer.py -- "$@"