text
stringlengths
0
234
.bi "perfmonctl(int " fd ", pfm_get_features, pfarg_features_t *" arg ", 1);"
.fi
.tp
.b pfm_debug
.\" pfm_debug()
.nf
.bi "perfmonctl(int " fd ", pfm_debug, " val ", 0);"
.fi
if
.i val
is nonzero, enable debugging mode, otherwise disable.
.tp
.b pfm_get_pmc_reset_val
.\" pfm_get_pmc_reset()
.nf
.bi "perfmonctl(int " fd ", pfm_get_pmc_reset_val, pfarg_reg_t *" req ", n);"
.fi
reset pmc registers to default values.
.\"
.\"
.\" .tp
.\" .b pfm_create_evtsets
.\"
.\" create or modify event sets
.\" .nf
.\" .bi "perfmonctl(int " fd ", pfm_create_evtsets, pfarg_setdesc_t *desc , n);
.\" .fi
.\" .tp
.\" .b pfm_delete_evtsets
.\" delete event sets
.\" .nf
.\" .bi "perfmonctl(int " fd ", pfm_delete_evtset, pfarg_setdesc_t *desc , n);
.\" .fi
.\" .tp
.\" .b pfm_getinfo_evtsets
.\" get information about event sets
.\" .nf
.\" .bi "perfmonctl(int " fd ", pfm_getinfo_evtsets, pfarg_setinfo_t *info, n);
.\" .fi
.sh return value
.br perfmonctl ()
returns zero when the operation is successful.
on error, \-1 is returned and
.i errno
is set to indicate the error.
.sh versions
.br perfmonctl ()
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
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)
.pp
the perfmon2 interface specification
.sh colophon
this page is part of release 5.13 of the linux
.i man-pages
project.
a description of the project,
information about reporting bugs,
and the latest version of this page,
can be found at
\%https://www.kernel.org/doc/man\-pages/.
.so man3/random.3
.so man2/sched_setscheduler.2
.so man2/statfs.2
.\" copyright (c) bruno haible <[email protected]>
.\"
.\" %%%license_start(gplv2+_doc_onepara)
.\" this is free documentation; you can redistribute it and/or
.\" modify it under the terms of the gnu general public license as
.\" published by the free software foundation; either version 2 of
.\" the license, or (at your option) any later version.
.\" %%%license_end
.\"
.\" references consulted:
.\" gnu glibc-2 source code and manual
.\" dinkumware c library reference http://www.dinkumware.com/
.\" opengroup's single unix specification http://www.unix-systems.org/online.html
.\" iso/iec 9899:1999
.\"
.th iswupper 3 2021-03-22 "gnu" "linux programmer's manual"
.sh name
iswupper \- test for uppercase wide character
.sh synopsis
.nf