update_cond_flag(9)
β¨ NAME β¨
okay so picture this: we're deep in the Kernel API Manual, section 9, and today's main character is update_cond_flag π
her whole job? Set or reset the TRIGGER_COND bit. that's it, that's the tweet π¦
πΈ SYNOPSIS πΈ
void update_cond_flag (struct trace_event_file *file );
literally one parameter, no drama, we love a low-maintenance function π«Ά
π ARGUMENTS π
fileβ thetrace_event_filethat's associated with the event. that's your girl, that's the one you're passing in π
π¦ DESCRIPTION π¦
okay bestie, listen, this is the whole vibe check right here π
So if an event has triggers, and any of those triggers has a filter or a post_trigger, then trigger invocation needs to be deferred until after the current event has logged its data. and when that's the case, the event should have its TRIGGER_COND bit set π₯
Otherwise? the TRIGGER_COND bit should be cleared. no bit, no deferred invocation, no problem π§Ή
fr fr the entire logic is just "does this event have a filtered or post trigger β set the bit, else clear it." iconic, honestly. not me being obsessed with a conditional π
π SEE ALSO π
if you wanna go down the rabbit hole (and you do, iykyk), start with the kernel file:
./kernel/trace/trace_events_trigger.c
and then the whole friend group π«Ά:
event_triggers_call(9)event_triggers_post_call(9)event_trigger_count(9)event_trigger_print(9)event_trigger_init(9)event_trigger_free(9)clear_event_triggers(9)register_trigger(9)unregister_trigger(9)event_trigger_check_remove(9)event_trigger_empty_param(9)event_trigger_separate_filter(9)trigger_data_alloc(9)event_trigger_parse_num(9)event_trigger_set_filter(9)event_trigger_reset_filter(9)event_trigger_register(9)event_trigger_unregister(9)event_trigger_parse(9)set_trigger_filter(9)find_named_trigger(9)is_named_trigger(9)save_named_trigger(9)del_named_trigger(9)pause_named_trigger(9)unpause_named_trigger(9)set_named_trigger_data(9)
πΈ okay that's the page!! this lil cutie lives in ./kernel/trace, she's dated October 2026, and she goes by update_cond_flag(9) β go forth and set some bits bestie, ily, bye ππβ¨
π¦ 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