trace_print_bitmask_seq(9)
π¦ NAME π¦
trace_print_bitmask_seq β print a bitmask to a sequence buffer
okay so welcome to the trace_print_bitmask_seq(9) page from the Kernel API Manual, bestie π you're gonna eat this one up.
π SYNOPSIS π
Here's the signature, exactly as it appears β no cap:
const char * trace_print_bitmask_seq (struct trace_iterator *iter , void *bitmask_ptr , unsigned int bitmask_size );
π ARGUMENTS π
Three little arguments, all doing main character work:
iterβ the trace iterator for the current event instance.bitmask_ptrβ the pointer to the bitmask data.bitmask_sizeβ the size of the bitmask in bytes.
π₯ DESCRIPTION π₯
So the vibe is: this function prints a bitmask into a sequence buffer as either a hex string or a human-readable range list, depending on the instance's "bitmask-list" trace option. Slay π
Not me formatting the bitmask into the iterator's temporary scratchpad rather than the primary sequence buffer β that's literally the move π. It avoids duplication and pointer-collision issues when the returned string is processed by a "s" specifier in a TP_printk macro. Obsessed.
the returned string lives in the temporary buffer, not the primary sequence buffer β iykyk π
Returns a pointer to the formatted string within the temporary buffer. Periodt β¨
π SEE ALSO π
Kernel file ./kernel/trace/trace_output.c β and the whole friend group is trace_print_hex_seq(9), trace_print_lat_fmt(9), ftrace_find_event(9), register_trace_event(9), unregister_trace_event(9).
cute sign-off: source/version ./kernel/trace, date October 2026 πβ¨
π¦ 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