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
13 struct contention_key
{
16 u64 lock_addr_or_cgroup
;
19 #define TASK_COMM_LEN 16
21 struct contention_task_data
{
22 char comm
[TASK_COMM_LEN
];
25 /* default buffer size */
26 #define MAX_ENTRIES 16384
29 * Upper bits of the flags in the contention_data are used to identify
30 * some well-known locks which do not have symbols (non-global locks).
32 #define LCD_F_MMAP_LOCK (1U << 31)
33 #define LCD_F_SIGHAND_LOCK (1U << 30)
35 #define LCB_F_MAX_FLAGS (1U << 7)
37 struct contention_data
{
57 #endif /* UTIL_BPF_SKEL_LOCK_DATA_H */