From 87324512dc4090079121306f02c238224c430b19 Mon Sep 17 00:00:00 2001 From: Federico Di Pierro Date: Mon, 3 Oct 2022 15:41:30 +0200 Subject: [PATCH] chore(driver): updated a couple of PPM_SC codes using correct syscall name. Signed-off-by: Federico Di Pierro --- driver/ppm_events_public.h | 4 ++-- driver/syscall_table.c | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/driver/ppm_events_public.h b/driver/ppm_events_public.h index 612287c5cd..1852e686c9 100644 --- a/driver/ppm_events_public.h +++ b/driver/ppm_events_public.h @@ -1497,9 +1497,9 @@ enum extra_event_prog_code PPM_SC_X(PWRITE64, 295) \ PPM_SC_X(ARCH_PRCTL, 296) \ PPM_SC_X(SHMAT, 297) \ - PPM_SC_X(SIGRETURN, 298) \ + PPM_SC_X(RT_SIGRETURN, 298) \ PPM_SC_X(FALLOCATE, 299) \ - PPM_SC_X(NEWFSSTAT, 300) \ + PPM_SC_X(NEWFSTATAT, 300) \ PPM_SC_X(PROCESS_VM_READV, 301) \ PPM_SC_X(PROCESS_VM_WRITEV, 302) \ PPM_SC_X(FORK, 303) \ diff --git a/driver/syscall_table.c b/driver/syscall_table.c index 8acdad53fb..71df5484f4 100644 --- a/driver/syscall_table.c +++ b/driver/syscall_table.c @@ -683,13 +683,13 @@ const struct syscall_evt_pair g_syscall_table[SYSCALL_TABLE_SIZE] = { [__NR_shmat - SYSCALL_TABLE_ID0] = {.ppm_sc = PPM_SC_SHMAT}, #endif #ifdef __NR_rt_sigreturn - [__NR_rt_sigreturn - SYSCALL_TABLE_ID0] = {.ppm_sc = PPM_SC_SIGRETURN}, + [__NR_rt_sigreturn - SYSCALL_TABLE_ID0] = {.ppm_sc = PPM_SC_RT_SIGRETURN}, #endif #ifdef __NR_fallocate [__NR_fallocate - SYSCALL_TABLE_ID0] = {.ppm_sc = PPM_SC_FALLOCATE}, #endif #ifdef __NR_newfstatat - [__NR_newfstatat - SYSCALL_TABLE_ID0] = {.ppm_sc = PPM_SC_NEWFSSTAT}, + [__NR_newfstatat - SYSCALL_TABLE_ID0] = {.ppm_sc = PPM_SC_NEWFSTATAT}, #endif #ifdef __NR_finit_module [__NR_finit_module - SYSCALL_TABLE_ID0] = {.ppm_sc = PPM_SC_FINIT_MODULE}, @@ -1380,13 +1380,13 @@ const struct syscall_evt_pair g_syscall_ia32_table[SYSCALL_TABLE_SIZE] = { [__NR_ia32_shmat - SYSCALL_TABLE_ID0] = {.ppm_sc = PPM_SC_SHMAT}, #endif #ifdef __NR_ia32_rt_sigreturn - [__NR_ia32_rt_sigreturn - SYSCALL_TABLE_ID0] = {.ppm_sc = PPM_SC_SIGRETURN}, + [__NR_ia32_rt_sigreturn - SYSCALL_TABLE_ID0] = {.ppm_sc = PPM_SC_RT_SIGRETURN}, #endif #ifdef __NR_ia32_fallocate [__NR_ia32_fallocate - SYSCALL_TABLE_ID0] = {.ppm_sc = PPM_SC_FALLOCATE}, #endif #ifdef __NR_ia32_newfstatat - [__NR_ia32_newfstatat - SYSCALL_TABLE_ID0] = {.ppm_sc = PPM_SC_NEWFSSTAT}, + [__NR_ia32_newfstatat - SYSCALL_TABLE_ID0] = {.ppm_sc = PPM_SC_NEWFSTATAT}, #endif #ifdef __NR_ia32_finit_module [__NR_ia32_finit_module - SYSCALL_TABLE_ID0] = {.ppm_sc = PPM_SC_FINIT_MODULE},