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 Aug 1, 2023
1 parent 6c11056 commit 0737f12
Show file tree
Hide file tree
Showing 7 changed files with 121 additions and 3 deletions.
14 changes: 13 additions & 1 deletion driver/ppm_events_public.h
Original file line number Diff line number Diff line change
Expand Up @@ -1630,7 +1630,19 @@ 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_WRITE, 401) \
PPM_SC_X(SIGSUSPEND, 402) \
PPM_SC_X(S390_GUARDED_STORAGE, 403) \
PPM_SC_X(IDLE, 404) \
PPM_SC_X(S390_STHYI, 405) \
PPM_SC_X(CACHESTAT, 406) \
PPM_SC_X(SIGRETURN, 407) \
PPM_SC_X(SIGACTION, 408) \
PPM_SC_X(S390_RUNTIME_INSTR, 409) \
PPM_SC_X(TIMERFD, 410) \
PPM_SC_X(S390_PCI_MMIO_READ, 411) \
PPM_SC_X(READDIR, 412)

typedef enum {
#define PPM_SC_X(name, value) PPM_SC_##name = (value),
Expand Down
22 changes: 22 additions & 0 deletions driver/report.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,11 @@ This table represents the syscalls supported by our drivers.
| adjtimex | 🟡 |
| alarm | 🟡 |
| arch_prctl | 🟡 |
| bdflush | 🟡 |
| bind | 🟢 |
| bpf | 🟢 |
| brk | 🟢 |
| cachestat | 🟡 |
| capget | 🟡 |
| capset | 🟢 |
| chdir | 🟢 |
Expand Down Expand Up @@ -82,6 +84,7 @@ This table represents the syscalls supported by our drivers.
| fspick | 🟡 |
| fstat | 🟢 |
| fstatfs | 🟡 |
| fstatfs64 | 🟡 |
| fsync | 🟡 |
| ftruncate | 🟡 |
| futex | 🟢 |
Expand Down Expand Up @@ -119,6 +122,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 +142,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 +203,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 +242,7 @@ This table represents the syscalls supported by our drivers.
| quotactl_fd | 🟡 |
| read | 🟢 |
| readahead | 🟡 |
| readdir | 🟡 |
| readlink | 🟡 |
| readlinkat | 🟡 |
| readv | 🟢 |
Expand All @@ -260,6 +267,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 +324,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 +359,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
3 changes: 3 additions & 0 deletions driver/syscall_compat_aarch64.h
Original file line number Diff line number Diff line change
Expand Up @@ -917,3 +917,6 @@
#ifndef __NR_set_mempolicy_home_node
#define __NR_set_mempolicy_home_node 450
#endif
#ifndef __NR_cachestat
#define __NR_cachestat 451
#endif
6 changes: 6 additions & 0 deletions driver/syscall_compat_s390x.h
Original file line number Diff line number Diff line change
Expand Up @@ -1088,6 +1088,9 @@
#ifndef __NR_landlock_restrict_self
#define __NR_landlock_restrict_self 446
#endif
#ifndef __NR_memfd_secret
#define __NR_memfd_secret 447
#endif
#ifndef __NR_process_mrelease
#define __NR_process_mrelease 448
#endif
Expand All @@ -1097,3 +1100,6 @@
#ifndef __NR_set_mempolicy_home_node
#define __NR_set_mempolicy_home_node 450
#endif
#ifndef __NR_cachestat
#define __NR_cachestat 451
#endif
3 changes: 3 additions & 0 deletions driver/syscall_compat_x86_64.h
Original file line number Diff line number Diff line change
Expand Up @@ -1070,3 +1070,6 @@
#ifndef __NR_set_mempolicy_home_node
#define __NR_set_mempolicy_home_node 450
#endif
#ifndef __NR_cachestat
#define __NR_cachestat 451
#endif
72 changes: 72 additions & 0 deletions driver/syscall_table.c
Original file line number Diff line number Diff line change
Expand Up @@ -911,6 +911,42 @@ 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_timerfd
[__NR_timerfd - SYSCALL_TABLE_ID0] = {.ppm_sc = PPM_SC_TIMERFD},
#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_sigreturn
[__NR_sigreturn - SYSCALL_TABLE_ID0] = {.ppm_sc = PPM_SC_SIGRETURN},
#endif
#ifdef __NR_s390_guarded_storage
[__NR_s390_guarded_storage - SYSCALL_TABLE_ID0] = {.ppm_sc = PPM_SC_S390_GUARDED_STORAGE},
#endif
#ifdef __NR_idle
[__NR_idle - SYSCALL_TABLE_ID0] = {.ppm_sc = PPM_SC_IDLE},
#endif
#ifdef __NR_cachestat
[__NR_cachestat - SYSCALL_TABLE_ID0] = {.ppm_sc = PPM_SC_CACHESTAT},
#endif
#ifdef __NR_sigaction
[__NR_sigaction - SYSCALL_TABLE_ID0] = {.ppm_sc = PPM_SC_SIGACTION},
#endif
#ifdef __NR_s390_runtime_instr
[__NR_s390_runtime_instr - SYSCALL_TABLE_ID0] = {.ppm_sc = PPM_SC_S390_RUNTIME_INSTR},
#endif
#ifdef __NR_s390_sthyi
[__NR_s390_sthyi - SYSCALL_TABLE_ID0] = {.ppm_sc = PPM_SC_S390_STHYI},
#endif
#ifdef __NR_readdir
[__NR_readdir - SYSCALL_TABLE_ID0] = {.ppm_sc = PPM_SC_READDIR},
#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_sigsuspend
[__NR_sigsuspend - SYSCALL_TABLE_ID0] = {.ppm_sc = PPM_SC_SIGSUSPEND},
#endif
};

