Lines Matching defs:mod

2644 ftrace_nop_initialize(struct module *mod, struct dyn_ftrace *rec)
2651 ret = ftrace_init_nop(mod, rec);
3101 static int ftrace_update_code(struct module *mod, struct ftrace_page *new_pgs)
3123 if (mod)
3142 !ftrace_nop_initialize(mod, p))
3474 seq_printf(m, ":mod:%s\n", ftrace_mod->module);
4001 /* blank search means to match all funcs in the mod */
4010 match_records(struct ftrace_hash *hash, char *func, int len, char *mod)
4016 struct ftrace_glob *mod_match = (mod) ? &mod_g : NULL;
4028 if (mod) {
4029 mod_g.type = filter_parse_regex(mod, strlen(mod),
4188 char *mod, bool enable)
4212 if (strcmp(ftrace_mod->module, mod) != 0)
4238 match_records(new_hash, func, strlen(func), mod);
4260 char *mod;
4262 mod = kstrdup(mod_name, GFP_KERNEL);
4263 if (!mod)
4269 process_mod_list(&tr->mod_trace, tr->ops, mod, true);
4271 process_mod_list(&tr->mod_notrace, tr->ops, mod, false);
4275 kfree(mod);
4297 * cmd == 'mod' because we only registered this func
4298 * for the 'mod' ftrace_func_command.
4314 .name = "mod",
6186 static int ftrace_process_locs(struct module *mod,
6218 if (!mod) {
6273 if (!mod)
6275 ftrace_update_code(mod, start_pg);
6276 if (!mod)
6295 struct module *mod;
6409 void ftrace_release_mod(struct module *mod)
6425 if (mod_map->mod == mod) {
6439 if (within_module_core(rec->ip, mod) ||
6440 within_module_init(rec->ip, mod)) {
6478 void ftrace_module_enable(struct module *mod)
6512 if (!within_module_core(rec->ip, mod) &&
6513 !within_module_init(rec->ip, mod))
6547 process_cached_mods(mod->name);
6550 void ftrace_module_init(struct module *mod)
6552 if (ftrace_disabled || !mod->num_ftrace_callsites)
6555 ftrace_process_locs(mod, mod->ftrace_callsites,
6556 mod->ftrace_callsites + mod->num_ftrace_callsites);
6592 allocate_ftrace_mod_map(struct module *mod,
6601 mod_map->mod = mod;
6656 *modname = mod_map->mod->name;
6690 strlcpy(module_name, mod_map->mod->name, MODULE_NAME_LEN);
6708 allocate_ftrace_mod_map(struct module *mod,
6780 void ftrace_free_mem(struct module *mod, void *start_ptr, void *end_ptr)
6805 if (mod && ftrace_ops_list != &ftrace_list_end)
6806 mod_map = allocate_ftrace_mod_map(mod, start, end);