1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
/* SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) */ /* Copyright (c) 2020 Facebook */ #ifndef EUNOMIA_BPF_EVENT_H #define EUNOMIA_BPF_EVENT_H #define TASK_COMM_LEN 16 #define MAX_FILENAME_LEN 127 /* SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) */ /* Copyright (c) 2020 Facebook */ #ifndef __BOOTSTRAP_H #define __BOOTSTRAP_H #define TASK_COMM_LEN 16 #define MAX_FILENAME_LEN 127 enum event_type { EVENT_TYPE__ENTER, EVENT_TYPE__EXIT, }; struct event { int pid; int ppid; unsigned exit_code; unsigned long long duration_ns; char comm[TASK_COMM_LEN]; char filename[MAX_FILENAME_LEN]; bool exit_event; enum event_type et; }; #endif /* __BOOTSTRAP_H */ #endif /* __update_H */