-
Notifications
You must be signed in to change notification settings - Fork 241
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
trinity: Add support for runtime_instr svc
This patch adds support for the s390 specific system call runtime_instr() for 31 and 64 bit. Signed-off-by: Thomas Richter <tmricht@linux.vnet.ibm.com>
- Loading branch information
1 parent
b9a7bd0
commit 617b496
Showing
5 changed files
with
29 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
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,25 @@ | ||
/* | ||
* int runtime_instr(int on_off, int sig_nr) | ||
*/ | ||
|
||
#include "sanitise.h" | ||
|
||
#define S390_RUNTIME_INSTR_START 0x1 | ||
#define S390_RUNTIME_INSTR_STOP 0x2 | ||
|
||
static unsigned long syscall_runtime_instr_arg1[] = { | ||
0, S390_RUNTIME_INSTR_START, S390_RUNTIME_INSTR_STOP, 3 | ||
}; | ||
|
||
struct syscallentry syscall_runtime_instr = { | ||
.name = "runtime_instr", | ||
.num_args = 2, | ||
.arg1name = "on_off", | ||
.arg1type = ARG_LIST, | ||
.arg1list = ARGLIST(syscall_runtime_instr_arg1), | ||
.arg2name = "sig_nr", | ||
.arg2type = ARG_RANGE, | ||
.low2range = 0, | ||
.hi2range = 128, | ||
.rettype = RET_ZERO_SUCCESS | ||
}; |
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