• Home
  • Raw
  • Download

Lines Matching refs:mod_func

6935 	struct ftrace_mod_func *mod_func;  in ftrace_free_mod_map()  local
6939 list_for_each_entry_safe(mod_func, n, &mod_map->funcs, list) { in ftrace_free_mod_map()
6940 kfree(mod_func->name); in ftrace_free_mod_map()
6941 list_del(&mod_func->list); in ftrace_free_mod_map()
6942 kfree(mod_func); in ftrace_free_mod_map()
7112 struct ftrace_mod_func *mod_func; in save_ftrace_mod_rec() local
7123 mod_func = kmalloc(sizeof(*mod_func), GFP_KERNEL); in save_ftrace_mod_rec()
7124 if (!mod_func) in save_ftrace_mod_rec()
7127 mod_func->name = kstrdup(str, GFP_KERNEL); in save_ftrace_mod_rec()
7128 if (!mod_func->name) { in save_ftrace_mod_rec()
7129 kfree(mod_func); in save_ftrace_mod_rec()
7133 mod_func->ip = rec->ip - offset; in save_ftrace_mod_rec()
7134 mod_func->size = symsize; in save_ftrace_mod_rec()
7138 list_add_rcu(&mod_func->list, &mod_map->funcs); in save_ftrace_mod_rec()
7169 struct ftrace_mod_func *mod_func; in ftrace_func_address_lookup() local
7171 list_for_each_entry_rcu(mod_func, &mod_map->funcs, list) { in ftrace_func_address_lookup()
7172 if (addr >= mod_func->ip && in ftrace_func_address_lookup()
7173 addr < mod_func->ip + mod_func->size) { in ftrace_func_address_lookup()
7174 found_func = mod_func; in ftrace_func_address_lookup()
7220 struct ftrace_mod_func *mod_func; in ftrace_mod_get_kallsym() local
7231 list_for_each_entry_rcu(mod_func, &mod_map->funcs, list) { in ftrace_mod_get_kallsym()
7237 *value = mod_func->ip; in ftrace_mod_get_kallsym()
7239 strlcpy(name, mod_func->name, KSYM_NAME_LEN); in ftrace_mod_get_kallsym()