include/trace/events/maple_tree.h
Source file repositories/reference/linux-study-clean/include/trace/events/maple_tree.h
File Facts
- System
- Linux kernel
- Corpus path
include/trace/events/maple_tree.h- Extension
.h- Size
- 2750 bytes
- Lines
- 124
- Domain
- Repository Root And Misc
- Bucket
- include
- Inferred role
- Repository Root And Misc: implementation source
- Status
- source implementation candidate
Why This File Exists
Top-level or miscellaneous repository surface. Use this as map coverage unless a later manual pass promotes the file into a deeper subsystem dossier.
- Top-level or miscellaneous repository surface. Use this as map coverage unless a later manual pass promotes the file into a deeper subsystem dossier.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/tracepoint.htrace/define_trace.h
Detected Declarations
struct ma_state
Annotated Snippet
#undef TRACE_SYSTEM
#define TRACE_SYSTEM maple_tree
#if !defined(_TRACE_MM_H) || defined(TRACE_HEADER_MULTI_READ)
#define _TRACE_MM_H
#include <linux/tracepoint.h>
struct ma_state;
TRACE_EVENT(ma_op,
TP_PROTO(const char *fn, struct ma_state *mas),
TP_ARGS(fn, mas),
TP_STRUCT__entry(
__field(const char *, fn)
__field(unsigned long, min)
__field(unsigned long, max)
__field(unsigned long, index)
__field(unsigned long, last)
__field(void *, node)
),
TP_fast_assign(
__entry->fn = fn;
__entry->min = mas->min;
__entry->max = mas->max;
__entry->index = mas->index;
__entry->last = mas->last;
__entry->node = mas->node;
),
TP_printk("%s\tNode: %p (%lu %lu) range: %lu-%lu",
__entry->fn,
(void *) __entry->node,
(unsigned long) __entry->min,
(unsigned long) __entry->max,
(unsigned long) __entry->index,
(unsigned long) __entry->last
)
)
TRACE_EVENT(ma_read,
TP_PROTO(const char *fn, struct ma_state *mas),
TP_ARGS(fn, mas),
TP_STRUCT__entry(
__field(const char *, fn)
__field(unsigned long, min)
__field(unsigned long, max)
__field(unsigned long, index)
__field(unsigned long, last)
__field(void *, node)
),
TP_fast_assign(
__entry->fn = fn;
__entry->min = mas->min;
__entry->max = mas->max;
__entry->index = mas->index;
__entry->last = mas->last;
__entry->node = mas->node;
),
TP_printk("%s\tNode: %p (%lu %lu) range: %lu-%lu",
__entry->fn,
(void *) __entry->node,
(unsigned long) __entry->min,
(unsigned long) __entry->max,
(unsigned long) __entry->index,
(unsigned long) __entry->last
)
)
TRACE_EVENT(ma_write,
TP_PROTO(const char *fn, struct ma_state *mas, unsigned long piv,
void *val),
TP_ARGS(fn, mas, piv, val),
TP_STRUCT__entry(
__field(const char *, fn)
__field(unsigned long, min)
__field(unsigned long, max)
__field(unsigned long, index)
Annotation
- Immediate include surface: `linux/tracepoint.h`, `trace/define_trace.h`.
- Detected declarations: `struct ma_state`.
- Atlas domain: Repository Root And Misc / include.
- Implementation status: source implementation candidate.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.