summaryrefslogtreecommitdiffstats
path: root/tools/bpf/runqslower/runqslower.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/bpf/runqslower/runqslower.h')
-rw-r--r--tools/bpf/runqslower/runqslower.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/tools/bpf/runqslower/runqslower.h b/tools/bpf/runqslower/runqslower.h
new file mode 100644
index 0000000000..4f70f07200
--- /dev/null
+++ b/tools/bpf/runqslower/runqslower.h
@@ -0,0 +1,13 @@
+/* SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) */
+#ifndef __RUNQSLOWER_H
+#define __RUNQSLOWER_H
+
+#define TASK_COMM_LEN 16
+
+struct runq_event {
+ char task[TASK_COMM_LEN];
+ __u64 delta_us;
+ pid_t pid;
+};
+
+#endif /* __RUNQSLOWER_H */