#include </builds/gaudi/Gaudi/GaudiProfiling/include/GaudiProfiling/PfmCodeAnalyser.h>
|
static PfmCodeAnalyser & | Instance (const char *event0="UNHALTED_CORE_CYCLES", unsigned int cmask_v0=0, bool inv_v0=false, const char *event1="", unsigned int cmask_v1=0, bool inv_v1=false, const char *event2="", unsigned int cmask_v2=0, bool inv_v2=false, const char *event3="", unsigned int cmask_v3=0, bool inv_v3=false) |
|
|
| PfmCodeAnalyser (const char *event0, unsigned int cmask_v0, bool inv_v0, const char *event1, unsigned int cmask_v1, bool inv_v1, const char *event2, unsigned int cmask_v2, bool inv_v2, const char *event3, unsigned int cmask_v3, bool inv_v3) |
|
| PfmCodeAnalyser (PfmCodeAnalyser const &) |
|
PfmCodeAnalyser & | operator= (PfmCodeAnalyser const &) |
|
| ~PfmCodeAnalyser () |
|
Definition at line 33 of file PfmCodeAnalyser.h.
◆ PfmCodeAnalyser() [1/2]
PfmCodeAnalyser::PfmCodeAnalyser |
( |
const char * |
event0, |
|
|
unsigned int |
cmask_v0, |
|
|
bool |
inv_v0, |
|
|
const char * |
event1, |
|
|
unsigned int |
cmask_v1, |
|
|
bool |
inv_v1, |
|
|
const char * |
event2, |
|
|
unsigned int |
cmask_v2, |
|
|
bool |
inv_v2, |
|
|
const char * |
event3, |
|
|
unsigned int |
cmask_v3, |
|
|
bool |
inv_v3 |
|
) |
| |
|
private |
Definition at line 74 of file PfmCodeAnalyser.h.
78 cpuid( 1, ax, bx, cx, dx );
79 int sse4_2_mask = 1 << 20;
103 printf(
"Cannot initialize perfmon!!\nExiting...\n" );
106 while (
count < 3 ) {
112 while (
count < 10 ) {
◆ PfmCodeAnalyser() [2/2]
◆ ~PfmCodeAnalyser()
PfmCodeAnalyser::~PfmCodeAnalyser |
( |
| ) |
|
|
private |
◆ Instance()
PfmCodeAnalyser & PfmCodeAnalyser::Instance |
( |
const char * |
event0 = "UNHALTED_CORE_CYCLES" , |
|
|
unsigned int |
cmask_v0 = 0 , |
|
|
bool |
inv_v0 = false , |
|
|
const char * |
event1 = "" , |
|
|
unsigned int |
cmask_v1 = 0 , |
|
|
bool |
inv_v1 = false , |
|
|
const char * |
event2 = "" , |
|
|
unsigned int |
cmask_v2 = 0 , |
|
|
bool |
inv_v2 = false , |
|
|
const char * |
event3 = "" , |
|
|
unsigned int |
cmask_v3 = 0 , |
|
|
bool |
inv_v3 = false |
|
) |
| |
|
static |
Definition at line 123 of file PfmCodeAnalyser.h.
127 static PfmCodeAnalyser theSingleton( event0, cmask_v0, inv_v0, event1, cmask_v1, inv_v1, event2, cmask_v2, inv_v2,
128 event3, cmask_v3, inv_v3 );
◆ operator=()
◆ start()
void PfmCodeAnalyser::start |
( |
| ) |
|
Definition at line 134 of file PfmCodeAnalyser.h.
180 fprintf( stderr,
"ERROR: Context not created\naborting...\n" );
184 fprintf( stderr,
"ERROR: Could not write pmcs\naborting...\n" );
188 fprintf( stderr,
"ERROR: Could not write pmds\naborting...\n" );
193 fprintf( stderr,
"ERROR: Could not load context\naborting...\n" );
◆ stop()
void PfmCodeAnalyser::stop |
( |
| ) |
|
◆ stop_init()
void PfmCodeAnalyser::stop_init |
( |
| ) |
|
◆ cmask
◆ count
unsigned PfmCodeAnalyser::count |
|
private |
◆ ctx
◆ event_str
◆ fd
unsigned PfmCodeAnalyser::i |
|
private |
◆ inp
◆ inv
◆ load_arg
◆ nehalem
int PfmCodeAnalyser::nehalem |
|
private |
◆ nhm_params
◆ outp
◆ overhead_avg
◆ params
◆ pc
◆ pd
◆ ret
◆ sum
◆ used_counters_number
int PfmCodeAnalyser::used_counters_number |
|
private |
The documentation for this class was generated from the following file:
os_err_t pfm_start(int fd, pfarg_start_t *start)
os_err_t pfm_write_pmds(int fd, pfarg_pmd_t *pmds, int count)
unsigned int pfp_pmd_count
unsigned long sum[MAX_NUMBER_OF_PROGRAMMABLE_COUNTERS]
bool inv[MAX_NUMBER_OF_PROGRAMMABLE_COUNTERS]
unsigned overhead_avg[MAX_NUMBER_OF_PROGRAMMABLE_COUNTERS]
pfmlib_output_param_t outp
unsigned int cmask[MAX_NUMBER_OF_PROGRAMMABLE_COUNTERS]
os_err_t pfm_read_pmds(int fd, pfarg_pmd_t *pmds, int count)
pfm_err_t pfm_initialize(void)
char * pfm_strerror(int code)
unsigned long long reg_value
#define MAX_NUMBER_OF_PROGRAMMABLE_COUNTERS
os_err_t pfm_create_context(pfarg_ctx_t *ctx, char *smpl_name, void *smpl_arg, size_t smpl_size)
pfmlib_reg_t pfp_pmcs[PFMLIB_MAX_PMCS]
char event_str[MAX_NUMBER_OF_PROGRAMMABLE_COUNTERS][MAX_EVT_NAME_LEN]
pfm_err_t pfm_find_full_event(const char *str, pfmlib_event_t *e)
#define cpuid(func, eax, ebx, ecx, edx)
pfmlib_nhm_input_param_t nhm_params
pfmlib_core_input_param_t params
os_err_t pfm_stop(int fd)
os_err_t pfm_load_context(int fd, pfarg_load_t *load)
pfmlib_reg_t pfp_pmds[PFMLIB_MAX_PMDS]
unsigned int pfp_pmc_count
os_err_t pfm_write_pmcs(int fd, pfarg_pmc_t *pmcs, int count)
pfm_err_t pfm_dispatch_events(pfmlib_input_param_t *p, void *model_in, pfmlib_output_param_t *q, void *model_out)