Lines Matching refs:mod
2740 ftrace_nop_initialize(struct module *mod, struct dyn_ftrace *rec) in ftrace_nop_initialize() argument
2747 ret = ftrace_init_nop(mod, rec); in ftrace_nop_initialize()
3125 static int ftrace_update_code(struct module *mod, struct ftrace_page *new_pgs) in ftrace_update_code() argument
3148 if (mod) in ftrace_update_code()
3166 if (init_nop && !ftrace_nop_initialize(mod, p)) in ftrace_update_code()
4161 match_records(struct ftrace_hash *hash, char *func, int len, char *mod) in match_records() argument
4167 struct ftrace_glob *mod_match = (mod) ? &mod_g : NULL; in match_records()
4179 if (mod) { in match_records()
4180 mod_g.type = filter_parse_regex(mod, strlen(mod), in match_records()
4339 char *mod, bool enable) in process_mod_list() argument
4362 if (strcmp(ftrace_mod->module, mod) != 0) in process_mod_list()
4387 match_records(new_hash, func, strlen(func), mod); in process_mod_list()
4409 char *mod; in process_cached_mods() local
4411 mod = kstrdup(mod_name, GFP_KERNEL); in process_cached_mods()
4412 if (!mod) in process_cached_mods()
4418 process_mod_list(&tr->mod_trace, tr->ops, mod, true); in process_cached_mods()
4420 process_mod_list(&tr->mod_notrace, tr->ops, mod, false); in process_cached_mods()
4424 kfree(mod); in process_cached_mods()
6671 static int ftrace_process_locs(struct module *mod, in ftrace_process_locs() argument
6696 if (!IS_ENABLED(CONFIG_BUILDTIME_MCOUNT_SORT) || mod) { in ftrace_process_locs()
6714 if (!mod) { in ftrace_process_locs()
6775 if (!mod) in ftrace_process_locs()
6777 ftrace_update_code(mod, start_pg); in ftrace_process_locs()
6778 if (!mod) in ftrace_process_locs()
6802 struct module *mod; member
6948 void ftrace_release_mod(struct module *mod) in ftrace_release_mod() argument
6963 if (mod_map->mod == mod) { in ftrace_release_mod()
6977 if (within_module_core(rec->ip, mod) || in ftrace_release_mod()
6978 within_module_init(rec->ip, mod)) { in ftrace_release_mod()
7016 void ftrace_module_enable(struct module *mod) in ftrace_module_enable() argument
7050 if (!within_module_core(rec->ip, mod) && in ftrace_module_enable()
7051 !within_module_init(rec->ip, mod)) in ftrace_module_enable()
7092 process_cached_mods(mod->name); in ftrace_module_enable()
7095 void ftrace_module_init(struct module *mod) in ftrace_module_init() argument
7099 if (ftrace_disabled || !mod->num_ftrace_callsites) in ftrace_module_init()
7102 ret = ftrace_process_locs(mod, mod->ftrace_callsites, in ftrace_module_init()
7103 mod->ftrace_callsites + mod->num_ftrace_callsites); in ftrace_module_init()
7106 mod->name); in ftrace_module_init()
7142 allocate_ftrace_mod_map(struct module *mod, in allocate_ftrace_mod_map() argument
7151 mod_map->mod = mod; in allocate_ftrace_mod_map()
7206 *modname = mod_map->mod->name; in ftrace_mod_address_lookup()
7240 strlcpy(module_name, mod_map->mod->name, MODULE_NAME_LEN); in ftrace_mod_get_kallsym()
7258 allocate_ftrace_mod_map(struct module *mod, in allocate_ftrace_mod_map() argument
7330 void ftrace_free_mem(struct module *mod, void *start_ptr, void *end_ptr) in ftrace_free_mem() argument
7354 if (mod && ftrace_ops_list != &ftrace_list_end) in ftrace_free_mem()
7355 mod_map = allocate_ftrace_mod_map(mod, start, end); in ftrace_free_mem()
8304 struct module *mod, unsigned long addr) in kallsyms_callback() argument