Manual Pages for Linux CentOS command on man perfmonctl
MyWebUniversity

Manual Pages for Linux CentOS command on man perfmonctl

PERFMONCTL(2) Linux Programmer's Manual PERFMONCTL(2)

NAME

perfmonctl - interface to IA-64 performance monitoring unit SYNOPSIS

#include

#include long perfmonctl(int fd, int cmd, void *arg, int narg); Note: There is no glibc wrapper for this system call; see NOTES. DESCRIPTION

The IA-64-specific perfmonctl() system call provides an interface to the PMU (performance monitoring unit). The PMU consists of PMD (per‐ formance monitoring data) registers and PMC (performance monitoring control) registers, which gather hardware statistics. perfmonctl() applies the operation cmd to the input arguments specified by arg. The number of arguments is defined by narg. The fd argument specifies the perfmon context to operate on. Supported values for cmd are: PFMCREATECONTEXT perfmonctl(int fd, PFMCREATECONTEXT, pfargcontextt *ctxt, 1); Set up a context. The fd parameter is ignored. A new perfmon context is created as specified in ctxt and its file descriptor is returned in

ctxt->ctxfd. The file descriptor can be used in subsequent calls to perf‐ monctl() and can be used to read event notifications (type pfmmsgt) using read(2). The file descriptor is pollable using select(2), poll(2), and epoll(7). The context can be destroyed by calling close(2) on the file descriptor. PFMWRITEPMCS perfmonctl(int fd, PFMWRITEPMCS, pfargregt *pmcs, n); Set PMC registers. PFMWRITEPMDS perfmonctl(int fd, PFMWRITEPMDS, pfargregt *pmds, n); Set PMD registers. PFMREADPMDS perfmonctl(int fd, PFMREADPMDS, pfargregt *pmds, n); Read PMD registers. PFMSTART perfmonctl(int fd, PFMSTART, NULL, 0); Start monitoring. PFMSTOP perfmonctl(int fd, PFMSTOP, NULL, 0); Stop monitoring. PFMLOADCONTEXT perfmonctl(int fd, PFMLOADCONTEXT, pfargloadt *largs, 1); Attach the context to a thread. PFMUNLOADCONTEXT perfmonctl(int fd, PFMUNLOADCONTEXT, NULL, 0); Detach the context from a thread. PFMRESTART perfmonctl(int fd, PFMRESTART, NULL, 0); Restart monitoring after receiving an overflow notification. PFMGETFEATURES perfmonctl(int fd, PFMGETFEARURES, pfargfeaturest *arg, 1); PFMDEBUG perfmonctl(int fd, PFMDEBUG, val, 0); If val is nonzero, enable debugging mode, otherwise disable. PFMGETPMCRESETVAL perfmonctl(int fd, PFMGETPMCRESETVAL, pfargregt * req, n); Reset PMC registers to default values. RETURN VALUE performctl() returns zero when the operation is successful. On error,

-1 is returned and errno is set to indicate the cause of the error. VERSIONS perfmonctl() is available since Linux 2.4. CONFORMING TO

perfmonctl() is Linux specific and is available only on the IA-64 architecture. NOTES Glibc does not provide a wrapper for this system call; call it using syscall(2). SEE ALSO gprof(1) The perfmon2 interface specification COLOPHON

This page is part of release 3.53 of the Linux man-pages project. A description of the project, and information about reporting bugs, can

be found at http://www.kernel.org/doc/man-pages/.

Linux 2013-02-13 PERFMONCTL(2)




Contact us      |      About us      |      Term of use      |       Copyright © 2000-2019 MyWebUniversity.com ™