1LIBPFM(3)                  Linux Programmer's Manual                 LIBPFM(3)
2
3
4

NAME

6       pfm_self_start,  pfm_self_stop  - start and stop monitoring for a self-
7       monitoring process
8

SYNOPSIS

10       #include <perfmon/pfmlib.h>
11
12       int pfm_self_start(int fd);
13       int pfm_self_stop(int fd);
14
15

DESCRIPTION

17       These two functions can only  be  used  by  self-monitoring  processes.
18       They have no effect on system wide sessions.
19
20       The  pfm_self_start  function  activates  monitoring.  This function is
21       equivalent to calling perfmonctl() with the PFM_START command  and  may
22       end  up  calling  it.  On Linux/ia64 it is implemented as a lightweight
23       call to set the psr.up bit.
24
25       The pfm_self_stop function  deactivates  monitoring  This  function  is
26       equivalent  to  calling  perfmonctl() with the PFM_STOP command and may
27       end up calling it.On Linux/ia64 it is implemented as a lightweight call
28       to clear the psr.up bit.
29
30

RETURN

32       The  function  returns 0 if successful, otherwise -1 and the error code
33       is set in errno.
34

ERRORS

36       0 is always returned on Linux/ia64.
37

AUTHOR

39       Stephane Eranian <eranian@hpl.hp.com>
40
41                                November, 2003                       LIBPFM(3)
Impressum