aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorAndrew Morton <akpm@linux-foundation.org>2022-12-16 14:45:03 -0800
committerAndrew Morton <akpm@linux-foundation.org>2022-12-16 14:45:03 -0800
commit563a5423b7b75e1bee8b91caddf3181cca2a74bd (patch)
tree44fa2159392be20e96434588a866813dc08b11d7 /tools/perf/scripts/python/bin
parentfault-injection: make stacktrace filter works as expected (diff)
parentMerge tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm6... (diff)
downloadlinux-563a5423b7b75e1bee8b91caddf3181cca2a74bd.tar.gz
linux-563a5423b7b75e1bee8b91caddf3181cca2a74bd.zip
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 -- "$@"