#ifdef CONFIG_IA32_EMULATION
Expand Down Expand Up @@ -1723,6 +1759,42 @@ 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_s390_pci_mmio_write
[__NR_s390_pci_mmio_write - SYSCALL_TABLE_ID0] = {.ppm_sc = PPM_SC_S390_PCI_MMIO_WRITE},
#endif
#ifdef __NR_sigsuspend
[__NR_sigsuspend - SYSCALL_TABLE_ID0] = {.ppm_sc = PPM_SC_SIGSUSPEND},
#endif
#ifdef __NR_readdir
[__NR_readdir - SYSCALL_TABLE_ID0] = {.ppm_sc = PPM_SC_READDIR},
#endif
#ifdef __NR_sigaction
[__NR_sigaction - SYSCALL_TABLE_ID0] = {.ppm_sc = PPM_SC_SIGACTION},
#endif
#ifdef __NR_s390_runtime_instr
[__NR_s390_runtime_instr - SYSCALL_TABLE_ID0] = {.ppm_sc = PPM_SC_S390_RUNTIME_INSTR},
#endif
#ifdef __NR_timerfd
[__NR_timerfd - SYSCALL_TABLE_ID0] = {.ppm_sc = PPM_SC_TIMERFD},
#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_sigreturn
[__NR_sigreturn - SYSCALL_TABLE_ID0] = {.ppm_sc = PPM_SC_SIGRETURN},
#endif
#ifdef __NR_s390_guarded_storage
[__NR_s390_guarded_storage - SYSCALL_TABLE_ID0] = {.ppm_sc = PPM_SC_S390_GUARDED_STORAGE},
#endif
#ifdef __NR_idle
[__NR_idle - SYSCALL_TABLE_ID0] = {.ppm_sc = PPM_SC_IDLE},
#endif
#ifdef __NR_cachestat
[__NR_cachestat - SYSCALL_TABLE_ID0] = {.ppm_sc = PPM_SC_CACHESTAT},
#endif
#ifdef __NR_s390_sthyi
[__NR_s390_sthyi - SYSCALL_TABLE_ID0] = {.ppm_sc = PPM_SC_S390_STHYI},
#endif
};

#endif /* CONFIG_IA32_EMULATION */
Loading

0 comments on commit 0737f12

Please sign in to comment.