From cca4e32eb3b71a1220e94058272deede9489a41b Mon Sep 17 00:00:00 2001 From: Alejandro Colomar Date: Sat, 15 May 2021 20:20:25 +0200 Subject: [PATCH] s390_runtime_instr.2: Use syscall(SYS_...); for system calls without a wrapper Signed-off-by: Alejandro Colomar Signed-off-by: Michael Kerrisk --- man2/s390_runtime_instr.2 | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/man2/s390_runtime_instr.2 b/man2/s390_runtime_instr.2 index 2ec6e7d25..0685fde6c 100644 --- a/man2/s390_runtime_instr.2 +++ b/man2/s390_runtime_instr.2 @@ -27,13 +27,18 @@ s390_runtime_instr \- enable/disable s390 CPU run-time instrumentation .SH SYNOPSIS .nf -.B #include +.BR "#include " " /* Definition of " S390_* " constants */" +.BR "#include " " /* Definition of " SYS_* " constants */" +.B #include .PP -.BI "int s390_runtime_instr(int " command ", int " signum ");" +.BI "int syscall(SYS_s390_runtime_instr, int " command ", int " signum ); .fi .PP .IR Note : -There is no glibc wrapper for this system call; see NOTES. +glibc provides no wrapper for +.BR s390_runtime_instr (2), +necessitating the use of +.BR syscall (2). .SH DESCRIPTION The .BR s390_runtime_instr () @@ -97,9 +102,6 @@ This Linux-specific system call is available only on the s390 architecture. The run-time instrumentation facility is available beginning with System z EC12. .SH NOTES -Glibc does not provide a wrapper for this system call; call it using -.BR syscall (2) -.PP The .I asm/runtime_instr.h header file is available