event_trigger_set_filter(9)
β¨ event_trigger_set_filter(9) β¨
okay so bestie, welcome to the Kernel API Manual π β yes this is a section 9 manpage, yes it's about kernel internals, and yes we're gonna make it cute. this one is event_trigger_set_filter and honestly? it does exactly what it says on the tin. lowkey iconic. π
πΈ NAME πΈ
event_trigger_set_filter β set an event trigger's filter β¨
π¦ SYNOPSIS π¦
int event_trigger_set_filter (struct event_command *cmd_ops , struct
trace_event_file *file , char *param , struct event_trigger_data
*trigger_data );
that's the whole signature, no cap. copy it exactly, don't come for me about the spacing π
π ARGUMENTS π
cmd_opsβ theevent_commandoperations for the trigger. it's giving "the instructions on how this trigger behaves" energy π«Άfileβ the event file for the trigger's event. your main character file, the one hosting all this β¨paramβ the string containing the filter. this is the actual filter text, bestie πtrigger_dataβ thetrigger_datafor the trigger. all the trigger's little details live in here π
π₯ DESCRIPTION π₯
so here's the vibe: this function sets the filter for the trigger. that's it. that's the whole job. π
but wait β plot twist β if the filter is NULL, it just returns without error. like, no filter, no problem, we're not gonna yell at you about it π. no error, no drama, we simply vibe on out. π§
β RETURN β
0 on success, errno otherwise. simple. slay. π
π SEE ALSO π
the kernel file is right here if you wanna peek at the source, iykyk:
- Kernel file
./kernel/trace/trace_events_trigger.c
and 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)update_cond_flag(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_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)
ngl the SEE ALSO list is longer than the manpage itself and i respect the commitment π go read set_trigger_filter(9) next, it's literally the sibling of this one π«Ά
and that's the page!! mwah π this one came from ./kernel/trace, dated October 2026 β so yeah, extremely current, extremely kernel, extremely slay. bye bestie, go set some filters πΈβ¨π
π¦ 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