arch/x86/events/amd/ibs.c
Source file repositories/reference/linux-study-clean/arch/x86/events/amd/ibs.c
File Facts
- System
- Linux kernel
- Corpus path
arch/x86/events/amd/ibs.c- Extension
.c- Size
- 51944 bytes
- Lines
- 2020
- Domain
- Architecture Layer
- Bucket
- arch/x86
- Inferred role
- Architecture Layer: exported/initcall integration point
- Status
- integration 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.
- Exports symbols or registers init work; inspect boot/module ordering and who consumes the exported contract.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/perf_event.hlinux/init.hlinux/export.hlinux/pci.hlinux/ptrace.hlinux/syscore_ops.hlinux/sched/clock.hasm/apic.hasm/cpuid/api.hasm/msr.h../perf_event.hlinux/kprobes.hlinux/hardirq.hasm/nmi.hasm/amd/ibs.h
Detected Declarations
struct cpu_perf_ibsstruct perf_ibsenum ibs_statesfunction perf_event_set_periodfunction perf_event_try_updatefunction IbsOpCntCtlfunction forward_event_to_ibsfunction validate_groupfunction for_each_sibling_eventfunction perf_ibs_ldlat_eventfunction perf_ibs_fetch_lat_eventfunction perf_ibs_strmst_eventfunction perf_ibs_initfunction perf_ibs_set_periodfunction get_ibs_fetch_countfunction get_ibs_op_countfunction perf_ibs_event_updatefunction perf_ibs_enable_eventfunction perf_ibs_disable_eventfunction perf_ibs_startfunction perf_ibs_stopfunction perf_ibs_addfunction perf_ibs_delfunction perf_ibs_readfunction zen4_ibs_extensions_is_visiblefunction ibs_fetch_lat_is_visiblefunction ibs_op_strmst_is_visiblefunction ibs_op_rmtsocket_is_visiblefunction ibs_op_ldlat_is_visiblefunction ibs_op_dtlb_pgsize_is_visiblefunction cnt_ctl_is_visiblefunction perf_ibs_get_mem_opfunction perf_ibs_data_srcfunction perf_ibs_get_mem_lvlfunction perf_ibs_cache_hit_st_validfunction perf_ibs_get_mem_snoopfunction perf_ibs_get_tlb_lvlfunction perf_ibs_get_mem_lockfunction perf_ibs_get_data_srcfunction perf_ibs_get_op_data2function perf_ibs_parse_ld_st_datafunction perf_ibs_is_mem_sample_typefunction perf_ibs_get_offset_maxfunction perf_ibs_is_kernel_data_addrfunction perf_ibs_is_kernel_br_targetfunction perf_ibs_discard_samplefunction perf_ibs_phyaddr_clearfunction perf_ibs_handle_irq
Annotated Snippet
device_initcall(amd_ibs_init);
Annotation
- Immediate include surface: `linux/perf_event.h`, `linux/init.h`, `linux/export.h`, `linux/pci.h`, `linux/ptrace.h`, `linux/syscore_ops.h`, `linux/sched/clock.h`, `asm/apic.h`.
- Detected declarations: `struct cpu_perf_ibs`, `struct perf_ibs`, `enum ibs_states`, `function perf_event_set_period`, `function perf_event_try_update`, `function IbsOpCntCtl`, `function forward_event_to_ibs`, `function validate_group`, `function for_each_sibling_event`, `function perf_ibs_ldlat_event`.
- Atlas domain: Architecture Layer / arch/x86.
- Implementation status: integration 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.