Lines Matching refs:entry
26 struct syscall_metadata *entry = call->data; in syscall_get_enter_fields() local
28 return &entry->enter_fields; in syscall_get_enter_fields()
117 struct syscall_metadata *entry; in get_syscall_name() local
119 entry = syscall_nr_to_meta(syscall); in get_syscall_name()
120 if (!entry) in get_syscall_name()
123 return entry->name; in get_syscall_name()
134 struct syscall_metadata *entry; in print_syscall_enter() local
139 entry = syscall_nr_to_meta(syscall); in print_syscall_enter()
141 if (!entry) in print_syscall_enter()
144 if (entry->enter_event->event.type != ent->type) { in print_syscall_enter()
149 trace_seq_printf(s, "%s(", entry->name); in print_syscall_enter()
151 for (i = 0; i < entry->nb_args; i++) { in print_syscall_enter()
158 trace_seq_printf(s, "%s ", entry->types[i]); in print_syscall_enter()
161 trace_seq_printf(s, "%s: %lx%s", entry->args[i], in print_syscall_enter()
163 i == entry->nb_args - 1 ? "" : ", "); in print_syscall_enter()
181 struct syscall_metadata *entry; in print_syscall_exit() local
185 entry = syscall_nr_to_meta(syscall); in print_syscall_exit()
187 if (!entry) { in print_syscall_exit()
192 if (entry->exit_event->event.type != ent->type) { in print_syscall_exit()
197 trace_seq_printf(s, "%s -> 0x%lx\n", entry->name, in print_syscall_exit()
210 __set_enter_print_fmt(struct syscall_metadata *entry, char *buf, int len) in __set_enter_print_fmt() argument
219 for (i = 0; i < entry->nb_args; i++) { in __set_enter_print_fmt()
221 entry->args[i], sizeof(unsigned long), in __set_enter_print_fmt()
222 i == entry->nb_args - 1 ? "" : ", "); in __set_enter_print_fmt()
226 for (i = 0; i < entry->nb_args; i++) { in __set_enter_print_fmt()
228 ", ((unsigned long)(REC->%s))", entry->args[i]); in __set_enter_print_fmt()
241 struct syscall_metadata *entry = call->data; in set_syscall_print_fmt() local
243 if (entry->enter_event != call) { in set_syscall_print_fmt()
249 len = __set_enter_print_fmt(entry, NULL, 0); in set_syscall_print_fmt()
256 __set_enter_print_fmt(entry, print_fmt, len + 1); in set_syscall_print_fmt()
264 struct syscall_metadata *entry = call->data; in free_syscall_print_fmt() local
266 if (entry->enter_event == call) in free_syscall_print_fmt()
295 struct syscall_trace_enter *entry; in ftrace_syscall_enter() local
318 size = sizeof(*entry) + sizeof(unsigned long) * sys_data->nb_args; in ftrace_syscall_enter()
320 entry = trace_event_buffer_reserve(&fbuffer, trace_file, size); in ftrace_syscall_enter()
321 if (!entry) in ftrace_syscall_enter()
324 entry = ring_buffer_event_data(fbuffer.event); in ftrace_syscall_enter()
325 entry->nr = syscall_nr; in ftrace_syscall_enter()
327 memcpy(entry->args, args, sizeof(unsigned long) * sys_data->nb_args); in ftrace_syscall_enter()
336 struct syscall_trace_exit *entry; in ftrace_syscall_exit() local
357 entry = trace_event_buffer_reserve(&fbuffer, trace_file, sizeof(*entry)); in ftrace_syscall_exit()
358 if (!entry) in ftrace_syscall_exit()
361 entry = ring_buffer_event_data(fbuffer.event); in ftrace_syscall_exit()
362 entry->nr = syscall_nr; in ftrace_syscall_exit()
363 entry->ret = syscall_get_return_value(current, regs); in ftrace_syscall_exit()