github.com/inspektor-gadget/inspektor-gadget@v0.28.1/pkg/container-hook/bpf/execruntime.h (about) 1 /* SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) */ 2 #ifndef __EXECRUNTIME_H 3 #define __EXECRUNTIME_H 4 5 #define ARGSIZE 256 6 #define TASK_COMM_LEN 16 7 #define TOTAL_MAX_ARGS 60 8 #define DEFAULT_MAXARGS 20 9 #define FULL_MAX_ARGS_ARR (TOTAL_MAX_ARGS * ARGSIZE) 10 #define INVALID_UID ((uid_t)-1) 11 #define BASE_EVENT_SIZE (size_t)(&((struct event *)0)->args) 12 #define EVENT_SIZE(e) (BASE_EVENT_SIZE + e->args_size) 13 #define LAST_ARG (FULL_MAX_ARGS_ARR - ARGSIZE) 14 15 struct record { 16 __u32 pid; 17 unsigned int args_size; 18 __u8 caller_comm[TASK_COMM_LEN]; 19 __u8 args[FULL_MAX_ARGS_ARR]; 20 }; 21 22 #endif /* __EXECRUNTIME_H */