ftrace_set_global_notrace(9)
π ftrace_set_global_notrace β the manual page, but make it bestie π
Heyyy so this is the man page for ftrace_set_global_notrace from the Kernel API Manual. It's literally about telling the global tracers which functions to not trace. No cap. Let's get into it π
π NAME π
ftrace_set_global_notrace β set a function to not trace with global tracers. That's it. That's the whole name. Iconic.
β¨ SYNOPSIS β¨
void ftrace_set_global_notrace(unsigned char *buf, int len, int reset);
The way this signature is just sitting there looking all official. Obsessed. π¦
π«Ά ARGUMENTS π«Ά
Okay so here's the tea on the three arguments:
bufβ the string that holds the function notrace text. Like, this is the actual text of the function you're telling the tracer to skip.lenβ the length of the string. Yes bestie, you gotta tell it how longbufis. It's giving very "measure twice, cut once."resetβ non-zero to reset all filters before applying this filter. So if you set this to something non-zero, it wipes the slate clean first before adding your new filter. Highkey important.
π DESCRIPTION π
Notrace Filters denote which functions should not be enabled when tracing is enabled. Periodt. That's the whole vibe β they're the "do not disturb" list for your tracer.
And here's the little plot twist: if buf is NULL and reset is set, all functions will be enabled for tracing. Like, every single one. The tracer is back on its main character energy and nothing is blocked. So maybe don't do that unless you actually mean it? Just saying π
π SEE ALSO π
Okay so the reference squad is long and honestly every single one of them showed up to the group chat. No one got left on read:
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_filter(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)
Also the kernel file itself is literally at ./kernel/trace/ftrace.c β that's where all the magic lives. Iykyk π₯
And that's the whole page, bestie! This gem is from ./kernel/trace and it's dated October 2026. Slay, stay tracing, and remember: notrace filters are your friends πβ¨π
π¦ 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