#include <stdint.h>
#include <sys/types.h>
#include "perfmon_v2.h"
Go to the source code of this file.
|
os_err_t | pfm_create (int flags, pfarg_sinfo_t *sif,...) |
|
os_err_t | pfm_write (int fd, int flags, int type, void *reg, size_t n) |
|
os_err_t | pfm_read (int fd, int flags, int type, void *reg, size_t n) |
|
os_err_t | pfm_set_state (int fd, int flags, int state) |
|
os_err_t | pfm_create_sets (int fd, int flags, pfarg_set_desc_t *s, size_t sz) |
|
os_err_t | pfm_getinfo_sets (int fd, int flags, pfarg_set_info_t *s, size_t sz) |
|
os_err_t | pfm_attach (int fd, int flags, int target) |
|
#define PFM_BPL ( sizeof( uint64_t ) << 3 ) |
#define PFM_FL_NOTIFY_BLOCK 0x01 /* block task on user notifications */ |
#define PFM_FL_OVFL_NO_MSG 0x80 /* no overflow msgs */ |
#define PFM_FL_SMPL_FMT 0x04 /* session uses sampling format */ |
#define PFM_FL_SYSTEM_WIDE 0x02 /* create a system wide context */ |
#define PFM_MSG_END 2 /* thread to which context was attached ended */ |
#define PFM_MSG_OVFL 1 /* an overflow happened */ |
#define PFM_NO_TARGET -1 /* no target, detach */ |
#define PFM_REGFL_NO_EMUL64 0x4 /* PMC: no 64-bit emulation */ |
#define PFM_REGFL_OVFL_NOTIFY 0x1 /* PMD: send notification on event */ |
#define PFM_REGFL_RANDOM 0x2 /* PMD: randomize value after event */ |
#define PFM_RW_PMD 1 /* simplified PMD (pfarg_pmr_t) */ |
#define PFM_RW_PMD_ATTR 3 /* extended PMD (pfarg_pmd_attr) */ |
#define PFM_SETFL_OVFL_SWITCH 0x01 /* enable switch on overflow (subject to individual switch_cnt */ |
#define PFM_SETFL_TIME_SWITCH 0x02 /* switch set on timeout */ |
#define PFM_ST_RESTART 0x3 /* resume after notify */ |
#define PFM_ST_START 0x1 /* start monitoring */ |
#define PFM_ST_STOP 0x2 /* stop monitoring */ |
#define PFM_VERSION_MAJOR |
( |
|
x | ) |
( ( ( x ) >> 16 ) & 0xffff ) |
#define PFM_VERSION_MINOR |
( |
|
x | ) |
( (x)&0xffff ) |
os_err_t pfm_attach |
( |
int |
fd, |
|
|
int |
flags, |
|
|
int |
target |
|
) |
| |
os_err_t pfm_read |
( |
int |
fd, |
|
|
int |
flags, |
|
|
int |
type, |
|
|
void * |
reg, |
|
|
size_t |
n |
|
) |
| |
os_err_t pfm_set_state |
( |
int |
fd, |
|
|
int |
flags, |
|
|
int |
state |
|
) |
| |
os_err_t pfm_write |
( |
int |
fd, |
|
|
int |
flags, |
|
|
int |
type, |
|
|
void * |
reg, |
|
|
size_t |
n |
|
) |
| |