Lines Matching refs:payload
206 void* payload, in read_full_cgroup_path() argument
209 void* payload_start = payload; in read_full_cgroup_path()
217 bpf_probe_read_kernel_str(payload, MAX_PATH, in read_full_cgroup_path()
220 return payload; in read_full_cgroup_path()
222 *root_pos = payload - payload_start; in read_full_cgroup_path()
224 payload += filepart_length; in read_full_cgroup_path()
228 return payload; in read_full_cgroup_path()
251 void* payload) in populate_cgroup_info() argument
304 bpf_probe_read_kernel_str(payload, MAX_PATH, in populate_cgroup_info()
308 payload += cgroup_root_length; in populate_cgroup_info()
312 bpf_probe_read_kernel_str(payload, MAX_PATH, in populate_cgroup_info()
316 payload += cgroup_proc_length; in populate_cgroup_info()
321 void* payload_end_pos = read_full_cgroup_path(proc_kernfs, root_kernfs, payload, in populate_cgroup_info()
323 cgroup_data->cgroup_full_length = payload_end_pos - payload; in populate_cgroup_info()
324 payload = payload_end_pos; in populate_cgroup_info()
327 return (void*)payload; in populate_cgroup_info()
332 u32 pid, void* payload) in populate_var_metadata() argument
343 size_t comm_length = bpf_core_read_str(payload, TASK_COMM_LEN, &task->comm); in populate_var_metadata()
346 payload += comm_length; in populate_var_metadata()
349 return (void*)payload; in populate_var_metadata()
362 void* payload = populate_var_metadata(&kill_data->meta, task, spid, kill_data->payload); in get_var_kill_data() local
363 payload = populate_cgroup_info(&kill_data->cgroup_data, task, payload); in get_var_kill_data()
364 size_t payload_length = payload - (void*)kill_data->payload; in get_var_kill_data()
476 read_absolute_file_path_from_dentry(struct dentry* filp_dentry, void* payload) in read_absolute_file_path_from_dentry() argument
487 bpf_probe_read_kernel_str(payload, MAX_PATH, in read_absolute_file_path_from_dentry()
492 payload += filepart_length; in read_absolute_file_path_from_dentry()
563 void* payload = populate_var_metadata(&sysctl_data->meta, task, pid, sysctl_data->payload); in BPF_KPROBE() local
564 payload = populate_cgroup_info(&sysctl_data->cgroup_data, task, payload); in BPF_KPROBE()
571 size_t sysctl_val_length = bpf_probe_read_kernel_str(payload, in BPF_KPROBE()
575 payload += sysctl_val_length; in BPF_KPROBE()
579 bpf_probe_read_kernel_str(payload, MAX_PATH, in BPF_KPROBE()
584 payload += sysctl_path_length; in BPF_KPROBE()
588 unsigned long data_len = payload - (void*)sysctl_data; in BPF_KPROBE()
638 void* payload = kill_data->payload; in raw_tracepoint__sched_process_exit() local
642 payload += offset; in raw_tracepoint__sched_process_exit()
647 size_t comm_length = bpf_core_read_str(payload, TASK_COMM_LEN, &task->comm); in raw_tracepoint__sched_process_exit()
650 payload += comm_length; in raw_tracepoint__sched_process_exit()
654 bpf_probe_read_kernel_str(payload, in raw_tracepoint__sched_process_exit()
659 payload += cgroup_proc_length; in raw_tracepoint__sched_process_exit()
663 unsigned long data_len = (void*)payload - (void*)kill_data; in raw_tracepoint__sched_process_exit()
704 void* payload = populate_var_metadata(&proc_exec_data->meta, task, pid, in raw_tracepoint__sched_process_exec() local
705 proc_exec_data->payload); in raw_tracepoint__sched_process_exec()
706 payload = populate_cgroup_info(&proc_exec_data->cgroup_data, task, payload); in raw_tracepoint__sched_process_exec()
716 bpf_probe_read_kernel_str(payload, MAX_FILENAME_LEN, filename); in raw_tracepoint__sched_process_exec()
719 payload += bin_path_length; in raw_tracepoint__sched_process_exec()
724 unsigned int cmdline_length = probe_read_lim(payload, arg_start, in raw_tracepoint__sched_process_exec()
729 payload += cmdline_length; in raw_tracepoint__sched_process_exec()
735 unsigned long env_len = probe_read_lim(payload, env_start, in raw_tracepoint__sched_process_exec()
739 payload += env_len; in raw_tracepoint__sched_process_exec()
744 unsigned long data_len = payload - (void*)proc_exec_data; in raw_tracepoint__sched_process_exec()
799 void* payload = populate_var_metadata(&filemod_data->meta, task, pid, in kprobe_ret__do_filp_open() local
800 filemod_data->payload); in kprobe_ret__do_filp_open()
801 payload = populate_cgroup_info(&filemod_data->cgroup_data, task, payload); in kprobe_ret__do_filp_open()
803 size_t len = read_absolute_file_path_from_dentry(filp_dentry, payload); in kprobe_ret__do_filp_open()
805 payload += len; in kprobe_ret__do_filp_open()
809 unsigned long data_len = payload - (void*)filemod_data; in kprobe_ret__do_filp_open()
852 void* payload = populate_var_metadata(&filemod_data->meta, task, pid, in BPF_KPROBE() local
853 filemod_data->payload); in BPF_KPROBE()
854 payload = populate_cgroup_info(&filemod_data->cgroup_data, task, payload); in BPF_KPROBE()
856 size_t len = read_absolute_file_path_from_dentry(old_dentry, payload); in BPF_KPROBE()
858 payload += len; in BPF_KPROBE()
862 len = read_absolute_file_path_from_dentry(new_dentry, payload); in BPF_KPROBE()
864 payload += len; in BPF_KPROBE()
869 unsigned long data_len = payload - (void*)filemod_data; in BPF_KPROBE()
907 void* payload = populate_var_metadata(&filemod_data->meta, task, pid, in BPF_KPROBE() local
908 filemod_data->payload); in BPF_KPROBE()
909 payload = populate_cgroup_info(&filemod_data->cgroup_data, task, payload); in BPF_KPROBE()
911 size_t len = bpf_probe_read_kernel_str(payload, MAX_FILEPATH_LENGTH, in BPF_KPROBE()
914 payload += len; in BPF_KPROBE()
917 len = read_absolute_file_path_from_dentry(dentry, payload); in BPF_KPROBE()
919 payload += len; in BPF_KPROBE()
923 unsigned long data_len = payload - (void*)filemod_data; in BPF_KPROBE()
946 void* payload = populate_var_metadata(&fork_data->meta, child, in raw_tracepoint__sched_process_fork() local
947 BPF_CORE_READ(child, pid), fork_data->payload); in raw_tracepoint__sched_process_fork()
953 unsigned long data_len = payload - (void*)fork_data; in raw_tracepoint__sched_process_fork()