This file has the source code for a component that enables PAPI-C to access hardware monitoring sensors through the libsensors library. This code will dynamically create a native events table for all the sensors that can be accesed by the libsensors library. In order to learn more about libsensors, visit: (http://www.lm-sensors.org)
More...
|
| static int | link_lmsensors_libraries () |
| |
| static unsigned | detectSensors (void) |
| |
| static unsigned | createNativeEvents (void) |
| |
| static long_long | getEventValue (unsigned event_id) |
| |
| static int | _lmsensors_init_thread (hwd_context_t *ctx) |
| |
| static int | _lmsensors_init_component (int cidx) |
| |
| static int | _lmsensors_init_control_state (hwd_control_state_t *ctl) |
| |
| static int | _lmsensors_start (hwd_context_t *ctx, hwd_control_state_t *ctl) |
| |
| static int | _lmsensors_stop (hwd_context_t *ctx, hwd_control_state_t *ctl) |
| |
| static int | _lmsensors_read (hwd_context_t *ctx, hwd_control_state_t *ctl, long_long **events, int flags) |
| |
| static int | _lmsensors_shutdown_component (void) |
| |
| static int | _lmsensors_shutdown_thread (hwd_context_t *ctx) |
| |
| static int | _lmsensors_ctl (hwd_context_t *ctx, int code, _papi_int_option_t *option) |
| |
| static int | _lmsensors_update_control_state (hwd_control_state_t *ctl, NativeInfo_t *native, int count, hwd_context_t *ctx) |
| |
| static int | _lmsensors_set_domain (hwd_control_state_t *ctl, int domain) |
| |
| static int | _lmsensors_reset (hwd_context_t *ctx, hwd_control_state_t *ctl) |
| |
| static int | _lmsensors_ntv_enum_events (unsigned int *EventCode, int modifier) |
| |
| static int | _lmsensors_ntv_code_to_name (unsigned int EventCode, char *name, int len) |
| |
| static int | _lmsensors_ntv_code_to_descr (unsigned int EventCode, char *name, int len) |
| |
- Author
- Daniel Lucio
-
Joachim Protze
-
Heike Jagode jagod.nosp@m.e@ee.nosp@m.cs.ut.nosp@m.k.ed.nosp@m.u
LM_SENSORS component
Tested version of lm_sensors: 3.1.1
Notes:
- I used the ACPI and MX components to write this component. A lot of the code in this file mimics what other components already do.
- The return values are scaled by 1000 because PAPI can not return decimals.
- A call of PAPI_read can take up to 2 seconds while using lm_sensors!
- Please remember that libsensors uses the GPL license.
Definition in file linux-lmsensors.c.