Skip to content

Commit

Permalink
fix: Rename powerpc macro and include riscv64 syscall headers
Browse files Browse the repository at this point in the history
Signed-off-by: mdafsanhossain <[email protected]>
  • Loading branch information
mdafsanhossain committed Nov 29, 2023
1 parent c61230f commit 28a356d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions test/drivers/test_suites/syscall_exit_suite/execveat_x.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ TEST(SyscallExit, execveatX_correct_exit)

evt_test->disable_capture();

#if defined(__s390x__) || defined(__riscv) || defined(__powerpc__)
#if defined(__s390x__) || defined(__riscv) || defined(__powerpc64__)
/* We search for a child event. */
evt_test->assert_event_presence(ret_pid);

Expand Down Expand Up @@ -338,7 +338,7 @@ TEST(SyscallExit, execveatX_execve_exit)
evt_test->disable_capture();

/* `s390x` returns an `EXECVEAT_X` event while other architectures retun an `EXECVE_X` */
#if defined(__s390x__) || defined(__riscv) || defined(__powerpc__)
#if defined(__s390x__) || defined(__riscv) || defined(__powerpc64__)
/* We search for a child event. */
evt_test->assert_event_absence(ret_pid, PPME_SYSCALL_EXECVE_19_X);
#else
Expand Down Expand Up @@ -494,7 +494,7 @@ TEST(SyscallExit, execveatX_success_memfd)

evt_test->disable_capture();

#if defined(__s390x__) || defined(__riscv) || defined(__powerpc__)
#if defined(__s390x__) || defined(__riscv) || defined(__powerpc64__)
/* We search for a child event. */
evt_test->assert_event_presence(ret_pid);

Expand Down
4 changes: 3 additions & 1 deletion userspace/libscap/engine/gvisor/parsers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,10 @@ limitations under the License.
#include "../../driver/syscall_compat_aarch64.h"
#elif __s390x__
#include "../../driver/syscall_compat_s390x.h"
#elif __ppc64le__
#elif __powerpc64__
#include "../../driver/syscall_compat_ppc64le.h"
#elif __riscv
#include "../../driver/syscall_compat_riscv64.h"
#endif /* __x86_64__ */

#include <functional>
Expand Down

0 comments on commit 28a356d

Please sign in to comment.