PAPI 7.1.0.0
Loading...
Searching...
No Matches
perfmon_compat.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  pfarg_context_t
 
struct  pfarg_reg_t
 
struct  pfarg_dbreg_t
 
struct  pfarg_features_t
 
struct  pfm_ovfl_msg_t
 
struct  pfm_end_msg_t
 
struct  pfm_gen_msg_t
 
union  pfm_msg_t
 

Macros

#define PFM_WRITE_PMCS   0x01
 
#define PFM_WRITE_PMDS   0x02
 
#define PFM_READ_PMDS   0x03
 
#define PFM_STOP   0x04
 
#define PFM_START   0x05
 
#define PFM_ENABLE   0x06 /* obsolete */
 
#define PFM_DISABLE   0x07 /* obsolete */
 
#define PFM_CREATE_CONTEXT   0x08
 
#define PFM_DESTROY_CONTEXT   0x09 /* obsolete use close() */
 
#define PFM_RESTART   0x0a
 
#define PFM_PROTECT_CONTEXT   0x0b /* obsolete */
 
#define PFM_GET_FEATURES   0x0c /* obsolete: use /proc/sys/kernel/perfmon */
 
#define PFM_DEBUG   0x0d /* obsolete: use /proc/sys/kernel/perfmon/debug */
 
#define PFM_UNPROTECT_CONTEXT   0x0e /* obsolete */
 
#define PFM_GET_PMC_RESET_VAL   0x0f /* obsolete: use /proc/perfmon_mappings */
 
#define PFM_LOAD_CONTEXT   0x10
 
#define PFM_UNLOAD_CONTEXT   0x11
 
#define PFM_WRITE_IBRS   0x20 /* obsolete: use PFM_WRITE_PMCS[256-263] */
 
#define PFM_WRITE_DBRS   0x21 /* obsolete: use PFM_WRITE_PMCS[264-271] */
 
#define PFM_REG_RETFL_NOTAVAIL   (1<<31) /* set if register is implemented but not available */
 
#define PFM_REG_RETFL_EINVAL   (1<<30) /* set if register entry is invalid */
 
#define PFM_REG_RETFL_MASK   (PFM_REG_RETFL_NOTAVAIL|PFM_REG_RETFL_EINVAL)
 
#define PFM_REG_HAS_ERROR(flag)   (((flag) & PFM_REG_RETFL_MASK) != 0)
 

Typedefs

typedef unsigned char pfm_uuid_t[16]
 

Functions

int perfmonctl (int fd, int cmd, void *arg, int narg)
 

Macro Definition Documentation

◆ PFM_CREATE_CONTEXT

#define PFM_CREATE_CONTEXT   0x08

Definition at line 36 of file perfmon_compat.h.

◆ PFM_DEBUG

#define PFM_DEBUG   0x0d /* obsolete: use /proc/sys/kernel/perfmon/debug */

Definition at line 41 of file perfmon_compat.h.

◆ PFM_DESTROY_CONTEXT

#define PFM_DESTROY_CONTEXT   0x09 /* obsolete use close() */

Definition at line 37 of file perfmon_compat.h.

◆ PFM_DISABLE

#define PFM_DISABLE   0x07 /* obsolete */

Definition at line 35 of file perfmon_compat.h.

◆ PFM_ENABLE

#define PFM_ENABLE   0x06 /* obsolete */

Definition at line 34 of file perfmon_compat.h.

◆ PFM_GET_FEATURES

#define PFM_GET_FEATURES   0x0c /* obsolete: use /proc/sys/kernel/perfmon */

Definition at line 40 of file perfmon_compat.h.

◆ PFM_GET_PMC_RESET_VAL

#define PFM_GET_PMC_RESET_VAL   0x0f /* obsolete: use /proc/perfmon_mappings */

Definition at line 43 of file perfmon_compat.h.

◆ PFM_LOAD_CONTEXT

#define PFM_LOAD_CONTEXT   0x10

Definition at line 44 of file perfmon_compat.h.

◆ PFM_PROTECT_CONTEXT

#define PFM_PROTECT_CONTEXT   0x0b /* obsolete */

Definition at line 39 of file perfmon_compat.h.

◆ PFM_READ_PMDS

#define PFM_READ_PMDS   0x03

Definition at line 31 of file perfmon_compat.h.

◆ PFM_REG_HAS_ERROR

#define PFM_REG_HAS_ERROR (   flag)    (((flag) & PFM_REG_RETFL_MASK) != 0)

Definition at line 153 of file perfmon_compat.h.

◆ PFM_REG_RETFL_EINVAL

#define PFM_REG_RETFL_EINVAL   (1<<30) /* set if register entry is invalid */

Definition at line 150 of file perfmon_compat.h.

◆ PFM_REG_RETFL_MASK

#define PFM_REG_RETFL_MASK   (PFM_REG_RETFL_NOTAVAIL|PFM_REG_RETFL_EINVAL)

Definition at line 151 of file perfmon_compat.h.

◆ PFM_REG_RETFL_NOTAVAIL

#define PFM_REG_RETFL_NOTAVAIL   (1<<31) /* set if register is implemented but not available */

Definition at line 149 of file perfmon_compat.h.

◆ PFM_RESTART

#define PFM_RESTART   0x0a

Definition at line 38 of file perfmon_compat.h.

◆ PFM_START

#define PFM_START   0x05

Definition at line 33 of file perfmon_compat.h.

◆ PFM_STOP

#define PFM_STOP   0x04

Definition at line 32 of file perfmon_compat.h.

◆ PFM_UNLOAD_CONTEXT

#define PFM_UNLOAD_CONTEXT   0x11

Definition at line 45 of file perfmon_compat.h.

◆ PFM_UNPROTECT_CONTEXT

#define PFM_UNPROTECT_CONTEXT   0x0e /* obsolete */

Definition at line 42 of file perfmon_compat.h.

◆ PFM_WRITE_DBRS

#define PFM_WRITE_DBRS   0x21 /* obsolete: use PFM_WRITE_PMCS[264-271] */

Definition at line 51 of file perfmon_compat.h.

◆ PFM_WRITE_IBRS

#define PFM_WRITE_IBRS   0x20 /* obsolete: use PFM_WRITE_PMCS[256-263] */

Definition at line 50 of file perfmon_compat.h.

◆ PFM_WRITE_PMCS

#define PFM_WRITE_PMCS   0x01

Definition at line 29 of file perfmon_compat.h.

◆ PFM_WRITE_PMDS

#define PFM_WRITE_PMDS   0x02

Definition at line 30 of file perfmon_compat.h.

Typedef Documentation

◆ pfm_uuid_t

typedef unsigned char pfm_uuid_t[16]

Definition at line 24 of file perfmon_compat.h.

Function Documentation

◆ perfmonctl()

int perfmonctl ( int  fd,
int  cmd,
void *  arg,
int  narg 
)
Here is the caller graph for this function: