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
FedeDP authored and poiana committed Aug 1, 2023
1 parent 2f9232f commit 8d4be0b
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 3 deletions.
1 change: 1 addition & 0 deletions docs/report.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
| bind | 🟢 |
| bpf | 🟢 |
| brk | 🟢 |
| cachestat | 🟡 |
| capget | 🟡 |
| capset | 🟢 |
| chdir | 🟢 |
Expand Down
3 changes: 2 additions & 1 deletion driver/ppm_events_public.h
Original file line number Diff line number Diff line change
Expand Up @@ -1833,7 +1833,8 @@ enum extra_event_prog_code
PPM_SC_X(IDLE, 408) \
PPM_SC_X(S390_RUNTIME_INSTR, 409) \
PPM_SC_X(SIGRETURN, 410) \
PPM_SC_X(S390_GUARDED_STORAGE, 411)
PPM_SC_X(S390_GUARDED_STORAGE, 411) \
PPM_SC_X(CACHESTAT, 412)

typedef enum {
#define PPM_SC_X(name, value) PPM_SC_##name = (value),
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
3 changes: 3 additions & 0 deletions driver/syscall_compat_s390x.h
Original file line number Diff line number Diff line change
Expand Up @@ -1100,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
3 changes: 3 additions & 0 deletions driver/syscall_table.c
Original file line number Diff line number Diff line change
Expand Up @@ -908,4 +908,7 @@ const struct syscall_evt_pair g_syscall_table[SYSCALL_TABLE_SIZE] = {
#ifdef __NR_sigsuspend
[__NR_sigsuspend - SYSCALL_TABLE_ID0] = {.ppm_sc = PPM_SC_SIGSUSPEND},
#endif
#ifdef __NR_cachestat
[__NR_cachestat - SYSCALL_TABLE_ID0] = {.ppm_sc = PPM_SC_CACHESTAT},
#endif
};
4 changes: 2 additions & 2 deletions userspace/libscap/linux/scap_ppm_sc.c

Large diffs are not rendered by default.

0 comments on commit 8d4be0b

Please sign in to comment.