Lines Matching refs:ftrace_mod
1265 static void free_ftrace_mod(struct ftrace_mod_load *ftrace_mod) in free_ftrace_mod() argument
1267 list_del(&ftrace_mod->list); in free_ftrace_mod()
1268 kfree(ftrace_mod->module); in free_ftrace_mod()
1269 kfree(ftrace_mod->func); in free_ftrace_mod()
1270 kfree(ftrace_mod); in free_ftrace_mod()
1350 struct ftrace_mod_load *ftrace_mod; in ftrace_add_mod() local
1353 ftrace_mod = kzalloc(sizeof(*ftrace_mod), GFP_KERNEL); in ftrace_add_mod()
1354 if (!ftrace_mod) in ftrace_add_mod()
1357 INIT_LIST_HEAD(&ftrace_mod->list); in ftrace_add_mod()
1358 ftrace_mod->func = kstrdup(func, GFP_KERNEL); in ftrace_add_mod()
1359 ftrace_mod->module = kstrdup(module, GFP_KERNEL); in ftrace_add_mod()
1360 ftrace_mod->enable = enable; in ftrace_add_mod()
1362 if (!ftrace_mod->func || !ftrace_mod->module) in ftrace_add_mod()
1365 list_add(&ftrace_mod->list, mod_head); in ftrace_add_mod()
1370 free_ftrace_mod(ftrace_mod); in ftrace_add_mod()
4066 struct ftrace_mod_load *ftrace_mod; in t_mod_show() local
4074 ftrace_mod = list_entry(iter->mod_list, struct ftrace_mod_load, list); in t_mod_show()
4076 if (ftrace_mod->func) in t_mod_show()
4077 seq_printf(m, "%s", ftrace_mod->func); in t_mod_show()
4081 seq_printf(m, ":mod:%s\n", ftrace_mod->module); in t_mod_show()
4953 struct ftrace_mod_load *ftrace_mod, *n; in cache_mod() local
4965 list_for_each_entry_safe(ftrace_mod, n, head, list) { in cache_mod()
4966 if (strcmp(ftrace_mod->module, module) != 0) in cache_mod()
4971 (ftrace_mod->func && in cache_mod()
4972 strcmp(ftrace_mod->func, func) == 0)) { in cache_mod()
4974 free_ftrace_mod(ftrace_mod); in cache_mod()
4997 struct ftrace_mod_load *ftrace_mod, *n; in process_mod_list() local
5016 list_for_each_entry_safe(ftrace_mod, n, head, list) { in process_mod_list()
5018 if (strcmp(ftrace_mod->module, mod) != 0) in process_mod_list()
5021 if (ftrace_mod->func) in process_mod_list()
5022 func = kstrdup(ftrace_mod->func, GFP_KERNEL); in process_mod_list()
5029 list_move(&ftrace_mod->list, &process_mods); in process_mod_list()
5032 kfree(ftrace_mod->func); in process_mod_list()
5033 ftrace_mod->func = func; in process_mod_list()
5038 list_for_each_entry_safe(ftrace_mod, n, &process_mods, list) { in process_mod_list()
5040 func = ftrace_mod->func; in process_mod_list()
5044 free_ftrace_mod(ftrace_mod); in process_mod_list()