arch/x86/kernel/trace_clock.c
Source file repositories/reference/linux-study-clean/arch/x86/kernel/trace_clock.c
File Facts
- System
- Linux kernel
- Corpus path
arch/x86/kernel/trace_clock.c- Extension
.c- Size
- 338 bytes
- Lines
- 18
- Domain
- Architecture Layer
- Bucket
- arch/x86
- Inferred role
- Architecture Layer: implementation source
- Status
- source implementation candidate
Why This File Exists
CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.
- CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.
Dependency Surface
asm/trace_clock.hasm/barrier.hasm/tsc.h
Detected Declarations
function trace_clock_x86_tsc
Annotated Snippet
// SPDX-License-Identifier: GPL-2.0
/*
* X86 trace clocks
*/
#include <asm/trace_clock.h>
#include <asm/barrier.h>
#include <asm/tsc.h>
/*
* trace_clock_x86_tsc(): A clock that is just the cycle counter.
*
* Unlike the other clocks, this is not in nanoseconds.
*/
u64 notrace trace_clock_x86_tsc(void)
{
return rdtsc_ordered();
}
Annotation
- Immediate include surface: `asm/trace_clock.h`, `asm/barrier.h`, `asm/tsc.h`.
- Detected declarations: `function trace_clock_x86_tsc`.
- Atlas domain: Architecture Layer / arch/x86.
- 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.