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

Go to the source code of this file.

Functions

int os_cpu_get_vendor (char *vendor)
 
int os_cpu_get_name (char *name)
 
int os_cpu_get_attribute (CPU_attr_e attr, int *value)
 
int os_cpu_get_attribute_at (CPU_attr_e attr, int loc, int *value)
 
int os_cpu_set_affinity (int cpu)
 
int os_cpu_get_num_supported (void)
 
int os_cpu_store_affinity (void)
 
int os_cpu_load_affinity (void)
 

Function Documentation

◆ os_cpu_get_attribute()

int os_cpu_get_attribute ( CPU_attr_e  attr,
int value 
)

Definition at line 30 of file os_cpu_utils.c.

31{
32#if defined(__linux__)
33 return linux_cpu_get_attribute(attr, value);
34#elif defined(__APPLE__) || defined(__MACH__)
35 #warning "WARNING! Darwin support of " __func__ " not yet implemented."
36 return CPU_ERROR;
37#endif
38 return CPU_ERROR;
39}
#define CPU_ERROR
Definition: cpu_utils.h:5
int linux_cpu_get_attribute(CPU_attr_e attr, int *value)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ os_cpu_get_attribute_at()

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

Definition at line 42 of file os_cpu_utils.c.

43{
44#if defined(__linux__)
45 return linux_cpu_get_attribute_at(attr, loc, value);
46#elif defined(__APPLE__) || defined(__MACH__)
47 #warning "WARNING! Darwin support of " __func__ " not yet implemented."
48 return CPU_ERROR;
49#endif
50 return CPU_ERROR;
51}
int linux_cpu_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:

◆ os_cpu_get_name()

int os_cpu_get_name ( char *  name)

Definition at line 18 of file os_cpu_utils.c.

19{
20#if defined(__linux__)
22#elif defined(__APPLE__) || defined(__MACH__)
23 #warning "WARNING! Darwin support of " __func__ " not yet implemented."
24 return CPU_ERROR;
25#endif
26 return CPU_ERROR;
27}
int linux_cpu_get_name(char *name)
const char * name
Definition: rocs.c:225
Here is the call graph for this function:
Here is the caller graph for this function:

◆ os_cpu_get_num_supported()

int os_cpu_get_num_supported ( void  )

Definition at line 66 of file os_cpu_utils.c.

67{
68#if defined(__linux__)
70#elif defined(__APPLE__) || defined(__MACH__)
71 #warning "WARNING! Darwin support of " __func__ " not yet implemented."
72 return CPU_ERROR;
73#endif
74 return CPU_ERROR;
75}
int linux_cpu_get_num_supported(void)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ os_cpu_get_vendor()

int os_cpu_get_vendor ( char *  vendor)

Definition at line 6 of file os_cpu_utils.c.

7{
8#if defined(__linux__)
9 return linux_cpu_get_vendor(vendor);
10#elif defined(__APPLE__) || defined(__MACH__)
11 #warning "WARNING! Darwin support of " __func__ " not yet implemented."
12 return CPU_ERROR;
13#endif
14 return CPU_ERROR;
15}
int linux_cpu_get_vendor(char *vendor)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ os_cpu_load_affinity()

int os_cpu_load_affinity ( void  )

Definition at line 90 of file os_cpu_utils.c.

91{
92#if defined(__linux__)
94#elif defined(__APPLE__) || defined(__MACH__)
95 #warning "WARNING! Darwin support of " __func__ " not yet implemented."
96 return CPU_ERROR;
97#endif
98 return CPU_ERROR;
99}
int linux_cpu_load_affinity(void)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ os_cpu_set_affinity()

int os_cpu_set_affinity ( int  cpu)

Definition at line 54 of file os_cpu_utils.c.

55{
56#if defined(__linux__)
57 return linux_cpu_set_affinity(cpu);
58#elif defined(__APPLE__) || defined(__MACH__)
59 #warning "WARNING! Darwin support of " __func__ " not yet implemented."
60 return CPU_ERROR;
61#endif
62 return CPU_ERROR;
63}
int linux_cpu_set_affinity(int cpu)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ os_cpu_store_affinity()

int os_cpu_store_affinity ( void  )

Definition at line 78 of file os_cpu_utils.c.

79{
80#if defined(__linux__)
82#elif defined(__APPLE__) || defined(__MACH__)
83 #warning "WARNING! Darwin support of " __func__ " not yet implemented."
84 return CPU_ERROR;
85#endif
86 return CPU_ERROR;
87}
int linux_cpu_store_affinity(void)
Here is the call graph for this function:
Here is the caller graph for this function: