include/trace/events/osnoise.h
Source file repositories/reference/linux-study-clean/include/trace/events/osnoise.h
File Facts
- System
- Linux kernel
- Corpus path
include/trace/events/osnoise.h- Extension
.h- Size
- 5394 bytes
- Lines
- 239
- 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 osnoise_samplestruct timerlat_sample
Annotated Snippet
struct osnoise_sample {
u64 runtime; /* runtime */
u64 noise; /* noise */
u64 max_sample; /* max single noise sample */
int hw_count; /* # HW (incl. hypervisor) interference */
int nmi_count; /* # NMIs during this sample */
int irq_count; /* # IRQs during this sample */
int softirq_count; /* # softirqs during this sample */
int thread_count; /* # threads during this sample */
};
#ifdef CONFIG_TIMERLAT_TRACER
/*
* timerlat sample structure definition. Used to store the statistics of
* a sample run.
*/
struct timerlat_sample {
u64 timer_latency; /* timer_latency */
unsigned int seqnum; /* unique sequence */
int context; /* timer context */
};
#endif // CONFIG_TIMERLAT_TRACER
#endif // _OSNOISE_TRACE_H
#include <linux/tracepoint.h>
TRACE_EVENT(osnoise_sample,
TP_PROTO(struct osnoise_sample *s),
TP_ARGS(s),
TP_STRUCT__entry(
__field( u64, runtime )
__field( u64, noise )
__field( u64, max_sample )
__field( int, hw_count )
__field( int, irq_count )
__field( int, nmi_count )
__field( int, softirq_count )
__field( int, thread_count )
),
TP_fast_assign(
__entry->runtime = s->runtime;
__entry->noise = s->noise;
__entry->max_sample = s->max_sample;
__entry->hw_count = s->hw_count;
__entry->irq_count = s->irq_count;
__entry->nmi_count = s->nmi_count;
__entry->softirq_count = s->softirq_count;
__entry->thread_count = s->thread_count;
),
TP_printk("runtime=%llu noise=%llu max_sample=%llu hw_count=%d"
" irq_count=%d nmi_count=%d softirq_count=%d"
" thread_count=%d",
__entry->runtime,
__entry->noise,
__entry->max_sample,
__entry->hw_count,
__entry->irq_count,
__entry->nmi_count,
__entry->softirq_count,
__entry->thread_count)
);
#ifdef CONFIG_TIMERLAT_TRACER
TRACE_EVENT(timerlat_sample,
TP_PROTO(struct timerlat_sample *s),
TP_ARGS(s),
TP_STRUCT__entry(
__field( u64, timer_latency )
__field( unsigned int, seqnum )
__field( int, context )
),
TP_fast_assign(
__entry->timer_latency = s->timer_latency;
__entry->seqnum = s->seqnum;
__entry->context = s->context;
),
TP_printk("timer_latency=%llu seqnum=%u context=%d",
__entry->timer_latency,
__entry->seqnum,
__entry->context)
);
Annotation
- Immediate include surface: `linux/tracepoint.h`, `trace/define_trace.h`.
- Detected declarations: `struct osnoise_sample`, `struct timerlat_sample`.
- 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.