drivers/hwtracing/coresight/coresight-etm3x-core.c
Source file repositories/reference/linux-study-clean/drivers/hwtracing/coresight/coresight-etm3x-core.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/hwtracing/coresight/coresight-etm3x-core.c- Extension
.c- Size
- 26025 bytes
- Lines
- 1032
- 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/kernel.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/pm_runtime.hlinux/cpu.hlinux/of.hlinux/coresight.hlinux/coresight-pmu.hlinux/amba/bus.hlinux/seq_file.hlinux/uaccess.hlinux/clk.hlinux/perf_event.hlinux/perf/arm_pmu.hasm/sections.hcoresight-etm.hcoresight-etm-perf.hcoresight-trace-id.h
Detected Declarations
struct etm_enable_argfunction etm_os_unlockfunction etm_set_pwrdwnfunction etm_clr_pwrdwnfunction etm_set_pwrupfunction etm_clr_pwrupfunction coresight_timeout_etmfunction etm_set_progfunction etm_clr_progfunction etm_set_defaultfunction etm_config_trace_modefunction etm_parse_event_configfunction etm_enable_hwfunction etm_enable_sysfs_smp_callfunction etm_cpu_idfunction etm_release_trace_idfunction etm_enable_perffunction etm_enable_sysfsfunction etm_enablefunction etm_disable_hwfunction etm_disable_sysfs_smp_callfunction etm_disable_perffunction _free_auxfunction etm_disablefunction etm_online_cpufunction etm_starting_cpufunction etm_dying_cpufunction etm_arch_supportedfunction etm_init_arch_datafunction etm_hp_setupfunction etm_hp_clearfunction etm_probefunction clear_etmdrvdatafunction etm_removefunction etm_runtime_suspendfunction etm_runtime_resumefunction etm_initfunction etm_exitmodule init etm_init
Annotated Snippet
module_init(etm_init);
module_exit(etm_exit);
MODULE_AUTHOR("Pratik Patel <pratikp@codeaurora.org>");
MODULE_AUTHOR("Mathieu Poirier <mathieu.poirier@linaro.org>");
MODULE_DESCRIPTION("Arm CoreSight Program Flow Trace driver");
MODULE_LICENSE("GPL v2");
Annotation
- Immediate include surface: `linux/kernel.h`, `linux/moduleparam.h`, `linux/init.h`, `linux/types.h`, `linux/device.h`, `linux/io.h`, `linux/err.h`, `linux/fs.h`.
- Detected declarations: `struct etm_enable_arg`, `function etm_os_unlock`, `function etm_set_pwrdwn`, `function etm_clr_pwrdwn`, `function etm_set_pwrup`, `function etm_clr_pwrup`, `function coresight_timeout_etm`, `function etm_set_prog`, `function etm_clr_prog`, `function etm_set_default`.
- 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.