ftrace_set_notrace(9)
π NAME π β ftrace_set_notrace(9) from the Kernel API Manual
okay so bestie, welcome to the ftrace_set_notrace(9) page from the Kernel API Manual. this is literally how to set a function to not trace in ftrace β thatβs the NAME, thatβs the whole assignment. π
π₯ SYNOPSIS π₯
the signature is giving:
int ftrace_set_notrace (struct ftrace_ops *ops , unsigned char *buf , int len , int reset );
π ARGUMENTS π
opsβ the ops to set the notrace filter with. main character of this call, tbh.bufβ the string that holds the function notrace text. yes, that exact string.lenβ the length of the string. no cap.resetβ non-zero to reset all filters before applying this filter. thatnon-zerodetail is doing work here.
π¦ DESCRIPTION π¦
Notrace Filters denote which functions should not be enabled when tracing is enabled. theyβre the βdo not trace theseβ list, okay? π
if buf is NULL and reset is set, all functions will be enabled for tracing. thatβs the reset-all-the-notrace-vibes situation, bestie.
π technical caveat time, and please donβt skip it: this can allocate memory which must be freed beforeopscan be freed, either by removing each filtered addr or by usingftrace_free_filter(ops). like, the cleanup is not optional. theopsdoes not get to be freed until that memory is handled. periodt.
π SEE ALSO π
Kernel file ./kernel/trace/ftrace.c β start there, iykyk.
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_global_filter(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)
xoxo, your Kernel API Manual bestie β source ./kernel/trace, October 2026, all about ftrace_set_notrace(9) π«Άβ¨
π¦ 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