drivers/hv/hv_trace_balloon.h
Source file repositories/reference/linux-study-clean/drivers/hv/hv_trace_balloon.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/hv/hv_trace_balloon.h- Extension
.h- Size
- 1640 bytes
- Lines
- 49
- Domain
- Driver Families
- Bucket
- drivers/hv
- Inferred role
- Driver Families: implementation source
- Status
- source implementation candidate
Why This File Exists
Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
Dependency Surface
linux/tracepoint.htrace/define_trace.h
Detected Declarations
- No top-level syscall, struct, function, initcall, or export declaration detected by the generator.
Annotated Snippet
#undef TRACE_SYSTEM
#define TRACE_SYSTEM hyperv
#if !defined(_HV_TRACE_BALLOON_H) || defined(TRACE_HEADER_MULTI_READ)
#define _HV_TRACE_BALLOON_H
#include <linux/tracepoint.h>
TRACE_EVENT(balloon_status,
TP_PROTO(u64 available, u64 committed,
unsigned long vm_memory_committed,
unsigned long pages_ballooned,
unsigned long pages_added,
unsigned long pages_onlined),
TP_ARGS(available, committed, vm_memory_committed,
pages_ballooned, pages_added, pages_onlined),
TP_STRUCT__entry(
__field(u64, available)
__field(u64, committed)
__field(unsigned long, vm_memory_committed)
__field(unsigned long, pages_ballooned)
__field(unsigned long, pages_added)
__field(unsigned long, pages_onlined)
),
TP_fast_assign(
__entry->available = available;
__entry->committed = committed;
__entry->vm_memory_committed = vm_memory_committed;
__entry->pages_ballooned = pages_ballooned;
__entry->pages_added = pages_added;
__entry->pages_onlined = pages_onlined;
),
TP_printk("available %lld, committed %lld; vm_memory_committed %ld;"
" pages_ballooned %ld, pages_added %ld, pages_onlined %ld",
__entry->available, __entry->committed,
__entry->vm_memory_committed, __entry->pages_ballooned,
__entry->pages_added, __entry->pages_onlined
)
);
#undef TRACE_INCLUDE_PATH
#define TRACE_INCLUDE_PATH .
#undef TRACE_INCLUDE_FILE
#define TRACE_INCLUDE_FILE hv_trace_balloon
#endif /* _HV_TRACE_BALLOON_H */
/* This part must be outside protection */
#include <trace/define_trace.h>
Annotation
- Immediate include surface: `linux/tracepoint.h`, `trace/define_trace.h`.
- Atlas domain: Driver Families / drivers/hv.
- 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.