ftrace_text_reserved(9)
π ftrace_text_reserved β like, the manual page bestie
okay so this is ftrace_text_reserved from the Kernel API Manual, section 9 β yes we're in the kernel docs, we're fancy now π
β¨ NAME β¨
ftrace_text_reserved β returns true if a range contains an ftrace location. that's it, that's the whole vibe check π¦
π SYNOPSIS π
int ftrace_text_reserved (const void *start , const void *end );
like, give it two pointers and it'll tell you what's up β¨
πΈ ARGUMENTS πΈ
startβ where your range starts, bestie. the beginning of the range you wanna search π«Άendβ where your range ends. and inclusive, okay??endpoints to the last byte to check, so don't be out here thinking it's exclusive, it is NOT π
β RETURN β
returns 1 if start and end contain an ftrace location π₯
and what counts as an ftrace location? literally just the instruction that's either a NOP or a call to the function tracer. that's the whole criteria, no cap π
it checks the ftrace internal tables to figure out if the address belongs or not β so it's doing the detective work for you, iconic π
π SEE ALSO π
kernel file ./kernel/trace/ftrace.c (iykyk) plus this absolutely unhinged list of friends β she knows everyone fr fr:
ftrace_lookup_ip(9)ftrace_free_filter(9)ftrace_hash_move(9)ftrace_location_range(9)ftrace_location(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_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)
no pressure but that list is long and every single one of them is a real function, so like... respect the roster π§
okay that's the whole page!! thank you for coming to my ted talk π
β from ./kernel/trace, dated October 2026, that's a wrap bestie, slay πβ¨π
π¦ 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