1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2 /* Data structures shared between BPF and tools. */
3 #ifndef UTIL_BPF_SKEL_LOCK_DATA_H
4 #define UTIL_BPF_SKEL_LOCK_DATA_H
6 struct contention_key {
12 #define TASK_COMM_LEN 16
14 struct contention_task_data {
15 char comm[TASK_COMM_LEN];
19 * Upper bits of the flags in the contention_data are used to identify
20 * some well-known locks which do not have symbols (non-global locks).
22 #define LCD_F_MMAP_LOCK (1U << 31)
23 #define LCD_F_SIGHAND_LOCK (1U << 30)
25 #define LCB_F_MAX_FLAGS (1U << 7)
27 struct contention_data {
46 #endif /* UTIL_BPF_SKEL_LOCK_DATA_H */