All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alejandro Colomar <alx.manpages@gmail.com>
To: mtk.manpages@gmail.com
Cc: Alejandro Colomar <alx.manpages@gmail.com>, linux-man@vger.kernel.org
Subject: [PATCH 5/8] s390_runtime_instr.2: Use syscall(SYS_...); for system calls without a wrapper
Date: Sat, 15 May 2021 20:20:25 +0200	[thread overview]
Message-ID: <20210515182027.186403-5-alx.manpages@gmail.com> (raw)
In-Reply-To: <20210515182027.186403-1-alx.manpages@gmail.com>

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
---
 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 <asm/runtime_instr.h>
+.BR "#include <asm/runtime_instr.h>" " /* Definition of " S390_* " constants */"
+.BR "#include <sys/syscall.h>" "       /* Definition of " SYS_* " constants */"
+.B #include <unistd.h>
 .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
-- 
2.31.1


  parent reply	other threads:[~2021-05-15 18:20 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-15 18:20 [PATCH 1/8] rename.2: ffix Alejandro Colomar
2021-05-15 18:20 ` [PATCH 2/8] rt_sigqueueinfo.2: Use syscall(SYS_...); for system calls without a wrapper Alejandro Colomar
2021-05-15 18:20 ` [PATCH 3/8] s390_guarded_storage.2: " Alejandro Colomar
2021-05-15 18:20 ` [PATCH 4/8] s390_pci_mmio_write.2: Use syscall(SYS_...); for system calls without a wrapper; fix includes too Alejandro Colomar
2021-05-15 18:20 ` Alejandro Colomar [this message]
2021-05-15 18:20 ` [PATCH 6/8] s390_sthyi.2: Replace numeric constant by its name (macro) Alejandro Colomar
2021-05-15 18:20 ` [PATCH 7/8] s390_sthyi.2: Use syscall(SYS_...); for system calls without a wrapper Alejandro Colomar
2021-05-15 18:20 ` [PATCH 8/8] sched_setattr.2: " Alejandro Colomar
2021-05-17  4:55 ` [PATCH 1/8] rename.2: ffix Michael Kerrisk (man-pages)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210515182027.186403-5-alx.manpages@gmail.com \
    --to=alx.manpages@gmail.com \
    --cc=linux-man@vger.kernel.org \
    --cc=mtk.manpages@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.