From f2b29ffec5166405d8b7833c16eaf261d2b7ccab Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Sat, 9 Feb 2013 22:19:34 +0100 Subject: [PATCH] perfmonctl.2: Briefly document PFM_GET_FEATURES, PFM_DEBUG, PFM_GET_PMC_RESET_VAL Signed-off-by: Michael Kerrisk --- man2/perfmonctl.2 | 27 +++++++++++++++++++++++---- 1 file changed, 23 insertions(+), 4 deletions(-) diff --git a/man2/perfmonctl.2 b/man2/perfmonctl.2 index b3b087a54..19a7264f8 100644 --- a/man2/perfmonctl.2 +++ b/man2/perfmonctl.2 @@ -1,4 +1,5 @@ .\" Copyright (C) 2006 Red Hat, Inc. All Rights Reserved. +.\" and Copyright (C) 2013 Michael Kerrisk .\" Written by Ivana Varekova .\" .\" Permission is granted to make and distribute verbatim copies of this @@ -143,10 +144,28 @@ Detach the context from a thread. .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() -.\" PFM_GET_PMC_RESET_VAL - pfm_get_pmc_reset() +.TP +.B PFM_GET_FEATURES +.\" pfm_get_features() +.nf +.BI "perfmonctl(int " fd ", PFM_GET_FEARURES, 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