coresight_timeout_etm(9)
π NAME π
okay bestie, welcome to coresight_timeout_etm(9) from the Kernel API Manual β yes, we are literally in the kernel API group chat now π
coresight_timeout_etm β loop until a bit has changed to a specific state. no cap, thatβs the whole vibe β¨
πΈ SYNOPSIS πΈ
int coresight_timeout_etm (struct etm_drvdata *drvdata , u32 offset ,
int position , int value );
π ARGUMENTS π
drvdataβ etmβs private data structure. itβs giving βmain character data holderβ energy π«Άoffsetβ address of a register, starting fromaddr.positionβ the position of the bit of interest. yes, that bit πvalueβ the value the bit should have. weβre manifesting this exact state β¨
π¦ DESCRIPTION π¦
okay so this is basically the same as coresight_timeout, except for the register access method where we have to account for CP14 configurations. lowkey important, highkey specific π
π RETURN π
returns 0 as soon as the bit has taken the desired state, or -EAGAIN if TIMEOUT_US has elapsed β which ever happens first. periodt π
π₯ SEE ALSO π₯
- Kernel file
./drivers/hwtracing/coresight/coresight-etm3x-core.cβ go read it, bestie, iykyk πβ¨
mwah π this iconic little page comes from the ./drivers/hwtracing/coresight source/version and is dated October 2026. coresight_timeout_etm(9) out! π«Άπ
π¦ 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