Home
last modified time | relevance | path

Searched refs:call (Results 1 – 25 of 40) sorted by relevance

12

/kernel/trace/
Dtrace_events.c98 trace_find_event_field(struct trace_event_call *call, char *name) in trace_find_event_field() argument
103 head = trace_get_fields(call); in trace_find_event_field()
143 int trace_define_field(struct trace_event_call *call, const char *type, in trace_define_field() argument
149 if (WARN_ON(!call->class)) in trace_define_field()
152 head = trace_get_fields(call); in trace_define_field()
158 static int trace_define_field_ext(struct trace_event_call *call, const char *type, in trace_define_field_ext() argument
164 if (WARN_ON(!call->class)) in trace_define_field_ext()
167 head = trace_get_fields(call); in trace_define_field_ext()
215 static void trace_destroy_fields(struct trace_event_call *call) in trace_destroy_fields() argument
220 head = trace_get_fields(call); in trace_destroy_fields()
[all …]
Dtrace_syscalls.c24 syscall_get_enter_fields(struct trace_event_call *call) in syscall_get_enter_fields() argument
26 struct syscall_metadata *entry = call->data; in syscall_get_enter_fields()
237 static int __init set_syscall_print_fmt(struct trace_event_call *call) in set_syscall_print_fmt() argument
241 struct syscall_metadata *entry = call->data; in set_syscall_print_fmt()
243 if (entry->enter_event != call) { in set_syscall_print_fmt()
244 call->print_fmt = "\"0x%lx\", REC->ret"; in set_syscall_print_fmt()
257 call->print_fmt = print_fmt; in set_syscall_print_fmt()
262 static void __init free_syscall_print_fmt(struct trace_event_call *call) in free_syscall_print_fmt() argument
264 struct syscall_metadata *entry = call->data; in free_syscall_print_fmt()
266 if (entry->enter_event == call) in free_syscall_print_fmt()
[all …]
Dtrace_export.c18 static int ftrace_event_register(struct trace_event_call *call, in ftrace_event_register() argument
162 #define FTRACE_ENTRY_REG(call, struct_name, etype, tstruct, print, regfn) \ argument
163 static struct trace_event_class __refdata event_class_ftrace_##call = { \
165 .fields_array = ftrace_event_fields_##call, \
166 .fields = LIST_HEAD_INIT(event_class_ftrace_##call.fields),\
170 struct trace_event_call __used event_##call = { \
171 .class = &event_class_ftrace_##call, \
173 .name = #call, \
180 __section("_ftrace_events") *__event_##call = &event_##call;
183 #define FTRACE_ENTRY(call, struct_name, etype, tstruct, print) \ argument
[all …]
Dtrace_events_inject.c36 parse_field(char *str, struct trace_event_call *call, in parse_field() argument
60 field = trace_find_event_field(call, field_name); in parse_field()
138 static int trace_get_entry_size(struct trace_event_call *call) in trace_get_entry_size() argument
144 head = trace_get_fields(call); in trace_get_entry_size()
153 static void *trace_alloc_entry(struct trace_event_call *call, int *size) in trace_alloc_entry() argument
155 int entry_size = trace_get_entry_size(call); in trace_alloc_entry()
165 head = trace_get_fields(call); in trace_alloc_entry()
196 static int parse_entry(char *str, struct trace_event_call *call, void **pentry) in parse_entry() argument
204 entry = trace_alloc_entry(call, &entry_size); in parse_entry()
209 tracing_generic_entry_update(entry, call->event.type, in parse_entry()
[all …]
Dtrace_dynevent.c24 struct trace_event_call *call; in trace_event_dyn_try_get_ref() local
31 list_for_each_entry(call, &ftrace_events, list) { in trace_event_dyn_try_get_ref()
32 if (call == dyn_call) { in trace_event_dyn_try_get_ref()
41 void trace_event_dyn_put_ref(struct trace_event_call *call) in trace_event_dyn_put_ref() argument
43 if (WARN_ON_ONCE(!(call->flags & TRACE_EVENT_FL_DYNAMIC))) in trace_event_dyn_put_ref()
46 if (WARN_ON_ONCE(atomic_read(&call->refcnt) <= 0)) { in trace_event_dyn_put_ref()
47 atomic_set(&call->refcnt, 0); in trace_event_dyn_put_ref()
51 atomic_dec(&call->refcnt); in trace_event_dyn_put_ref()
54 bool trace_event_dyn_busy(struct trace_event_call *call) in trace_event_dyn_busy() argument
56 return atomic_read(&call->refcnt) != 0; in trace_event_dyn_busy()
Dtrace_probe.h206 bool trace_kprobe_on_func_entry(struct trace_event_call *call);
207 bool trace_kprobe_error_injectable(struct trace_event_call *call);
209 static inline bool trace_kprobe_on_func_entry(struct trace_event_call *call) in trace_kprobe_on_func_entry() argument
214 static inline bool trace_kprobe_error_injectable(struct trace_event_call *call) in trace_kprobe_error_injectable() argument
241 struct trace_event_call call; member
285 return trace_event_name(&tp->event->call); in trace_probe_name()
290 return tp->event->call.class->system; in trace_probe_group_name()
296 return &tp->event->call; in trace_probe_event_call()
302 return container_of(event_call, struct trace_probe_event, call); in trace_probe_event_from_call()
306 trace_probe_primary_from_call(struct trace_event_call *call) in trace_probe_primary_from_call() argument
[all …]
Dtrace_events_user.c107 struct trace_event_call call; member
310 static struct list_head *user_event_get_fields(struct trace_event_call *call) in user_event_get_fields() argument
312 struct user_event *user = (struct user_event *)call->data; in user_event_get_fields()
767 user->call.print_fmt = print_fmt; in user_event_create_print_fmt()
812 ret = trace_add_event_call(&user->call); in user_event_set_call_visible()
814 ret = trace_remove_event_call(&user->call); in user_event_set_call_visible()
841 kfree(user->call.print_fmt); in destroy_user_event()
947 perf_head = this_cpu_ptr(user->call.perf_events); in user_event_perf()
971 user->call.event.type, 1, regs, in user_event_perf()
1027 static int user_event_reg(struct trace_event_call *call, in user_event_reg() argument
[all …]
Dtrace_functions_graph.c101 struct trace_event_call *call = &event_funcgraph_entry; in __trace_graph_entry() local
112 if (!call_filter_check_discard(call, entry, buffer, event)) in __trace_graph_entry()
220 struct trace_event_call *call = &event_funcgraph_exit; in __trace_graph_return() local
231 if (!call_filter_check_discard(call, entry, buffer, event)) in __trace_graph_return()
632 struct ftrace_graph_ent *call; in print_graph_entry_leaf() local
638 call = &entry->graph_ent; in print_graph_entry_leaf()
651 cpu_data->depth = call->depth - 1; in print_graph_entry_leaf()
654 if (call->depth < FTRACE_RETFUNC_DEPTH && in print_graph_entry_leaf()
655 !WARN_ON_ONCE(call->depth < 0)) in print_graph_entry_leaf()
656 cpu_data->enter_funcs[call->depth] = 0; in print_graph_entry_leaf()
[all …]
Dtrace_events_synth.c133 static int synth_event_define_fields(struct trace_event_call *call) in synth_event_define_fields() argument
137 struct synth_event *event = call->data; in synth_event_define_fields()
148 ret = trace_define_field(call, type, name, offset, size, in synth_event_define_fields()
358 se = container_of(event, struct synth_event, call.event); in print_synth_event()
615 static void free_synth_event_print_fmt(struct trace_event_call *call) in free_synth_event_print_fmt() argument
617 if (call) { in free_synth_event_print_fmt()
618 kfree(call->print_fmt); in free_synth_event_print_fmt()
619 call->print_fmt = NULL; in free_synth_event_print_fmt()
661 static int set_synth_event_print_fmt(struct trace_event_call *call) in set_synth_event_print_fmt() argument
663 struct synth_event *event = call->data; in set_synth_event_print_fmt()
[all …]
Dtrace_kprobe.c208 trace_kprobe_primary_from_call(struct trace_event_call *call) in trace_kprobe_primary_from_call() argument
212 tp = trace_probe_primary_from_call(call); in trace_kprobe_primary_from_call()
219 bool trace_kprobe_on_func_entry(struct trace_event_call *call) in trace_kprobe_on_func_entry() argument
221 struct trace_kprobe *tk = trace_kprobe_primary_from_call(call); in trace_kprobe_on_func_entry()
228 bool trace_kprobe_error_injectable(struct trace_event_call *call) in trace_kprobe_error_injectable() argument
230 struct trace_kprobe *tk = trace_kprobe_primary_from_call(call); in trace_kprobe_error_injectable()
349 static int enable_trace_kprobe(struct trace_event_call *call, in enable_trace_kprobe() argument
357 tp = trace_probe_primary_from_call(call); in enable_trace_kprobe()
399 static int disable_trace_kprobe(struct trace_event_call *call, in disable_trace_kprobe() argument
404 tp = trace_probe_primary_from_call(call); in disable_trace_kprobe()
[all …]
Dtrace_uprobe.c324 trace_uprobe_primary_from_call(struct trace_event_call *call) in trace_uprobe_primary_from_call() argument
328 tp = trace_probe_primary_from_call(call); in trace_uprobe_primary_from_call()
959 struct trace_event_call *call = trace_probe_event_call(&tu->tp); in __uprobe_trace_func() local
961 WARN_ON(call != trace_file->event_call); in __uprobe_trace_func()
1093 static int probe_event_enable(struct trace_event_call *call, in probe_event_enable() argument
1101 tp = trace_probe_primary_from_call(call); in probe_event_enable()
1153 static void probe_event_disable(struct trace_event_call *call, in probe_event_disable() argument
1158 tp = trace_probe_primary_from_call(call); in probe_event_disable()
1273 static int uprobe_perf_close(struct trace_event_call *call, in uprobe_perf_close() argument
1280 tp = trace_probe_primary_from_call(call); in uprobe_perf_close()
[all …]
Dtrace_eprobe.c514 struct trace_event_call *call = trace_probe_event_call(&edata->ep->tp); in __eprobe_trace_func() local
518 if (WARN_ON_ONCE(call != edata->file->event_call)) in __eprobe_trace_func()
739 static int enable_trace_eprobe(struct trace_event_call *call, in enable_trace_eprobe() argument
748 tp = trace_probe_primary_from_call(call); in enable_trace_eprobe()
798 static int disable_trace_eprobe(struct trace_event_call *call, in disable_trace_eprobe() argument
804 tp = trace_probe_primary_from_call(call); in disable_trace_eprobe()
862 struct trace_event_call *call = trace_probe_event_call(&ep->tp); in init_trace_eprobe_call() local
864 call->flags = TRACE_EVENT_FL_EPROBE; in init_trace_eprobe_call()
865 call->event.funcs = &eprobe_funcs; in init_trace_eprobe_call()
866 call->class->fields_array = eprobe_fields_array; in init_trace_eprobe_call()
[all …]
Dtrace_probe.c962 struct trace_event_call *call = trace_probe_event_call(tp); in traceprobe_set_print_fmt() local
974 call->print_fmt = print_fmt; in traceprobe_set_print_fmt()
1007 kfree(tpe->call.name); in trace_probe_event_free()
1008 kfree(tpe->call.print_fmt); in trace_probe_event_free()
1048 struct trace_event_call *call; in trace_probe_init() local
1068 call = trace_probe_event_call(tp); in trace_probe_init()
1069 call->class = &tp->event->class; in trace_probe_init()
1070 call->name = kstrdup(event, GFP_KERNEL); in trace_probe_init()
1071 if (!call->name) { in trace_probe_init()
1110 struct trace_event_call *call = trace_probe_event_call(tp); in trace_probe_register_event_call() local
[all …]
Dtrace_events_filter.c1350 struct trace_event_call *call = data; in parse_pred() local
1383 field = trace_find_event_field(call, field_name); in parse_pred()
1426 if (ftrace_event_is_function(call)) { in parse_pred()
1723 static int process_preds(struct trace_event_call *call, in process_preds() argument
1753 parse_pred, call, pe); in process_preds()
1931 struct trace_event_call *call, in create_filter() argument
1946 err = process_preds(call, filter_string, *filterp, pe); in create_filter()
1955 struct trace_event_call *call, in create_event_filter() argument
1959 return create_filter(tr, call, filter_str, set_str, filterp); in create_event_filter()
1996 struct trace_event_call *call = file->event_call; in apply_event_filter() local
[all …]
Dtrace_mmiotrace.c297 struct trace_event_call *call = &event_mmiotrace_rw; in __trace_mmiotrace_rw() local
313 if (!call_filter_check_discard(call, entry, buffer, event)) in __trace_mmiotrace_rw()
328 struct trace_event_call *call = &event_mmiotrace_map; in __trace_mmiotrace_map() local
344 if (!call_filter_check_discard(call, entry, buffer, event)) in __trace_mmiotrace_map()
Dtrace.h1119 bool ftrace_event_is_function(struct trace_event_call *call);
1320 extern int call_filter_check_discard(struct trace_event_call *call, void *rec,
1491 struct trace_event_call *call,
1497 trace_find_event_field(struct trace_event_call *call, char *name);
1887 #define FTRACE_ENTRY(call, struct_name, id, tstruct, print) \ argument
1889 __aligned(4) event_##call;
1891 #define FTRACE_ENTRY_DUP(call, struct_name, id, tstruct, print) \ argument
1892 FTRACE_ENTRY(call, struct_name, id, PARAMS(tstruct), PARAMS(print))
1894 #define FTRACE_ENTRY_PACKED(call, struct_name, id, tstruct, print) \ argument
1895 FTRACE_ENTRY(call, struct_name, id, PARAMS(tstruct), PARAMS(print))
[all …]
Dtrace_dynevent.h80 struct trace_event_call *call) in dyn_event_add() argument
87 call->flags |= TRACE_EVENT_FL_DYNAMIC; in dyn_event_add()
Dtrace_sched_wakeup.c379 struct trace_event_call *call = &event_context_switch; in tracing_sched_switch_trace() local
397 if (!call_filter_check_discard(call, entry, buffer, event)) in tracing_sched_switch_trace()
407 struct trace_event_call *call = &event_wakeup; in tracing_sched_wakeup_trace() local
425 if (!call_filter_check_discard(call, entry, buffer, event)) in tracing_sched_wakeup_trace()
/kernel/bpf/preload/iterators/
DMakefile41 $(call msg,CLEAN)
45 $(call msg,GEN-SKEL,$@)
50 $(call msg,BPF,$@)
56 $(call msg,MKDIR,$@)
/kernel/kcsan/
DMakefile10 CFLAGS_core.o := $(call cc-option,-fno-conserve-stack) \
11 $(call cc-option,-mno-outline-atomics) \
/kernel/
DMakefile42 CFLAGS_kcov.o := $(call cc-option, -fno-conserve-stack) -fno-stack-protector
143 $(call if_changed,gzip)
148 $(call filechk,cat)
155 $(call cmd,genikh)
/kernel/bpf/
DMakefile7 CFLAGS_core.o += $(call cc-disable-warning, override-init) $(cflags-nogcse-yy)
45 $(call if_changed_rule,cc_o_c)
DKconfig27 bool "Enable bpf() system call"
37 Enable the bpf() system call that allows to manipulate BPF programs
/kernel/rcu/
Drcutorture.c371 call_rcu_func_t call; member
554 .call = call_rcu_hurry,
603 .call = call_rcu_busted,
718 .call = srcu_torture_call,
756 .call = srcu_torture_call,
778 .call = srcu_torture_call,
864 .call = call_rcu_tasks,
904 .call = call_rcu_tasks_rude,
956 .call = call_rcu_tasks_trace,
2013 if (cur_ops->call) { in rcu_torture_timer()
[all …]
/kernel/sched/
DMakefile5 ccflags-y += $(call cc-disable-warning, unused-but-set-variable)

12