STRUCT ETM_EVENT_DATA(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay so bestie, this page is all about struct etm_event_data β€” Coresight specifics associated to an event. it's from the Kernel API Manual, and it's lowkey the main character struct for holding Coresight event deets ✨ no cap.

✨ SYNOPSIS ✨

here's the whole struct, literally:

struct etm_event_data {
    struct work_struct work;
    cpumask_t mask;
    cpumask_t aux_hwid_done;
    void *snk_config;
    u32 cfg_hash;
    struct coresight_path * __percpu *path;
 };

πŸ‘‘ Members πŸ‘‘

member-by-member vibe check, let's go bestie:

  • work β€” the handle to free allocated memory outside IRQ context. it's doing the cleanup outside IRQ context, periodt 🫢
  • mask β€” holds the CPU(s) this event was set for. keeping track of which CPUs are in the group chat πŸ’…
  • aux_hwid_done β€” whether a CPU has emitted the TraceID packet or not. yes/no, iconic binary energy πŸŽ€
  • snk_config β€” the sink configuration. the sink's config, fr fr 🌸
  • cfg_hash β€” the hash id of any coresight config selected. it's giving "which config got picked" πŸ”₯
  • path β€” an array of path, each slot for one CPU. one slot per CPU, no cap πŸ¦‹

🌈 SEE ALSO 🌈

  • Kernel file ./drivers/hwtracing/coresight/coresight-etm-perf.h β€” struct etm_filter(9), struct etm_filters(9). go read those for the full lore πŸ‘‘ iykyk.

okay that's the whole page, bestie πŸ’– it comes from ./drivers/hwtracing/coresight, dated October 2026, and it's literally struct etm_event_data(9). slay, you ate that kernel doc reading session βœ¨πŸ‘‘

πŸ“¦ where this page comes from