coresight_timeout_etm(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 from addr.
  • 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