Lines Matching refs:func
82 .func = ftrace_stub,
181 ftrace_func_t func; in update_ftrace_function() local
193 func = ftrace_stub; in update_ftrace_function()
202 func = ftrace_ops_get_list_func(ftrace_ops_list); in update_ftrace_function()
207 func = ftrace_ops_list_func; in update_ftrace_function()
213 if (ftrace_trace_function == func) in update_ftrace_function()
220 if (func == ftrace_ops_list_func) { in update_ftrace_function()
221 ftrace_trace_function = func; in update_ftrace_function()
255 ftrace_trace_function = func; in update_ftrace_function()
332 ops->saved_func = ops->func; in __register_ftrace_function()
335 ops->func = ftrace_pid_func; in __register_ftrace_function()
360 ops->func = ops->saved_func; in __unregister_ftrace_function()
375 op->func = ftrace_pids_enabled(op) ? in ftrace_update_pid_func()
796 function_profile_call(trace->func, 0, NULL, NULL); in profile_graph_entry()
842 rec = ftrace_find_profiled_func(stat, trace->func); in profile_graph_return()
868 .func = function_profile_call,
1040 .func = ftrace_stub,
1215 kfree(ftrace_mod->func); in free_ftrace_mod()
1288 const char *func, const char *module, in ftrace_add_mod() argument
1299 ftrace_mod->func = kstrdup(func, GFP_KERNEL); in ftrace_add_mod()
1303 if (!ftrace_mod->func || !ftrace_mod->module) in ftrace_add_mod()
2064 (void *)ops->func); in ftrace_bug()
2414 .func = call_direct_funcs,
3261 struct dyn_ftrace *func; member
3400 (void *)probe_ops->func); in t_probe_show()
3471 if (ftrace_mod->func) in t_mod_show()
3472 seq_printf(m, "%s", ftrace_mod->func); in t_mod_show()
3513 iter->func = rec; in t_func_next()
3650 rec = iter->func; in t_show()
3670 (void *)ops->func); in t_show()
4012 match_records(struct ftrace_hash *hash, char *func, int len, char *mod) in match_records() argument
4024 if (func) { in match_records()
4025 func_g.type = filter_parse_regex(func, len, &func_g.search, in match_records()
4141 const char *func, char *module, int enable) in cache_mod() argument
4150 if (func[0] == '!') { in cache_mod()
4151 func++; in cache_mod()
4160 if (strcmp(func, "*") == 0 || in cache_mod()
4161 (ftrace_mod->func && in cache_mod()
4162 strcmp(ftrace_mod->func, func) == 0)) { in cache_mod()
4177 ret = ftrace_add_mod(tr, func, module, enable); in cache_mod()
4195 char *func; in process_mod_list() local
4216 if (ftrace_mod->func) in process_mod_list()
4217 func = kstrdup(ftrace_mod->func, GFP_KERNEL); in process_mod_list()
4219 func = kstrdup("*", GFP_KERNEL); in process_mod_list()
4221 if (!func) /* warn? */ in process_mod_list()
4227 kfree(ftrace_mod->func); in process_mod_list()
4228 ftrace_mod->func = func; in process_mod_list()
4235 func = ftrace_mod->func; in process_mod_list()
4238 match_records(new_hash, func, strlen(func), mod); in process_mod_list()
4288 char *func; in ftrace_mod_callback() local
4292 func = kstrdup(func_orig, GFP_KERNEL); in ftrace_mod_callback()
4293 if (!func) in ftrace_mod_callback()
4303 ret = match_records(hash, func, strlen(func), module); in ftrace_mod_callback()
4304 kfree(func); in ftrace_mod_callback()
4315 .func = ftrace_mod_callback,
4339 probe_ops->func(ip, parent_ip, probe->tr, probe_ops, probe->data); in function_trace_probe_call()
4557 probe->ops.func = function_trace_probe_call; in register_ftrace_function_probe()
4855 char *func, *command, *next = buff; in ftrace_process_regex() local
4859 func = strsep(&next, ":"); in ftrace_process_regex()
4862 ret = ftrace_match_records(hash, func, len); in ftrace_process_regex()
4877 ret = p->func(tr, hash, func, command, next, enable); in ftrace_process_regex()
5260 .func = ftrace_stub,
5577 char *func; in set_ftrace_early_graph() local
5585 func = strsep(&buf, ","); in set_ftrace_early_graph()
5587 ret = ftrace_graph_set_hash(hash, func); in set_ftrace_early_graph()
5590 "traceable\n", func); in set_ftrace_early_graph()
5603 char *func; in ftrace_set_early_filter() local
5608 func = strsep(&buf, ","); in ftrace_set_early_filter()
5609 ftrace_set_regex(ops, func, strlen(func), 0, enable); in ftrace_set_early_filter()
6749 clear_func_from_hash(struct ftrace_init_func *func, struct ftrace_hash *hash) in clear_func_from_hash() argument
6753 entry = ftrace_lookup_ip(hash, func->ip); in clear_func_from_hash()
6764 clear_func_from_hashes(struct ftrace_init_func *func) in clear_func_from_hashes() argument
6773 clear_func_from_hash(func, tr->ops->func_hash->filter_hash); in clear_func_from_hashes()
6774 clear_func_from_hash(func, tr->ops->func_hash->notrace_hash); in clear_func_from_hashes()
6783 struct ftrace_init_func *func; in add_to_clear_hash_list() local
6785 func = kmalloc(sizeof(*func), GFP_KERNEL); in add_to_clear_hash_list()
6786 if (!func) { in add_to_clear_hash_list()
6791 func->ip = rec->ip; in add_to_clear_hash_list()
6792 list_add(&func->list, clear_list); in add_to_clear_hash_list()
6804 struct ftrace_init_func *func, *func_next; in ftrace_free_mem() local
6861 list_for_each_entry_safe(func, func_next, &clear_hash, list) { in ftrace_free_mem()
6862 clear_func_from_hashes(func); in ftrace_free_mem()
6863 kfree(func); in ftrace_free_mem()
6949 .func = ftrace_stub,
6981 void ftrace_init_array_ops(struct trace_array *tr, ftrace_func_t func) in ftrace_init_array_ops() argument
6985 if (WARN_ON(tr->ops->func != ftrace_stub)) in ftrace_init_array_ops()
6987 tr->ops->func); in ftrace_init_array_ops()
6989 tr->ops->func = func; in ftrace_init_array_ops()
6995 tr->ops->func = ftrace_stub; in ftrace_reset_array_ops()
7031 if (FTRACE_WARN_ON(!op->func)) { in __ftrace_ops_list_func()
7035 op->func(ip, parent_ip, op, fregs); in __ftrace_ops_list_func()
7088 op->func(ip, parent_ip, op, fregs); in ftrace_ops_assist_func()
7116 return ops->func; in ftrace_ops_get_func()