STRUCT ETMV4_CONFIG(9)
π NAME π
okay bestie, welcome to the Kernel API Manual page for struct etmv4_config(9). This struct is literally the configuration information related to an ETMv4 β no cap, that's the whole name. π
β¨ SYNOPSIS β¨
struct etmv4_config {
u64 mode;
u32 pe_sel;
u32 cfg;
u32 eventctrl0;
u32 eventctrl1;
u32 stall_ctrl;
u32 ts_ctrl;
u32 ccctlr;
u32 bb_ctrl;
u32 vinst_ctrl;
u32 viiectlr;
u32 vissctlr;
u32 vipcssctlr;
u8 seq_idx;
u8 syncfreq;
u32 seq_ctrl[ETM_MAX_SEQ_TRANSITIONS];
u32 seq_rst;
u32 seq_state;
u8 cntr_idx;
u32 cntrldvr[ETMv4_MAX_CNTR];
u32 cntr_ctrl[ETMv4_MAX_CNTR];
u32 cntr_val[ETMv4_MAX_CNTR];
u8 res_idx;
u32 res_ctrl[ETM_MAX_RES_SEL];
u8 ss_idx;
u32 ss_ctrl[ETM_MAX_SS_CMP];
u32 ss_status[ETM_MAX_SS_CMP];
u32 ss_pe_cmp[ETM_MAX_SS_CMP];
u8 addr_idx;
u64 addr_val[ETM_MAX_SINGLE_ADDR_CMP];
u64 addr_acc[ETM_MAX_SINGLE_ADDR_CMP];
u8 addr_type[ETM_MAX_SINGLE_ADDR_CMP];
u8 ctxid_idx;
u64 ctxid_pid[ETMv4_MAX_CTXID_CMP];
u32 ctxid_mask0;
u32 ctxid_mask1;
u8 vmid_idx;
u64 vmid_val[ETM_MAX_VMID_CMP];
u32 vmid_mask0;
u32 vmid_mask1;
u32 ext_inp;
u8 s_ex_level;
};
π Members π
okay bestie, here's the member rundown β every field this page lists gets its moment in the spotlight. π
modeβ controls the various modes this ETM supports. vibe check for the ETM's mode menu. πpe_selβ controls which PE gets traced. pick your main character PE. πcfgβ controls the tracing options. all the config knobs live here. βοΈeventctrl0β controls the tracing of arbitrary events. yes, arbitrary. we love a flexible event moment. π₯eventctrl1β controls the behavior of the events thatevent_ctrl0selects β and yes, the original saysevent_ctrl0right there. ikyk. πts_ctrlβ controls the insertion of global timestamps in the trace streams. timestamp lore. β°ccctlrβ sets the threshold value for cycle counting. threshold queen. πvinst_ctrlβ controls instruction trace filtering. filtering, but make it instruction trace. β¨viiectlrβ set or read the address range comparators. read/write energy. πvissctlrβ set, or read, the single address comparators that control the ViewInst start-stop logic. very specific, very iconic. π¦vipcssctlrβ set, or read, which PE comparator inputs can control the ViewInst start-stop logic. comparator input selection said hi. πseq_idxβ sequencer index selector. the original saysSequencor, so we're keeping that typo-adjacent detail alive. periodt. πsyncfreqβ controls how often trace synchronization requests occur. also, theTRCCCCTLRregister is mentioned right there in the original, so here it is. π«Άseq_ctrlβ control for the sequencer state transition control register. transition control, no cap. πseq_rstβ moves the sequencer to state 0 when a programmed event occurs. state 0 speedrun. πseq_stateβ set or read the sequencer state. state check. πcntr_idxβ counter index selector. the original spells itseletor, iconic, but it's still the counter index selector. πcntrldvrβ sets or returns the reload count value for a counter. reload era. πcntr_ctrlβ controls the operation of a counter. counter behavior button. ποΈcntr_valβ sets or returns the value for a counter. value moment. π’res_idxβ resource index selector. resource picker. π§Ίres_ctrlβ controls the selection of the resources in the trace unit. trace unit resources, selected. βss_idxβ single-shot index selector. single-shot picker. π―ss_ctrlβ controls the corresponding single-shot comparator resource. comparator resource control. πΉοΈss_statusβ the status of the corresponding single-shot comparator. status update, bestie. π’ss_pe_cmpβ selects the PE comparator inputs for Single-shot control. PE comparator inputs, chosen. π§addr_idxβ address comparator index selector. address comparator picker. πaddr_valβ value for address comparator. address comparator value. πaddr_accβ address comparator access type. access type tea. π΅addr_typeβ current status of the comparator register. current status, very now. βctxid_idxβ context ID index selector. context ID picker. πͺͺctxid_pidβ value of the context ID comparator. context ID comparator value. πctxid_mask0β context ID comparator mask for comparator 0-3. mask for the 0-3 squad. πctxid_mask1β context ID comparator mask for comparator 4-7. mask for the 4-7 squad. πΈvmid_idxβ VM ID index selector. VM ID picker. π§vmid_valβ value of the VM ID comparator. VM ID comparator value. πvmid_mask0β VM ID comparator mask for comparator 0-3. 0-3 mask moment. πvmid_mask1β VM ID comparator mask for comparator 4-7. 4-7 mask moment. π¦ext_inpβ external input selection. external input, selected. πs_ex_levelβ Secure ELs where tracing is supported. secure EL trace support, noted. π‘οΈ
π SEE ALSO π
- Kernel file
./drivers/hwtracing/coresight/coresight-etm4x.hβ that's the spot, bestie. go look. πβ¨
signing off from ./drivers/hwtracing/coresight β that's the source/version zone β dated October 2026, for struct etmv4_config(9). mwah ππ periodt.
π¦ 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