Lines Matching defs:mod

2787 ftrace_nop_initialize(struct module *mod, struct dyn_ftrace *rec)
2794 ret = ftrace_init_nop(mod, rec);
3182 static int ftrace_update_code(struct module *mod, struct ftrace_page *new_pgs)
3205 if (mod)
3223 if (init_nop && !ftrace_nop_initialize(mod, p))
3554 seq_printf(m, ":mod:%s\n", ftrace_mod->module);
4277 /* blank search means to match all funcs in the mod */
4286 match_records(struct ftrace_hash *hash, char *func, int len, char *mod)
4292 struct ftrace_glob *mod_match = (mod) ? &mod_g : NULL;
4304 if (mod) {
4305 mod_g.type = filter_parse_regex(mod, strlen(mod),
4465 char *mod, bool enable)
4488 if (strcmp(ftrace_mod->module, mod) != 0)
4513 match_records(new_hash, func, strlen(func), mod);
4535 char *mod;
4537 mod = kstrdup(mod_name, GFP_KERNEL);
4538 if (!mod)
4544 process_mod_list(&tr->mod_trace, tr->ops, mod, true);
4546 process_mod_list(&tr->mod_notrace, tr->ops, mod, false);
4550 kfree(mod);
4572 * cmd == 'mod' because we only registered this func
4573 * for the 'mod' ftrace_func_command.
4589 .name = "mod",
6477 static int ftrace_process_locs(struct module *mod,
6502 if (!IS_ENABLED(CONFIG_BUILDTIME_MCOUNT_SORT) || mod) {
6520 if (!mod) {
6581 if (!mod)
6583 ftrace_update_code(mod, start_pg);
6584 if (!mod)
6610 struct module *mod;
6756 void ftrace_release_mod(struct module *mod)
6771 if (mod_map->mod == mod) {
6785 if (within_module(rec->ip, mod)) {
6826 void ftrace_module_enable(struct module *mod)
6860 if (!within_module(rec->ip, mod))
6901 process_cached_mods(mod->name);
6904 void ftrace_module_init(struct module *mod)
6908 if (ftrace_disabled || !mod->num_ftrace_callsites)
6911 ret = ftrace_process_locs(mod, mod->ftrace_callsites,
6912 mod->ftrace_callsites + mod->num_ftrace_callsites);
6915 mod->name);
6951 allocate_ftrace_mod_map(struct module *mod,
6960 mod_map->mod = mod;
7015 *modname = mod_map->mod->name;
7049 strscpy(module_name, mod_map->mod->name, MODULE_NAME_LEN);
7067 allocate_ftrace_mod_map(struct module *mod,
7139 void ftrace_free_mem(struct module *mod, void *start_ptr, void *end_ptr)
7162 if (mod && ftrace_ops_list != &ftrace_list_end)
7163 mod_map = allocate_ftrace_mod_map(mod, start, end);