|
PAPI 7.1.0.0
|
This component is intended to access CPU On-Die Thermal Sensors in the Intel Core architecture in a FreeBSD machine using the coretemp.ko kernel module. More...

Go to the source code of this file.
Data Structures | |
| struct | coretemp_register_t |
| struct | coretemp_native_event_entry_t |
| struct | coretemp_reg_alloc_t |
| struct | coretemp_control_state_t |
| struct | coretemp_context_t |
Macros | |
| #define | CORETEMP_MAX_COUNTERS 32 /* Can we tune this dynamically? */ |
| #define | TRUE (1==1) |
| #define | FALSE (1!=1) |
| #define | UNREFERENCED(x) (void)x |
Variables | |
| static coretemp_native_event_entry_t * | coretemp_native_table |
| static int | CORETEMP_NUM_EVENTS = 0 |
| papi_vector_t | _coretemp_freebsd_vector |
Definition in file coretemp_freebsd.c.
| #define CORETEMP_MAX_COUNTERS 32 /* Can we tune this dynamically? */ |
Definition at line 37 of file coretemp_freebsd.c.
| #define FALSE (1!=1) |
Definition at line 39 of file coretemp_freebsd.c.
| #define TRUE (1==1) |
Definition at line 38 of file coretemp_freebsd.c.
Definition at line 40 of file coretemp_freebsd.c.
| int coretemp_ctl | ( | hwd_context_t * | ctx, |
| int | code, | ||
| _papi_int_option_t * | option | ||
| ) |
This function sets various options in the component
| ctx | unused |
| code | valid are PAPI_SET_DEFDOM, PAPI_SET_DOMAIN, PAPI_SETDEFGRN, PAPI_SET_GRANUL and PAPI_SET_INHERIT |
| option | unused |
Definition at line 409 of file coretemp_freebsd.c.

| int coretemp_init_component | ( | ) |
Initialize hardware counters, setup the function vector table and get hardware information, this routine is called when the PAPI process is initialized (IE PAPI_library_init)
Definition at line 121 of file coretemp_freebsd.c.
| int coretemp_init_control_state | ( | hwd_control_state_t * | ctrl | ) |
Setup the counter control structure
Definition at line 189 of file coretemp_freebsd.c.
| int coretemp_init_thread | ( | hwd_context_t * | ctx | ) |
This is called whenever a thread is initialized
Definition at line 94 of file coretemp_freebsd.c.
| int coretemp_ntv_code_to_bits | ( | unsigned int | EventCode, |
| hwd_register_t * | bits | ||
| ) |
This takes an event and returns the bits that would be written out to the hardware device (this is very much tied to CPU-type support
Definition at line 270 of file coretemp_freebsd.c.
Takes a native event code and passes back the event description
| EventCode | is the native event code |
| name | is a pointer for the description to be copied to |
| len | is the size of the string |
Definition at line 259 of file coretemp_freebsd.c.
Takes a native event code and passes back the name
| EventCode | is the native event code |
| name | is a pointer for the name to be copied to |
| len | is the size of the string |
Definition at line 245 of file coretemp_freebsd.c.
Enumerate Native Events
| EventCode | is the event of interest |
| modifier | is one of PAPI_ENUM_FIRST, PAPI_ENUM_EVENTS |
Definition at line 207 of file coretemp_freebsd.c.
| int coretemp_read | ( | hwd_context_t * | ctx, |
| hwd_control_state_t * | ctrl, | ||
| long_long ** | events, | ||
| int | flags | ||
| ) |
Triggered by PAPI_read()
Definition at line 330 of file coretemp_freebsd.c.
| int coretemp_reset | ( | hwd_context_t * | ctx, |
| hwd_control_state_t * | ctrl | ||
| ) |
Triggered by PAPI_reset
Definition at line 378 of file coretemp_freebsd.c.
| int coretemp_set_domain | ( | hwd_control_state_t * | cntrl, |
| int | domain | ||
| ) |
This function has to set the bits needed to count different domains In particular: PAPI_DOM_USER, PAPI_DOM_KERNEL PAPI_DOM_OTHER By default return PAPI_EINVAL if none of those are specified and PAPI_OK with success PAPI_DOM_USER is only user context is counted PAPI_DOM_KERNEL is only the Kernel/OS context is counted PAPI_DOM_OTHER is Exception/transient mode (like user TLB misses) PAPI_DOM_ALL is all of the domains
Definition at line 432 of file coretemp_freebsd.c.
| int coretemp_shutdown_component | ( | void | ) |
Triggered by PAPI_shutdown()
Definition at line 391 of file coretemp_freebsd.c.
| int coretemp_start | ( | hwd_context_t * | ctx, |
| hwd_control_state_t * | ctrl | ||
| ) |
Triggered by PAPI_start()
Definition at line 302 of file coretemp_freebsd.c.
| int coretemp_stop | ( | hwd_context_t * | ctx, |
| hwd_control_state_t * | ctrl | ||
| ) |
Triggered by PAPI_stop()
Definition at line 316 of file coretemp_freebsd.c.
| int coretemp_update_control_state | ( | hwd_control_state_t * | ptr, |
| NativeInfo_t * | native, | ||
| int | count, | ||
| hwd_context_t * | ctx | ||
| ) |
Triggered by eventset operations like add or remove
Definition at line 279 of file coretemp_freebsd.c.
| int coretemp_write | ( | hwd_context_t * | ctx, |
| hwd_control_state_t * | ctrl, | ||
| long_long | events[] | ||
| ) |
Triggered by PAPI_write(), but only if the counters are running
Definition at line 362 of file coretemp_freebsd.c.
| papi_vector_t _coretemp_freebsd_vector |
Vector that points to entry points for our component
Definition at line 449 of file coretemp_freebsd.c.
|
static |
This table contains the native events
Definition at line 83 of file coretemp_freebsd.c.
|
static |
number of events in the table
Definition at line 86 of file coretemp_freebsd.c.