Lines Matching full:args

54 	unsigned long	   args[6];  member
72 struct syscall_enter_args args; member
90 static inline int augmented__output(void *ctx, struct augmented_args_payload *args, int len) in augmented__output() argument
93 return perf_event_output(ctx, &__augmented_syscalls__, BPF_F_CURRENT_CPU, args, len); in augmented__output()
124 int syscall_unaugmented(struct syscall_enter_args *args) in syscall_unaugmented() argument
136 int sys_enter_connect(struct syscall_enter_args *args) in sys_enter_connect() argument
139 const void *sockaddr_arg = (const void *)args->args[1]; in sys_enter_connect()
140 unsigned int socklen = args->args[2]; in sys_enter_connect()
141 unsigned int len = sizeof(augmented_args->args); in sys_enter_connect()
151 return augmented__output(args, augmented_args, len + socklen); in sys_enter_connect()
155 int sys_enter_sendto(struct syscall_enter_args *args) in sys_enter_sendto() argument
158 const void *sockaddr_arg = (const void *)args->args[4]; in sys_enter_sendto()
159 unsigned int socklen = args->args[5]; in sys_enter_sendto()
160 unsigned int len = sizeof(augmented_args->args); in sys_enter_sendto()
170 return augmented__output(args, augmented_args, len + socklen); in sys_enter_sendto()
174 int sys_enter_open(struct syscall_enter_args *args) in sys_enter_open() argument
177 const void *filename_arg = (const void *)args->args[0]; in sys_enter_open()
178 unsigned int len = sizeof(augmented_args->args); in sys_enter_open()
185 return augmented__output(args, augmented_args, len); in sys_enter_open()
189 int sys_enter_openat(struct syscall_enter_args *args) in sys_enter_openat() argument
192 const void *filename_arg = (const void *)args->args[1]; in sys_enter_openat()
193 unsigned int len = sizeof(augmented_args->args); in sys_enter_openat()
200 return augmented__output(args, augmented_args, len); in sys_enter_openat()
204 int sys_enter_rename(struct syscall_enter_args *args) in sys_enter_rename() argument
207 const void *oldpath_arg = (const void *)args->args[0], in sys_enter_rename()
208 *newpath_arg = (const void *)args->args[1]; in sys_enter_rename()
209 unsigned int len = sizeof(augmented_args->args), oldpath_len; in sys_enter_rename()
217 return augmented__output(args, augmented_args, len); in sys_enter_rename()
221 int sys_enter_renameat(struct syscall_enter_args *args) in sys_enter_renameat() argument
224 const void *oldpath_arg = (const void *)args->args[1], in sys_enter_renameat()
225 *newpath_arg = (const void *)args->args[3]; in sys_enter_renameat()
226 unsigned int len = sizeof(augmented_args->args), oldpath_len; in sys_enter_renameat()
234 return augmented__output(args, augmented_args, len); in sys_enter_renameat()
238 int sys_enter(struct syscall_enter_args *args) in sys_enter() argument
245 * i.e. sizeof(augmented_args->args). in sys_enter()
250 unsigned int len = sizeof(augmented_args->args); in sys_enter()
260 probe_read(&augmented_args->args, sizeof(augmented_args->args), args); in sys_enter()
267 bpf_tail_call(args, &syscalls_sys_enter, augmented_args->args.syscall_nr); in sys_enter()
274 int sys_exit(struct syscall_exit_args *args) in sys_exit() argument
281 probe_read(&exit_args, sizeof(exit_args), args); in sys_exit()
287 bpf_tail_call(args, &syscalls_sys_exit, exit_args.syscall_nr); in sys_exit()