1 /* SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) */ 2 #ifndef __OPENSNOOP_H 3 #define __OPENSNOOP_H 4 5 #define TASK_COMM_LEN 16 6 #define NAME_MAX 255 7 #define INVALID_UID ((uid_t)-1) 8 9 struct args_t { 10 const char *fname; 11 int flags; 12 }; 13 14 struct event { 15 /* user terminology for pid: */ 16 __u64 ts; 17 pid_t pid; 18 uid_t uid; 19 int ret; 20 int flags; 21 __u64 callers[2]; 22 char comm[TASK_COMM_LEN]; 23 char fname[NAME_MAX]; 24 }; 25 26 #endif /* __OPENSNOOP_H */ 27