diff options
| author | Alejandro Colomar <alx@kernel.org> | 2024-05-30 17:30:34 +0200 |
|---|---|---|
| committer | Alejandro Colomar <alx@kernel.org> | 2024-05-31 17:09:32 +0200 |
| commit | e0db1fc6cff12960097ca34577649c7cead46b12 (patch) | |
| tree | bb173cd08fdc45511e98d363208c15161a1b1e3e | |
| parent | 65ee133dc03a262085173a3bb549c16de18180c8 (diff) | |
| download | man-pages-e0db1fc6cff12960097ca34577649c7cead46b12.tar.gz | |
PR_TASK_PERF_EVENTS_DISABLE.2const: Tweak after split
Signed-off-by: Alejandro Colomar <alx@kernel.org>
| -rw-r--r-- | man/man2const/PR_TASK_PERF_EVENTS_DISABLE.2const | 39 |
1 files changed, 18 insertions, 21 deletions
diff --git a/man/man2const/PR_TASK_PERF_EVENTS_DISABLE.2const b/man/man2const/PR_TASK_PERF_EVENTS_DISABLE.2const index 1b618e4fba..545018b835 100644 --- a/man/man2const/PR_TASK_PERF_EVENTS_DISABLE.2const +++ b/man/man2const/PR_TASK_PERF_EVENTS_DISABLE.2const @@ -1,10 +1,8 @@ .\" Copyright 2012, 2013, 2015, Michael Kerrisk <mtk.manpages@gmail.com> +.\" Copyright 2024, Alejandro Colomar <alx@kernel.org> .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.\" 2012-04-25 Michael Kerrisk, Document PR_TASK_PERF_EVENTS_DISABLE and -.\" PR_TASK_PERF_EVENTS_ENABLE -.\" .TH PR_TASK_PERF_EVENTS_DISABLE 2 (date) "Linux man-pages (unreleased)" .SH NAME PR_TASK_PERF_EVENTS_DISABLE, @@ -18,36 +16,22 @@ Standard C library .nf .B #include <sys/prctl.h> .P -.BI "int prctl(int " op ", ...);" +.B int prctl(PR_TASK_PERF_EVENTS_DISABLE, 0L, 0L, 0L, 0L); +.B int prctl(PR_TASK_PERF_EVENTS_ENABLE, 0L, 0L, 0L, 0L); .fi .SH DESCRIPTION .TP -.BR PR_TASK_PERF_EVENTS_DISABLE " (since Linux 2.6.31)" +.B PR_TASK_PERF_EVENTS_DISABLE Disable all performance counters attached to the calling process, regardless of whether the counters were created by this process or another process. Performance counters created by the calling process for other processes are unaffected. -For more information on performance counters, see the Linux kernel source file -.IR tools/perf/design.txt . -.IP -Originally called -.BR PR_TASK_PERF_COUNTERS_DISABLE ; -.\" commit 1d1c7ddbfab358445a542715551301b7fc363e28 -renamed (retaining the same numerical value) -in Linux 2.6.32. .TP -.BR PR_TASK_PERF_EVENTS_ENABLE " (since Linux 2.6.31)" +.B PR_TASK_PERF_EVENTS_ENABLE The converse of .BR PR_TASK_PERF_EVENTS_DISABLE ; enable performance counters attached to the calling process. -.IP -Originally called -.BR PR_TASK_PERF_COUNTERS_ENABLE ; -.\" commit 1d1c7ddbfab358445a542715551301b7fc363e28 -renamed -.\" commit cdd6c482c9ff9c55475ee7392ec8f672eddb7be6 -in Linux 2.6.32. .SH RETURN VALUE On success, 0 is returned. @@ -57,5 +41,18 @@ is set to indicate the error. .SH STANDARDS Linux. .SH HISTORY +Linux 2.6.31. +.P +Originally called +.B PR_TASK_PERF_COUNTERS_DISABLE +and +.BR PR_TASK_PERF_COUNTERS_ENABLE ; +.\" commit 1d1c7ddbfab358445a542715551301b7fc363e28 +renamed (retaining the same numerical value) +.\" commit cdd6c482c9ff9c55475ee7392ec8f672eddb7be6 +in Linux 2.6.32. .SH SEE ALSO .BR prctl (2) +.P +For more information on performance counters, see the Linux kernel source file +.IR tools/\:perf/\:design.txt . |
