Debian Codegraph @

upstream/debian-unstable/man2/PR_SET_TIMING.2const

raw
1 .\" Copyright, Guillem Jover <[email protected]>
2 .\" Copyright 2006-2015, Michael Kerrisk <[email protected]>
3 .\" Copyright, the authors of the Linux man-pages project
4 .\"
5 .\" SPDX-License-Identifier: Linux-man-pages-copyleft
6 .\"
7 .TH PR_SET_TIMING 2const 2026-02-08 "Linux man-pages 6.18"
8 .SH NAME
9 PR_SET_TIMING
10 \-
11 set the process timing mode
12 .SH LIBRARY
13 Standard C library
14 .RI ( libc ,\~ \-lc )
15 .SH SYNOPSIS
16 .nf
17 .BR "#include <linux/prctl.h>" " /* Definition of " PR_* " constants */"
18 .B #include <sys/prctl.h>
19 .P
20 .BI "int prctl(PR_SET_TIMING, long " mode );
21 .fi
22 .SH DESCRIPTION
23 Set whether to use (normal, traditional) statistical process timing or
24 accurate timestamp-based process timing, by passing
25 .B PR_TIMING_STATISTICAL
26 or
27 .B PR_TIMING_TIMESTAMP
28 to
29 .IR mode .
30 .SH RETURN VALUE
31 On success,
32 0 is returned.
33 On error, \-1 is returned, and
34 .I errno
35 is set to indicate the error.
36 .SH ERRORS
37 .TP
38 .B EINVAL
39 .I mode
40 is not
41 .BR PR_TIMING_STATISTICAL .
42 .SH STANDARDS
43 Linux.
44 .SH HISTORY
45 Linux 2.6.0.
46 .\" Precisely: Linux 2.6.0-test4
47 .SH CAVEATS
48 .B PR_TIMING_TIMESTAMP
49 is not currently implemented
50 (attempting to set this mode will yield the error
51 .BR EINVAL ).
52 .\" PR_TIMING_TIMESTAMP doesn't do anything in Linux 2.6.26-rc8,
53 .\" and looking at the patch history, it appears
54 .\" that it never did anything.
55 .SH SEE ALSO
56 .BR prctl (2),
57 .BR PR_GET_TIMING (2const)