Skip to content

Commit

Permalink
update(driver): update syscalls tables and driver report.
Browse files Browse the repository at this point in the history
Signed-off-by: GitHub <[email protected]>
  • Loading branch information
LucaGuerra authored Apr 1, 2023
1 parent 6c11056 commit 85acb57
Show file tree
Hide file tree
Showing 4 changed files with 101 additions and 3 deletions.
13 changes: 12 additions & 1 deletion driver/ppm_events_public.h
Original file line number Diff line number Diff line change
Expand Up @@ -1630,7 +1630,18 @@ enum extra_event_prog_code
PPM_SC_X(SCHED_SWITCH, 397) \
PPM_SC_X(PAGE_FAULT_USER, 398) \
PPM_SC_X(PAGE_FAULT_KERNEL, 399) \
PPM_SC_X(SIGNAL_DELIVER, 400)
PPM_SC_X(SIGNAL_DELIVER, 400) \
PPM_SC_X(S390_PCI_MMIO_READ, 401) \
PPM_SC_X(SIGRETURN, 402) \
PPM_SC_X(S390_PCI_MMIO_WRITE, 403) \
PPM_SC_X(S390_GUARDED_STORAGE, 404) \
PPM_SC_X(SIGACTION, 405) \
PPM_SC_X(S390_STHYI, 406) \
PPM_SC_X(S390_RUNTIME_INSTR, 407) \
PPM_SC_X(READDIR, 408) \
PPM_SC_X(IDLE, 409) \
PPM_SC_X(SIGSUSPEND, 410) \
PPM_SC_X(TIMERFD, 411)

typedef enum {
#define PPM_SC_X(name, value) PPM_SC_##name = (value),
Expand Down
21 changes: 21 additions & 0 deletions driver/report.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ This table represents the syscalls supported by our drivers.
| adjtimex | 🟡 |
| alarm | 🟡 |
| arch_prctl | 🟡 |
| bdflush | 🟡 |
| bind | 🟢 |
| bpf | 🟢 |
| brk | 🟢 |
Expand Down Expand Up @@ -82,6 +83,7 @@ This table represents the syscalls supported by our drivers.
| fspick | 🟡 |
| fstat | 🟢 |
| fstatfs | 🟡 |
| fstatfs64 | 🟡 |
| fsync | 🟡 |
| ftruncate | 🟡 |
| futex | 🟢 |
Expand Down Expand Up @@ -119,6 +121,7 @@ This table represents the syscalls supported by our drivers.
| gettimeofday | 🟡 |
| getuid | 🟢 |
| getxattr | 🟡 |
| idle | 🟡 |
| init_module | 🟡 |
| inotify_add_watch | 🟡 |
| inotify_init | 🟢 |
Expand All @@ -138,6 +141,7 @@ This table represents the syscalls supported by our drivers.
| iopl | 🟡 |
| ioprio_get | 🟡 |
| ioprio_set | 🟡 |
| ipc | 🟡 |
| kcmp | 🟡 |
| kexec_file_load | 🟡 |
| kexec_load | 🟡 |
Expand Down Expand Up @@ -198,6 +202,7 @@ This table represents the syscalls supported by our drivers.
| nanosleep | 🟢 |
| newfstatat | 🟡 |
| nfsservctl | 🟡 |
| nice | 🟡 |
| open | 🟢 |
| open_by_handle_at | 🟢 |
| open_tree | 🟡 |
Expand Down Expand Up @@ -236,6 +241,7 @@ This table represents the syscalls supported by our drivers.
| quotactl_fd | 🟡 |
| read | 🟢 |
| readahead | 🟡 |
| readdir | 🟡 |
| readlink | 🟡 |
| readlinkat | 🟡 |
| readv | 🟢 |
Expand All @@ -260,6 +266,11 @@ This table represents the syscalls supported by our drivers.
| rt_sigsuspend | 🟡 |
| rt_sigtimedwait | 🟡 |
| rt_tgsigqueueinfo | 🟡 |
| s390_guarded_storage | 🟡 |
| s390_pci_mmio_read | 🟡 |
| s390_pci_mmio_write | 🟡 |
| s390_runtime_instr | 🟡 |
| s390_sthyi | 🟡 |
| sched_get_priority_max | 🟡 |
| sched_get_priority_min | 🟡 |
| sched_getaffinity | 🟡 |
Expand Down Expand Up @@ -312,14 +323,22 @@ This table represents the syscalls supported by our drivers.
| shmdt | 🟡 |
| shmget | 🟡 |
| shutdown | 🟢 |
| sigaction | 🟡 |
| sigaltstack | 🟡 |
| signal | 🟡 |
| signalfd | 🟢 |
| signalfd4 | 🟢 |
| sigpending | 🟡 |
| sigprocmask | 🟡 |
| sigreturn | 🟡 |
| sigsuspend | 🟡 |
| socket | 🟢 |
| socketcall | 🟡 |
| socketpair | 🟢 |
| splice | 🟢 |
| stat | 🟢 |
| statfs | 🟡 |
| statfs64 | 🟡 |
| statx | 🟡 |
| swapoff | 🟡 |
| swapon | 🟡 |
Expand All @@ -339,13 +358,15 @@ This table represents the syscalls supported by our drivers.
| timer_getoverrun | 🟡 |
| timer_gettime | 🟡 |
| timer_settime | 🟡 |
| timerfd | 🟡 |
| timerfd_create | 🟢 |
| timerfd_gettime | 🟡 |
| timerfd_settime | 🟡 |
| times | 🟡 |
| tkill | 🟢 |
| truncate | 🟡 |
| umask | 🟡 |
| umount | 🟢 |
| umount2 | 🟢 |
| uname | 🟡 |
| unlink | 🟢 |
Expand Down
66 changes: 66 additions & 0 deletions driver/syscall_table.c
Original file line number Diff line number Diff line change
Expand Up @@ -911,6 +911,39 @@ const struct syscall_evt_pair g_syscall_table[SYSCALL_TABLE_SIZE] = {
#ifdef __NR_alarm
[__NR_alarm - SYSCALL_TABLE_ID0] = {.ppm_sc = PPM_SC_ALARM},
#endif
#ifdef __NR_readdir
[__NR_readdir - SYSCALL_TABLE_ID0] = {.ppm_sc = PPM_SC_READDIR},
#endif
#ifdef __NR_sigsuspend
[__NR_sigsuspend - SYSCALL_TABLE_ID0] = {.ppm_sc = PPM_SC_SIGSUSPEND},
#endif
#ifdef __NR_timerfd
[__NR_timerfd - SYSCALL_TABLE_ID0] = {.ppm_sc = PPM_SC_TIMERFD},
#endif
#ifdef __NR_s390_guarded_storage
[__NR_s390_guarded_storage - SYSCALL_TABLE_ID0] = {.ppm_sc = PPM_SC_S390_GUARDED_STORAGE},
#endif
#ifdef __NR_sigaction
[__NR_sigaction - SYSCALL_TABLE_ID0] = {.ppm_sc = PPM_SC_SIGACTION},
#endif
#ifdef __NR_sigreturn
[__NR_sigreturn - SYSCALL_TABLE_ID0] = {.ppm_sc = PPM_SC_SIGRETURN},
#endif
#ifdef __NR_s390_pci_mmio_write
[__NR_s390_pci_mmio_write - SYSCALL_TABLE_ID0] = {.ppm_sc = PPM_SC_S390_PCI_MMIO_WRITE},
#endif
#ifdef __NR_s390_runtime_instr
[__NR_s390_runtime_instr - SYSCALL_TABLE_ID0] = {.ppm_sc = PPM_SC_S390_RUNTIME_INSTR},
#endif
#ifdef __NR_s390_pci_mmio_read
[__NR_s390_pci_mmio_read - SYSCALL_TABLE_ID0] = {.ppm_sc = PPM_SC_S390_PCI_MMIO_READ},
#endif
#ifdef __NR_s390_sthyi
[__NR_s390_sthyi - SYSCALL_TABLE_ID0] = {.ppm_sc = PPM_SC_S390_STHYI},
#endif
#ifdef __NR_idle
[__NR_idle - SYSCALL_TABLE_ID0] = {.ppm_sc = PPM_SC_IDLE},
#endif
};

#ifdef CONFIG_IA32_EMULATION
Expand Down Expand Up @@ -1723,6 +1756,39 @@ const struct syscall_evt_pair g_syscall_ia32_table[SYSCALL_TABLE_SIZE] = {
#ifdef __NR_ia32_uselib
[__NR_ia32_uselib - SYSCALL_TABLE_ID0] = {.ppm_sc = PPM_SC_USELIB},
#endif
#ifdef __NR_ia32_s390_guarded_storage
[__NR_ia32_s390_guarded_storage - SYSCALL_TABLE_ID0] = {.ppm_sc = PPM_SC_S390_GUARDED_STORAGE},
#endif
#ifdef __NR_ia32_sigaction
[__NR_ia32_sigaction - SYSCALL_TABLE_ID0] = {.ppm_sc = PPM_SC_SIGACTION},
#endif
#ifdef __NR_ia32_sigreturn
[__NR_ia32_sigreturn - SYSCALL_TABLE_ID0] = {.ppm_sc = PPM_SC_SIGRETURN},
#endif
#ifdef __NR_ia32_s390_pci_mmio_write
[__NR_ia32_s390_pci_mmio_write - SYSCALL_TABLE_ID0] = {.ppm_sc = PPM_SC_S390_PCI_MMIO_WRITE},
#endif
#ifdef __NR_ia32_s390_runtime_instr
[__NR_ia32_s390_runtime_instr - SYSCALL_TABLE_ID0] = {.ppm_sc = PPM_SC_S390_RUNTIME_INSTR},
#endif
#ifdef __NR_ia32_readdir
[__NR_ia32_readdir - SYSCALL_TABLE_ID0] = {.ppm_sc = PPM_SC_READDIR},
#endif
#ifdef __NR_ia32_sigsuspend
[__NR_ia32_sigsuspend - SYSCALL_TABLE_ID0] = {.ppm_sc = PPM_SC_SIGSUSPEND},
#endif
#ifdef __NR_ia32_timerfd
[__NR_ia32_timerfd - SYSCALL_TABLE_ID0] = {.ppm_sc = PPM_SC_TIMERFD},
#endif
#ifdef __NR_ia32_s390_pci_mmio_read
[__NR_ia32_s390_pci_mmio_read - SYSCALL_TABLE_ID0] = {.ppm_sc = PPM_SC_S390_PCI_MMIO_READ},
#endif
#ifdef __NR_ia32_s390_sthyi
[__NR_ia32_s390_sthyi - SYSCALL_TABLE_ID0] = {.ppm_sc = PPM_SC_S390_STHYI},
#endif
#ifdef __NR_ia32_idle
[__NR_ia32_idle - SYSCALL_TABLE_ID0] = {.ppm_sc = PPM_SC_IDLE},
#endif
};

#endif /* CONFIG_IA32_EMULATION */
Loading

0 comments on commit 85acb57

Please sign in to comment.