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

Go to the source code of this file.

Data Structures

union  pfm_sicortex_sel_reg_t
 
union  pmc_sicortex_scb_reg_t
 
union  pmd_sicortex_cpu_reg_t
 
struct  pfmlib_sicortex_scb_t
 
struct  pfmlib_sicortex_scb_counter_t
 
struct  pfmlib_sicortex_input_param_t
 
struct  pfmlib_sicortex_output_param_t
 

Macros

#define PMU_SICORTEX_SCB_NUM_COUNTERS   256
 
#define PFMLIB_SICORTEX_INPUT_SCB_NONE   (unsigned long)0x0
 
#define PFMLIB_SICORTEX_INPUT_SCB_INTERVAL   (unsigned long)0x1
 
#define PFMLIB_SICORTEX_INPUT_SCB_NOINC   (unsigned long)0x2
 
#define PFMLIB_SICORTEX_INPUT_SCB_HISTGTE   (unsigned long)0x4
 
#define PFMLIB_SICORTEX_INPUT_SCB_BUCKET   (unsigned long)0x8
 

Functions

int pfm_sicortex_is_cpu (unsigned int i)
 
int pfm_sicortex_is_scb (unsigned int i)
 
int pfm_sicortex_support_domain (unsigned int i)
 
int pfm_sicortex_support_vpc_pea (unsigned int i)
 

Macro Definition Documentation

◆ PFMLIB_SICORTEX_INPUT_SCB_BUCKET

#define PFMLIB_SICORTEX_INPUT_SCB_BUCKET   (unsigned long)0x8

Definition at line 129 of file pfmlib_sicortex.h.

◆ PFMLIB_SICORTEX_INPUT_SCB_HISTGTE

#define PFMLIB_SICORTEX_INPUT_SCB_HISTGTE   (unsigned long)0x4

Definition at line 128 of file pfmlib_sicortex.h.

◆ PFMLIB_SICORTEX_INPUT_SCB_INTERVAL

#define PFMLIB_SICORTEX_INPUT_SCB_INTERVAL   (unsigned long)0x1

Definition at line 126 of file pfmlib_sicortex.h.

◆ PFMLIB_SICORTEX_INPUT_SCB_NOINC

#define PFMLIB_SICORTEX_INPUT_SCB_NOINC   (unsigned long)0x2

Definition at line 127 of file pfmlib_sicortex.h.

◆ PFMLIB_SICORTEX_INPUT_SCB_NONE

#define PFMLIB_SICORTEX_INPUT_SCB_NONE   (unsigned long)0x0

Definition at line 125 of file pfmlib_sicortex.h.

◆ PMU_SICORTEX_SCB_NUM_COUNTERS

#define PMU_SICORTEX_SCB_NUM_COUNTERS   256

Definition at line 63 of file pfmlib_sicortex.h.

Function Documentation

◆ pfm_sicortex_is_cpu()

int pfm_sicortex_is_cpu ( unsigned int  i)

Definition at line 623 of file pfmlib_sicortex.c.

624{
626 {
627 unsigned int tmp = sicortex_pe[i].pme_counters;
628 return !(tmp & (1<<core_counters));
629 }
630 return 0;
631}
double tmp
int i
#define core_counters
static pme_sicortex_entry_t * sicortex_pe
pfm_pmu_support_t sicortex_support
unsigned int pme_count
Definition: pfmlib_priv.h:35
unsigned int pme_counters

◆ pfm_sicortex_is_scb()

int pfm_sicortex_is_scb ( unsigned int  i)

Definition at line 634 of file pfmlib_sicortex.c.

635{
637 {
638 unsigned int tmp = sicortex_pe[i].pme_counters;
639 return (tmp & (1<<core_counters));
640 }
641 return 0;
642}

◆ pfm_sicortex_support_domain()

int pfm_sicortex_support_domain ( unsigned int  i)

Definition at line 645 of file pfmlib_sicortex.c.

646{
648 {
649 unsigned int tmp = sicortex_pe[i].pme_counters;
650 return (tmp & (1<<3));
651 }
652 return 0;
653}

◆ pfm_sicortex_support_vpc_pea()

int pfm_sicortex_support_vpc_pea ( unsigned int  i)

Definition at line 656 of file pfmlib_sicortex.c.

657{
659 {
660 unsigned int tmp = sicortex_pe[i].pme_counters;
661 return (tmp & (1<<4));
662 }
663 return 0;
664}