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

Go to the source code of this file.

Functions

int x86_cpu_init (void)
 
int x86_cpu_finalize (void)
 
int x86_cpu_get_vendor (char *vendor)
 
int x86_cpu_get_name (char *name)
 
int x86_cpu_get_attribute (CPU_attr_e attr, int *value)
 
int x86_cpu_get_attribute_at (CPU_attr_e attr, int loc, int *value)
 

Function Documentation

◆ x86_cpu_finalize()

int x86_cpu_finalize ( void  )

Definition at line 76 of file x86_cpu_utils.c.

77{
78 return CPU_SUCCESS;
79}
#define CPU_SUCCESS
Definition: cpu_utils.h:4

◆ x86_cpu_get_attribute()

int x86_cpu_get_attribute ( CPU_attr_e  attr,
int value 
)

Definition at line 94 of file x86_cpu_utils.c.

95{
96 return cpuid_get_attribute(attr, value);
97}
static int cpuid_get_attribute(CPU_attr_e attr, int *value)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ x86_cpu_get_attribute_at()

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

Definition at line 100 of file x86_cpu_utils.c.

101{
102 return cpuid_get_attribute_at(attr, loc, value);
103}
static int cpuid_get_attribute_at(CPU_attr_e attr, int loc, int *value)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ x86_cpu_get_name()

int x86_cpu_get_name ( char *  name)

Definition at line 88 of file x86_cpu_utils.c.

89{
90 return cpuid_get_name(name);
91}
const char * name
Definition: rocs.c:225
static int cpuid_get_name(char *name)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ x86_cpu_get_vendor()

int x86_cpu_get_vendor ( char *  vendor)

Definition at line 82 of file x86_cpu_utils.c.

83{
84 return cpuid_get_vendor(vendor);
85}
static int cpuid_get_vendor(char *vendor)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ x86_cpu_init()

int x86_cpu_init ( void  )

Definition at line 65 of file x86_cpu_utils.c.

66{
67 /*
68 * In the future we might need to dynamically
69 * allocate and free objects; init/finalize
70 * functions are a good place for doing that.
71 */
72 return CPU_SUCCESS;
73}