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()
212 __set_enter_print_fmt(struct syscall_metadata *entry, char *buf, int len) in __set_enter_print_fmt() argument
221 for (i = 0; i < entry->nb_args; i++) { in __set_enter_print_fmt()
223 entry->args[i], sizeof(unsigned long), in __set_enter_print_fmt()
224 i == entry->nb_args - 1 ? "" : ", "); in __set_enter_print_fmt()
228 for (i = 0; i < entry->nb_args; i++) { in __set_enter_print_fmt()
230 ", ((unsigned long)(REC->%s))", entry->args[i]); in __set_enter_print_fmt()
243 struct syscall_metadata *entry = call->data; in set_syscall_print_fmt() local
245 if (entry->enter_event != call) { in set_syscall_print_fmt()
251 len = __set_enter_print_fmt(entry, NULL, 0); in set_syscall_print_fmt()
258 __set_enter_print_fmt(entry, print_fmt, len + 1); in set_syscall_print_fmt()
266 struct syscall_metadata *entry = call->data; in free_syscall_print_fmt() local
268 if (entry->enter_event == call) in free_syscall_print_fmt()
297 struct syscall_trace_enter *entry; in ftrace_syscall_enter() local
323 size = sizeof(*entry) + sizeof(unsigned long) * sys_data->nb_args; in ftrace_syscall_enter()
334 entry = ring_buffer_event_data(event); in ftrace_syscall_enter()
335 entry->nr = syscall_nr; in ftrace_syscall_enter()
337 memcpy(entry->args, args, sizeof(unsigned long) * sys_data->nb_args); in ftrace_syscall_enter()
339 event_trigger_unlock_commit(trace_file, buffer, event, entry, in ftrace_syscall_enter()
347 struct syscall_trace_exit *entry; in ftrace_syscall_exit() local
376 sys_data->exit_event->event.type, sizeof(*entry), in ftrace_syscall_exit()
381 entry = ring_buffer_event_data(event); in ftrace_syscall_exit()
382 entry->nr = syscall_nr; in ftrace_syscall_exit()
383 entry->ret = syscall_get_return_value(current, regs); in ftrace_syscall_exit()
385 event_trigger_unlock_commit(trace_file, buffer, event, entry, in ftrace_syscall_exit()