public inbox for linux-man@vger.kernel.org
 help / color / mirror / Atom feed
From: "Michael Kerrisk (man-pages)" <mtk.manpages@gmail.com>
To: "Alejandro Colomar (man-pages)" <alx.manpages@gmail.com>
Cc: mtk.manpages@gmail.com, linux-man <linux-man@vger.kernel.org>
Subject: Re: perfmonctl.2: Is it up to date?
Date: Mon, 10 May 2021 06:09:54 +1200	[thread overview]
Message-ID: <be24029d-ebe8-06c5-2f94-a3b50b3052a0@gmail.com> (raw)
In-Reply-To: <fdec43d3-bb0e-cbcc-8d65-db26222f6a0a@gmail.com>

Hello Alex,

On 4/23/21 10:31 PM, Alejandro Colomar (man-pages) wrote:
> Hi Michael,
> 
> I haven't found any of the constants (PFM_*) used by this function in 
> glibc.  Also not in the kernel, although in the kernel I found other 
> PFM_* constants different from the ones in the manual page.
> 
> I checked that this page hasn't received any patches in a very long time 
> (except for "Various pages" patches), so I suspect it may be out of date.
> 
> Also, does <perfmon.h> really exist?  I couldn't find it either.

It's certainly not up to date! In fact, this system call was removed
in Linux 5.10. I have applied the patch below.

Cheers,

Michael

diff --git a/man2/perfmonctl.2 b/man2/perfmonctl.2
index b376126a1..319712e6d 100644
--- a/man2/perfmonctl.2
+++ b/man2/perfmonctl.2
@@ -196,12 +196,18 @@ On error, \-1 is returned and
 is set to indicate the error.
 .SH VERSIONS
 .BR perfmonctl ()
-is available since Linux 2.4.
+was added in Linux 2.4;
+.\" commit ecf5b72d5f66af843f189dfe9ce31598c3e48ad7
+it was removed in Linux 5.10.
 .SH CONFORMING TO
 .BR perfmonctl ()
 is Linux-specific and is available only on the IA-64 architecture.
 .SH NOTES
-Glibc does not provide a wrapper for this system call; call it using
+This system call was broken for many years,
+and ultimately removed in Linux 5.10.
+.PP
+Glibc does not provide a wrapper for this system call;
+on kernels where it exists, call it using
 .BR syscall (2).
 .SH SEE ALSO
 .BR gprof (1)


-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/

      reply	other threads:[~2021-05-09 18:10 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-23 10:31 perfmonctl.2: Is it up to date? Alejandro Colomar (man-pages)
2021-05-09 18:09 ` Michael Kerrisk (man-pages) [this message]

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=be24029d-ebe8-06c5-2f94-a3b50b3052a0@gmail.com \
    --to=mtk.manpages@gmail.com \
    --cc=alx.manpages@gmail.com \
    --cc=linux-man@vger.kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox