summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/ublk/trace/count_ios_per_tid.bt
diff options
context:
space:
mode:
Diffstat (limited to 'tools/testing/selftests/ublk/trace/count_ios_per_tid.bt')
-rw-r--r--tools/testing/selftests/ublk/trace/count_ios_per_tid.bt11
1 files changed, 11 insertions, 0 deletions
diff --git a/tools/testing/selftests/ublk/trace/count_ios_per_tid.bt b/tools/testing/selftests/ublk/trace/count_ios_per_tid.bt
new file mode 100644
index 000000000000..f4aa63ff2938
--- /dev/null
+++ b/tools/testing/selftests/ublk/trace/count_ios_per_tid.bt
@@ -0,0 +1,11 @@
+/*
+ * Tabulates and prints I/O completions per thread for the given device
+ *
+ * $1: dev_t
+*/
+tracepoint:block:block_rq_complete
+{
+ if (args.dev == $1) {
+ @[tid] = count();
+ }
+}