ftrace_func_mapper_add_ip(9)
π ftrace_func_mapper_add_ip(9) π
okay so bestie, welcome to the Kernel API Manual, section 9 β this one lives in ./kernel/trace/ftrace.c and honestly it's giving "tiny function, big responsibilities" β¨
π NAME π
ftrace_func_mapper_add_ip β map some data to an ip πΊοΈπ
β¨ SYNOPSIS β¨
int ftrace_func_mapper_add_ip (struct ftrace_func_mapper *mapper ,
unsigned long ip , void *data );
like, three args, one int out, no drama π
πΈ ARGUMENTS πΈ
mapperβ the mapper that has the ip maps ποΈ she's the one holding all the mappings, keep her closeipβ the instruction pointer address you're mappingdatato π literally the little address keydataβ the data to map toipπ whatever you're tying to that address, hand it over
π RETURN π
0 on success, otherwise an error π that's it, that's the whole vibe check β zero means slay, anything else means something went sideways
π¦ SEE ALSO π¦
Kernel file ./kernel/trace/ftrace.c β plus the whole friend group, no cap:
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_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)
iykyk, but if you're adding to a mapper, go peep allocate_ftrace_func_mapper(9) first β she's the one who makes the mapper in the first place π«Ά
later bestie!! this page came from ./kernel/trace, dated October 2026, and it's part of the Kernel API Manual β go forth and map those ips πβπ
π¦ 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