Lines Matching refs:augmented_args

138 	struct augmented_args_payload *augmented_args = augmented_args_payload();  in sys_enter_connect()  local
141 unsigned int len = sizeof(augmented_args->args); in sys_enter_connect()
143 if (augmented_args == NULL) in sys_enter_connect()
146 if (socklen > sizeof(augmented_args->saddr)) in sys_enter_connect()
147 socklen = sizeof(augmented_args->saddr); in sys_enter_connect()
149 probe_read(&augmented_args->saddr, socklen, sockaddr_arg); in sys_enter_connect()
151 return augmented__output(args, augmented_args, len + socklen); in sys_enter_connect()
157 struct augmented_args_payload *augmented_args = augmented_args_payload(); in sys_enter_sendto() local
160 unsigned int len = sizeof(augmented_args->args); in sys_enter_sendto()
162 if (augmented_args == NULL) in sys_enter_sendto()
165 if (socklen > sizeof(augmented_args->saddr)) in sys_enter_sendto()
166 socklen = sizeof(augmented_args->saddr); in sys_enter_sendto()
168 probe_read(&augmented_args->saddr, socklen, sockaddr_arg); in sys_enter_sendto()
170 return augmented__output(args, augmented_args, len + socklen); in sys_enter_sendto()
176 struct augmented_args_payload *augmented_args = augmented_args_payload(); in sys_enter_open() local
178 unsigned int len = sizeof(augmented_args->args); in sys_enter_open()
180 if (augmented_args == NULL) in sys_enter_open()
183 …len += augmented_arg__read_str(&augmented_args->arg, filename_arg, sizeof(augmented_args->arg.valu… in sys_enter_open()
185 return augmented__output(args, augmented_args, len); in sys_enter_open()
191 struct augmented_args_payload *augmented_args = augmented_args_payload(); in sys_enter_openat() local
193 unsigned int len = sizeof(augmented_args->args); in sys_enter_openat()
195 if (augmented_args == NULL) in sys_enter_openat()
198 …len += augmented_arg__read_str(&augmented_args->arg, filename_arg, sizeof(augmented_args->arg.valu… in sys_enter_openat()
200 return augmented__output(args, augmented_args, len); in sys_enter_openat()
206 struct augmented_args_payload *augmented_args = augmented_args_payload(); in sys_enter_rename() local
209 unsigned int len = sizeof(augmented_args->args), oldpath_len; in sys_enter_rename()
211 if (augmented_args == NULL) in sys_enter_rename()
214 …oldpath_len = augmented_arg__read_str(&augmented_args->arg, oldpath_arg, sizeof(augmented_args->ar… in sys_enter_rename()
215 …_len + augmented_arg__read_str((void *)(&augmented_args->arg) + oldpath_len, newpath_arg, sizeof(a… in sys_enter_rename()
217 return augmented__output(args, augmented_args, len); in sys_enter_rename()
223 struct augmented_args_payload *augmented_args = augmented_args_payload(); in sys_enter_renameat() local
226 unsigned int len = sizeof(augmented_args->args), oldpath_len; in sys_enter_renameat()
228 if (augmented_args == NULL) in sys_enter_renameat()
231 …oldpath_len = augmented_arg__read_str(&augmented_args->arg, oldpath_arg, sizeof(augmented_args->ar… in sys_enter_renameat()
232 …_len + augmented_arg__read_str((void *)(&augmented_args->arg) + oldpath_len, newpath_arg, sizeof(a… in sys_enter_renameat()
234 return augmented__output(args, augmented_args, len); in sys_enter_renameat()
240 struct augmented_args_payload *augmented_args; in sys_enter() local
250 unsigned int len = sizeof(augmented_args->args); in sys_enter()
256 augmented_args = augmented_args_payload(); in sys_enter()
257 if (augmented_args == NULL) 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()