drivers/hwtracing/coresight/coresight-etm4x-core.c
Source file repositories/reference/linux-study-clean/drivers/hwtracing/coresight/coresight-etm4x-core.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/hwtracing/coresight/coresight-etm4x-core.c- Extension
.c- Size
- 75190 bytes
- Lines
- 2642
- Domain
- Driver Families
- Bucket
- drivers/hwtracing
- Inferred role
- Driver Families: exported/initcall integration point
- Status
- integration 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.
- Exports symbols or registers init work; inspect boot/module ordering and who consumes the exported contract.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- Allocates kernel memory; connect allocation flags and lifetime to context constraints.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/acpi.hlinux/bitfield.hlinux/bitops.hlinux/kernel.hlinux/kvm_host.hlinux/moduleparam.hlinux/init.hlinux/types.hlinux/device.hlinux/io.hlinux/err.hlinux/fs.hlinux/slab.hlinux/delay.hlinux/smp.hlinux/sysfs.hlinux/stat.hlinux/clk.hlinux/cpu.hlinux/cpu_pm.hlinux/coresight.hlinux/coresight-pmu.hlinux/amba/bus.hlinux/seq_file.hlinux/uaccess.hlinux/perf_event.hlinux/perf/arm_pmu.hlinux/platform_device.hlinux/pm_runtime.hlinux/property.hlinux/clk/clk-conf.hasm/barrier.h
Detected Declarations
struct etm4_init_argstruct etm4_enable_argstruct etm4_arch_featuresfunction TRCSSPCICRnfunction etm4x_sysreg_readfunction etm4x_sysreg_writefunction ete_sysreg_readfunction ete_sysreg_writefunction etm_detect_os_lockfunction etm_write_os_lockfunction etm4_os_unlock_csafunction etm4_os_unlockfunction etm4_os_lockfunction etm4_cs_lockfunction etm4_cs_unlockfunction etm4_cpu_idfunction etm4_release_trace_idfunction etm4x_prohibit_tracefunction etm4x_get_kern_user_filterfunction packetfunction etm4_hisi_match_pidfunction etm4_hisi_config_core_commitfunction etm4_enable_arch_specificfunction for_each_set_bitfunction etm4_disable_arch_specificfunction for_each_set_bitfunction etm4_check_arch_featuresfunction etm4_enable_arch_specificfunction etm4x_wait_statusfunction etm4_enable_trace_unitfunction etm4_enable_hwfunction etm4_enable_sysfs_smp_callfunction etm4_config_timestamp_eventfunction etm4_parse_event_configfunction etm4_enable_perffunction etm4_enable_sysfsfunction etm4_enablefunction etm4_disable_trace_unitfunction etm4_disable_hwfunction etm4_disable_sysfs_smp_callfunction etm4_disable_perffunction etm4_disable_sysfsfunction etm4_disablefunction etm4_resume_perffunction etm4_pause_perffunction cpu_supports_sysreg_tracefunction etm4_init_sysreg_accessfunction is_devtype_cpu_trace
Annotated Snippet
module_init(etm4x_init);
module_exit(etm4x_exit);
MODULE_AUTHOR("Pratik Patel <pratikp@codeaurora.org>");
MODULE_AUTHOR("Mathieu Poirier <mathieu.poirier@linaro.org>");
MODULE_DESCRIPTION("Arm CoreSight Program Flow Trace v4.x driver");
MODULE_LICENSE("GPL v2");
Annotation
- Immediate include surface: `linux/acpi.h`, `linux/bitfield.h`, `linux/bitops.h`, `linux/kernel.h`, `linux/kvm_host.h`, `linux/moduleparam.h`, `linux/init.h`, `linux/types.h`.
- Detected declarations: `struct etm4_init_arg`, `struct etm4_enable_arg`, `struct etm4_arch_features`, `function TRCSSPCICRn`, `function etm4x_sysreg_read`, `function etm4x_sysreg_write`, `function ete_sysreg_read`, `function ete_sysreg_write`, `function etm_detect_os_lock`, `function etm_write_os_lock`.
- Atlas domain: Driver Families / drivers/hwtracing.
- Implementation status: integration implementation candidate.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
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.