// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) /* Data structures shared between BPF and tools. */ #ifndef UTIL_BPF_SKEL_LOCK_DATA_H #define UTIL_BPF_SKEL_LOCK_DATA_H
struct owner_tracing_data {
u32 pid; // Who has the lock.
u32 count; // How many waiters for this lock.
u64 timestamp; // The time while the owner acquires lock and contention is going on.
s32 stack_id; // Identifier for `owner_stat`, which stores as value in `owner_stacks`
};
/* * 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) #define LCD_F_SIGHAND_LOCK (1U << 30)
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.