STRUCT ETM_DRVDATA(9)
π struct etm_drvdata(9) π
welcome to the Kernel API Manual, bestie β this page is all about the specifics associated to an ETM component, and itβs giving βstruct full of core detailsβ energy π
πΈ NAME πΈ
struct etm_drvdata β the specifics associated to an ETM component β¨
β¨ SYNOPSIS β¨
okay so hereβs the exact shape, no cap:
struct etm_drvdata {
struct csdev_access csa;
struct clk *atclk;
struct coresight_device *csdev;
spinlock_t spinlock;
int cpu;
int port_size;
u8 arch;
bool use_cp14;
bool sticky_enable;
bool boot_enable;
bool os_unlock;
u8 nr_addr_cmp;
u8 nr_cntr;
u8 nr_ext_inp;
u8 nr_ext_out;
u8 nr_ctxid_cmp;
u32 etmccr;
u32 etmccer;
u32 traceid;
struct etm_config config;
};
π«Ά Members π«Ά
atclkβ optional clock for the core parts of the ETM. optional clock, iconic behavior.csdevβ component vitals needed by the framework. the frameworkβs essentials, fr.spinlockβ only one at a time pls. no sharing, bestie πcpuβ the cpu this component is affined to.port_sizeβ port size as reported by ETMCR bit 4-6 and 21.archβ ETM/PTM version number.sticky_enableβtrueif ETM base configuration has been done.boot_enableβtrueif we should start tracing at boot time.os_unlockβtrueif access to management registers is allowed.nr_addr_cmpβ Number of pairs of address comparators as found in ETMCCR.nr_cntrβ Number of counters as found in ETMCCR bit 13-15.nr_ext_inpβ Number of external input as found in ETMCCR bit 17-19.nr_ext_outβ Number of external output as found in ETMCCR bit 20-22.nr_ctxid_cmpβ Number of contextID comparators as found in ETMCCR bit 24-25.etmccrβ value of register ETMCCR.etmccerβ value of register ETMCCER.traceidβ value of the current ID for this component.configβ structure holding configuration parameters.
tiny note:csaanduse_cp14are in the struct above, but the original Members list doesnβt give them their own blurbs β so Iβm not inventing lore, bestie π
π SEE ALSO π
- Kernel file
./drivers/hwtracing/coresight/coresight-etm.h struct etm_config(9)
go read those next, iykyk π
xoxo from ./drivers/hwtracing/coresight β October 2026 edition, bye bestie π
π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms