ftrace_set_global_filter(9)
π ftrace_set_global_filter β the kernel API manual, bestie edition π
okay so you're reading the Kernel API Manual page for ftrace_set_global_filter(9) and honestly? it's giving "small function, big vibes." let's get into it β¨
β¨ NAME β¨
ftrace_set_global_filter β set a function to filter on with global tracers π¦
like, it's the girl that tells the global tracers which functions they're allowed to look at. periodt.
πΈ SYNOPSIS πΈ
void ftrace_set_global_filter (unsigned char *buf , int len , int reset );
three args, no return value, no drama. she does the thing and leaves π
π ARGUMENTS π
bufβ the string that holds the function filter text. this is the actual filter content, bestie, the main character of the call β¨lenβ the length of the string. yes you have to tell her how longbufis, she's not psychic πresetβ non-zero to reset all filters before applying this filter. so if it's non-zero, everything gets wiped first and then your filter comes through, slay. if it's zero, no reset, we just vibe with what's there π«Ά
π₯ DESCRIPTION π₯
so, filters denote which functions should be enabled when tracing is enabled. that's the whole concept β filters are the vibe check for functions π
and here's the iconic part: if buf is NULL and reset is set, all functions will be enabled for tracing. all of them. every single one. not me clearing the whole guest list and letting everyone in π
π SEE ALSO π
okay this list is long but we do not skip. every single one of these, in order, no cap π β and the kernel file they live in is ./kernel/trace/ftrace.c:
ftrace_lookup_ip(9)ftrace_free_filter(9)ftrace_hash_move(9)ftrace_location_range(9)ftrace_location(9)ftrace_text_reserved(9)ftrace_bug(9)ftrace_update_record(9)ftrace_test_record(9)ftrace_get_addr_new(9)ftrace_get_addr_curr(9)ftrace_rec_iter_start(9)ftrace_rec_iter_next(9)ftrace_rec_iter_record(9)ftrace_run_stop_machine(9)arch_ftrace_update_code(9)ftrace_startup_subops(9)ftrace_shutdown_subops(9)ftrace_regex_open(9)allocate_ftrace_func_mapper(9)ftrace_func_mapper_find_ip(9)ftrace_func_mapper_add_ip(9)ftrace_func_mapper_remove_ip(9)free_ftrace_func_mapper(9)register_ftrace_direct(9)unregister_ftrace_direct(9)modify_ftrace_direct_nolock(9)modify_ftrace_direct(9)hash_add(9)update_ftrace_direct_add(9)hash_sub(9)update_ftrace_direct_del(9)update_ftrace_direct_mod(9)ftrace_set_filter_ip(9)ftrace_set_filter_ips(9)ftrace_ops_set_global_filter(9)ftrace_set_filter(9)ftrace_set_notrace(9)ftrace_set_global_notrace(9)ftrace_ops_get_func(9)ftrace_kill(9)ftrace_is_dead(9)register_ftrace_function(9)unregister_ftrace_function(9)ftrace_lookup_symbols(9)
like I said. long. but we ate and left no crumbs π
and that's the page!! this little gem lives in ./kernel/trace and it's dated October 2026, footer name ftrace_set_global_filter(9) β mwah, iconic, no notes ππ§ββοΈ
π¦ 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