summaryrefslogtreecommitdiff
path: root/tools/perf/util/bpf_skel/lock_data.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/util/bpf_skel/lock_data.h')
-rw-r--r--tools/perf/util/bpf_skel/lock_data.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/perf/util/bpf_skel/lock_data.h b/tools/perf/util/bpf_skel/lock_data.h
index 3d35fd4407ac..789f20833798 100644
--- a/tools/perf/util/bpf_skel/lock_data.h
+++ b/tools/perf/util/bpf_skel/lock_data.h
@@ -15,6 +15,12 @@ struct contention_task_data {
char comm[TASK_COMM_LEN];
};
+/*
+ * Upper bits of the flags in the contention_data are used to identify
+ * some well-known locks which do not have symbols (non-global locks).
+ */
+#define LCD_F_MMAP_LOCK (1U << 31)
+
struct contention_data {
u64 total_time;
u64 min_time;