-
Notifications
You must be signed in to change notification settings - Fork 571
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
i#6406: Import syscall_linux header file based on the target architec…
…ture. (#6407) raw2trace_t::is_maybe_blocking_syscall() depends on the definitions of SYS_xxx to determine if the syscall may be blocking or not. core/unix/include/syscall.h imports syscall_linux_xxx header file based on the host architecture. For cross platform support, the syscall_linux_xxx header file should be imported based on the target architecture. Fixes: i6406
- Loading branch information
Showing
3 changed files
with
76 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#ifndef _SYSCALL_TARGET_H_ | ||
#define _SYSCALL_TARGET_H_ 1 | ||
|
||
/* Do not include this on MacOS as you'll get the wrong numbers! */ | ||
#ifndef LINUX | ||
# error Only use this file on Linux | ||
#endif | ||
|
||
#ifdef X86 | ||
# include "../../core/unix/include/syscall_linux_x86.h" | ||
#elif defined(ARM) | ||
# include "../../core/unix/include/syscall_linux_arm.h" | ||
#elif defined(AARCH64) | ||
# include "../../core/unix/include/syscall_linux_uapi.h" | ||
#elif defined(RISCV64) | ||
# include "../../core/unix/include/syscall_linux_riscv64.h" | ||
#else | ||
# error Unknown platform. | ||
#endif | ||
|
||
#endif /* _SYSCALL_TARGET_H_ */ |