Skip to content

Commit

Permalink
chore(driver): updated a couple of PPM_SC codes using correct syscall…
Browse files Browse the repository at this point in the history
… name.

Signed-off-by: Federico Di Pierro <nierro92@gmail.com>
  • Loading branch information
FedeDP committed Oct 4, 2022
1 parent f48129c commit 8732451
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions driver/ppm_events_public.h
Original file line number Diff line number Diff line change
Expand Up @@ -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) \
Expand Down
8 changes: 4 additions & 4 deletions driver/syscall_table.c
Original file line number Diff line number Diff line change
Expand Up @@ -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},
Expand Down Expand Up @@ -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},
Expand Down

0 comments on commit 8732451

Please sign in to comment.