mirror of https://github.com/mkerrisk/man-pages
perfmonctl.2: Minor reorganization
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
0609db2aa2
commit
3dfb8d01cd
|
@ -24,7 +24,7 @@
|
|||
.\"
|
||||
.TH PERFMONCTL 2 2013-02-10 Linux "Linux Programmer's Manual"
|
||||
.SH NAME
|
||||
perfmonctl \- interface to IA-64 performance monitoring unit
|
||||
perfmonctl \- interface to IA-64 performance monitoring unit
|
||||
.SH SYNOPSIS
|
||||
.nf
|
||||
.B #include <syscall.h>
|
||||
|
@ -40,7 +40,7 @@ The IA-64-specific
|
|||
system call provides an interface to the
|
||||
PMU (performance monitoring unit).
|
||||
The PMU consists of PMD (performance monitoring data) registers and
|
||||
PMC (performance monitoring control) registers,
|
||||
PMC (performance monitoring control) registers,
|
||||
which gather hardware statistics.
|
||||
|
||||
.BR perfmonctl ()
|
||||
|
@ -58,11 +58,11 @@ Supported values for
|
|||
are:
|
||||
|
||||
.TP
|
||||
.B PFM_CREATE_CONTEXT
|
||||
set up a context
|
||||
.B PFM_CREATE_CONTEXT
|
||||
.nf
|
||||
.BI "perfmonctl(int " fd ", PFM_CREATE_CONTEXT, pfarg_context_t *" ctxt ", 1);
|
||||
.fi
|
||||
Set up a context.
|
||||
|
||||
The
|
||||
.I fd
|
||||
|
@ -89,60 +89,60 @@ on the file descriptor.
|
|||
.TP
|
||||
.B PFM_WRITE_PMCS
|
||||
.\" pfm_write_pmcs()
|
||||
set PMC registers
|
||||
.nf
|
||||
.BI "perfmonctl(int " fd ", PFM_WRITE_PMCS, pfarg_reg_t *" pmcs ", n);
|
||||
.fi
|
||||
.TP
|
||||
Set PMC registers.
|
||||
.TP
|
||||
.B PFM_WRITE_PMDS
|
||||
.\" pfm_write_pmds()
|
||||
set PMD registers
|
||||
.nf
|
||||
.BI "perfmonctl(int " fd ", PFM_WRITE_PMDS, pfarg_reg_t *" pmds ", n);
|
||||
.fi
|
||||
.\" pfm_write_pmds()
|
||||
Set PMD registers.
|
||||
.TP
|
||||
.B PFM_READ_PMDS
|
||||
.\" pfm_read_pmds()
|
||||
read PMD registers
|
||||
.nf
|
||||
.BI "perfmonctl(int " fd ", PFM_READ_PMDS, pfarg_reg_t *" pmds ", n);
|
||||
.fi
|
||||
Read PMD registers.
|
||||
.TP
|
||||
.B PFM_START
|
||||
.\" pfm_start()
|
||||
start monitoring
|
||||
.nf
|
||||
.\" .BI "perfmonctl(int " fd ", PFM_START, arg, 1);
|
||||
.BI "perfmonctl(int " fd ", PFM_START, NULL, 0);
|
||||
.fi
|
||||
Start monitoring.
|
||||
.TP
|
||||
.B PFM_STOP
|
||||
.B PFM_STOP
|
||||
.\" pfm_stop()
|
||||
stop monitoring
|
||||
.nf
|
||||
.BI "perfmonctl(int " fd ", PFM_START, NULL, 0);
|
||||
.fi
|
||||
Stop monitoring.
|
||||
.TP
|
||||
.B PFM_LOAD_CONTEXT
|
||||
.\" pfm_context_load()
|
||||
attach the context to a thread
|
||||
.nf
|
||||
.BI "perfmonctl(int " fd ", PFM_LOAD_CONTEXT, pfarg_load_t *" largs ", 1);
|
||||
.fi
|
||||
Attach the context to a thread.
|
||||
.TP
|
||||
.B PFM_UNLOAD_CONTEXT
|
||||
.B PFM_UNLOAD_CONTEXT
|
||||
.\" pfm_context_unload()
|
||||
detach the context from a thread
|
||||
.nf
|
||||
.BI "perfmonctl(int " fd ", PFM_UNLOAD_CONTEXT, NULL, 0);
|
||||
.fi
|
||||
Detach the context from a thread.
|
||||
.TP
|
||||
.B PFM_RESTART
|
||||
.B PFM_RESTART
|
||||
.\" pfm_restart()
|
||||
restart monitoring after receiving an overflow notification
|
||||
.nf
|
||||
.BI "perfmonctl(int " fd ", PFM_RESTART, NULL, 0);
|
||||
.fi
|
||||
Restart monitoring after receiving an overflow notification.
|
||||
.\"
|
||||
.\" PFM_GET_FEATURES - pfm_get_features()
|
||||
.\" PFM_DEBUG - pfm_debug()
|
||||
|
@ -150,21 +150,21 @@ restart monitoring after receiving an overflow notification
|
|||
.\"
|
||||
.\"
|
||||
.\" .TP
|
||||
.\" .B PFM_CREATE_EVTSETS
|
||||
.\"
|
||||
.\" .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
|
||||
.\" .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
|
||||
.\" .B PFM_GETINFO_EVTSETS
|
||||
.\" get information about event sets
|
||||
.\" .nf
|
||||
.\" .BI "perfmonctl(int " fd ", PFM_GETINFO_EVTSETS, pfarg_setinfo_t *info, n);
|
||||
.\" .fi
|
||||
|
|
Loading…
Reference in New Issue