I'm trying to create a program using BCC, in which I store an array with all System calls performed by each process. My code is as follows:
struct data_t{
u32 syscalls[MAX_SYSCALLS];
u64 count;
}
TRACEPOINT_PROBE(raw_syscalls, sys_exit{
u32 key = pid_tgid;
struct data_t *val, zero ={};
val = data.lookup_or_try_init(&key, &zero);
if (val){
lock_xadd(&val->count,1);
//Here I want to put the val->syscalls[count] = args->id
I want to know if it's possible and how to write that commented line of code, since using the standard C syntax to do so results in "Call to built-in function 'memset' is not supported"