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

Go to the source code of this file.

Functions

int powerpc_cpu_init (void)
 
int powerpc_cpu_finalize (void)
 
int powerpc_cpu_get_vendor (char *vendor)
 
int powerpc_cpu_get_name (char *name)
 
int powerpc_cpu_get_attribute (CPU_attr_e attr, int *value)
 
int powerpc_cpu_get_attribute_at (CPU_attr_e attr, int loc, int *value)
 

Function Documentation

◆ powerpc_cpu_finalize()

int powerpc_cpu_finalize ( void  )

Definition at line 179 of file powerpc_cpu_utils.c.

180{
181 return CPU_SUCCESS;
182}
#define CPU_SUCCESS
Definition: cpu_utils.h:4

◆ powerpc_cpu_get_attribute()

int powerpc_cpu_get_attribute ( CPU_attr_e  attr,
int value 
)

Definition at line 197 of file powerpc_cpu_utils.c.

198{
199 return os_cpu_get_attribute(attr, value);
200}
int os_cpu_get_attribute(CPU_attr_e attr, int *value)
Definition: os_cpu_utils.c:30
Here is the call graph for this function:
Here is the caller graph for this function:

◆ powerpc_cpu_get_attribute_at()

int powerpc_cpu_get_attribute_at ( CPU_attr_e  attr,
int  loc,
int value 
)

Definition at line 203 of file powerpc_cpu_utils.c.

204{
205 int status = CPU_SUCCESS;
206
207 switch(attr) {
223 status = get_cache_info(attr, loc, value);
224 break;
227 status = os_cpu_get_attribute_at(attr, loc, value);
228 break;
229 default:
230 status = CPU_ERROR;
231 }
232
233 return status;
234}
#define CPU_ERROR
Definition: cpu_utils.h:5
@ CPU_ATTR__CACHE_INST_TOT_SIZE
Definition: cpu_utils.h:21
@ CPU_ATTR__HWTHREAD_NUMA_AFFINITY
Definition: cpu_utils.h:34
@ CPU_ATTR__CACHE_UNIF_TOT_SIZE
Definition: cpu_utils.h:29
@ CPU_ATTR__CACHE_DATA_ASSOCIATIVITY
Definition: cpu_utils.h:28
@ CPU_ATTR__CACHE_INST_LINE_SIZE
Definition: cpu_utils.h:22
@ CPU_ATTR__NUMA_MEM_SIZE
Definition: cpu_utils.h:36
@ CPU_ATTR__CACHE_UNIF_LINE_SIZE
Definition: cpu_utils.h:30
@ CPU_ATTR__CACHE_DATA_NUM_LINES
Definition: cpu_utils.h:27
@ CPU_ATTR__CACHE_UNIF_ASSOCIATIVITY
Definition: cpu_utils.h:32
@ CPU_ATTR__CACHE_INST_PRESENT
Definition: cpu_utils.h:18
@ CPU_ATTR__CACHE_DATA_PRESENT
Definition: cpu_utils.h:19
@ CPU_ATTR__CACHE_DATA_LINE_SIZE
Definition: cpu_utils.h:26
@ CPU_ATTR__CACHE_INST_ASSOCIATIVITY
Definition: cpu_utils.h:24
@ CPU_ATTR__CACHE_INST_NUM_LINES
Definition: cpu_utils.h:23
@ CPU_ATTR__CACHE_UNIF_NUM_LINES
Definition: cpu_utils.h:31
@ CPU_ATTR__CACHE_DATA_TOT_SIZE
Definition: cpu_utils.h:25
@ CPU_ATTR__CACHE_UNIF_PRESENT
Definition: cpu_utils.h:20
int os_cpu_get_attribute_at(CPU_attr_e attr, int loc, int *value)
Definition: os_cpu_utils.c:42
static int get_cache_info(CPU_attr_e attr, int level, int *value)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ powerpc_cpu_get_name()

int powerpc_cpu_get_name ( char *  name)

Definition at line 191 of file powerpc_cpu_utils.c.

192{
193 return os_cpu_get_name(name);
194}
int os_cpu_get_name(char *name)
Definition: os_cpu_utils.c:18
const char * name
Definition: rocs.c:225
Here is the call graph for this function:
Here is the caller graph for this function:

◆ powerpc_cpu_get_vendor()

int powerpc_cpu_get_vendor ( char *  vendor)

Definition at line 185 of file powerpc_cpu_utils.c.

186{
187 return os_cpu_get_vendor(vendor);
188}
int os_cpu_get_vendor(char *vendor)
Definition: os_cpu_utils.c:6
Here is the call graph for this function:
Here is the caller graph for this function:

◆ powerpc_cpu_init()

int powerpc_cpu_init ( void  )

Definition at line 173 of file powerpc_cpu_utils.c.

174{
175 return CPU_SUCCESS;
176}