allocate_ftrace_func_mapper(9)
π allocate_ftrace_func_mapper(9)
okay so bestie, welcome to the Kernel API Manual β¨ β this is one of those little pages that's short, sweet, and does exactly one thing. and honestly? it ate. let's get into it π«Ά
πΈ NAME
allocate_ftrace_func_mapper β literally just allocates you a brand new ftrace_func_mapper, no cap π
π SYNOPSIS
struct ftrace_func_mapper * allocate_ftrace_func_mapper (void );
like, that's it. that's the whole call. she's simple, she's iconic π
π¦ ARGUMENTS
voidβ no arguments. nothing. zero. empty. you don't pass her anything, she doesn't want anything π (genuinely the easiest arg list you'll ever read)
β¨ RETURN
you get back a ftrace_func_mapper descriptor β and the whole point of that descriptor is that it can be used to map ips to data. that's the vibe check, that's the whole job π
π SEE ALSO
and now the part where the manpage goes absolutely feral with cross-references π β Kernel file ./kernel/trace/ftrace.c and like, every ftrace-adjacent function that exists:
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)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)
like hello?? that's a whole friend group ππ but every single one of them is right there if you need her.
π§ quick reminder: this page only allocates the mapper. if you're the one who allocated it, you're also the one who's gotta free_ftrace_func_mapper it later. main character energy comes with main character responsibilities, bestie π
and that's the whole page!! short, slay, useful. brought to you from the kernel file ./kernel/trace in the source tree, dated October 2026, and printed under the title allocate_ftrace_func_mapper(9) β mwah πβ
π¦ 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