A component that gather info on VM stealtime.
More...
Go to the source code of this file.
|
| static int | read_stealtime (struct STEALTIME_context *context, int starting) |
| |
| static int | _stealtime_shutdown_component (void) |
| |
| static int | _stealtime_init_component (int cidx) |
| |
| static int | _stealtime_init_thread (hwd_context_t *ctx) |
| |
| static int | _stealtime_shutdown_thread (hwd_context_t *ctx) |
| |
| static int | _stealtime_init_control_state (hwd_control_state_t *ctl) |
| |
| static int | _stealtime_update_control_state (hwd_control_state_t *ctl, NativeInfo_t *native, int count, hwd_context_t *ctx) |
| |
| static int | _stealtime_start (hwd_context_t *ctx, hwd_control_state_t *ctl) |
| |
| static int | _stealtime_stop (hwd_context_t *ctx, hwd_control_state_t *ctl) |
| |
| static int | _stealtime_read (hwd_context_t *ctx, hwd_control_state_t *ctl, long long **events, int flags) |
| |
| static int | _stealtime_reset (hwd_context_t *ctx, hwd_control_state_t *ctrl) |
| |
| static int | _stealtime_ctl (hwd_context_t *ctx, int code, _papi_int_option_t *option) |
| |
| static int | _stealtime_set_domain (hwd_control_state_t *cntrl, int domain) |
| |
| static int | _stealtime_ntv_code_to_name (unsigned int EventCode, char *name, int len) |
| |
| static int | _stealtime_ntv_code_to_descr (unsigned int EventCode, char *name, int len) |
| |
| static int | _stealtime_ntv_code_to_info (unsigned int EventCode, PAPI_event_info_t *info) |
| |
| static int | _stealtime_ntv_enum_events (unsigned int *EventCode, int modifier) |
| |
◆ _stealtime_ctl()
◆ _stealtime_init_component()
| static int _stealtime_init_component |
( |
int |
cidx | ) |
|
|
static |
Definition at line 137 of file linux-stealtime.c.
143 char buffer[BUFSIZ],*result,
string[BUFSIZ];
147 fff=fopen(
"/proc/stat",
"r");
158 if (result==NULL)
break;
162 if (!strncmp(
buffer,
"cpu",3)) {
175 "Cannot find enough CPU lines in /proc/stat",
188 sysconf(_SC_CLK_TCK);
194 sprintf(
string,
"CPU%d",
i);
196 sprintf(
string,
"Steal time for CPU %d",
i);
char disabled_reason[PAPI_MAX_STR_LEN]
static int _stealtime_shutdown_component(void)
PAPI_component_info_t cmp_info
static struct counter_info * event_info
papi_vector_t _stealtime_vector
◆ _stealtime_init_control_state()
◆ _stealtime_init_thread()
◆ _stealtime_ntv_code_to_descr()
| static int _stealtime_ntv_code_to_descr |
( |
unsigned int |
EventCode, |
|
|
char * |
name, |
|
|
int |
len |
|
) |
| |
|
static |
◆ _stealtime_ntv_code_to_info()
| static int _stealtime_ntv_code_to_info |
( |
unsigned int |
EventCode, |
|
|
PAPI_event_info_t * |
info |
|
) |
| |
|
static |
Definition at line 528 of file linux-stealtime.c.
531 int index = EventCode;
char units[PAPI_MIN_STR_LEN]
char long_descr[PAPI_HUGE_STR_LEN]
static struct counter_info * event_info
char symbol[PAPI_HUGE_STR_LEN]
◆ _stealtime_ntv_code_to_name()
| static int _stealtime_ntv_code_to_name |
( |
unsigned int |
EventCode, |
|
|
char * |
name, |
|
|
int |
len |
|
) |
| |
|
static |
◆ _stealtime_ntv_enum_events()
| static int _stealtime_ntv_enum_events |
( |
unsigned int * |
EventCode, |
|
|
int |
modifier |
|
) |
| |
|
static |
◆ _stealtime_read()
Definition at line 382 of file linux-stealtime.c.
static int read_stealtime(struct STEALTIME_context *context, int starting)
char events[MAX_EVENTS][BUFSIZ]
◆ _stealtime_reset()
Definition at line 415 of file linux-stealtime.c.
static int _stealtime_start(hwd_context_t *ctx, hwd_control_state_t *ctl)
◆ _stealtime_set_domain()
◆ _stealtime_shutdown_component()
| static int _stealtime_shutdown_component |
( |
void |
| ) |
|
|
static |
Definition at line 239 of file linux-stealtime.c.
char units[MAX_EVENTS][BUFSIZ]
PAPI_component_info_t cmp_info
static struct counter_info * event_info
papi_vector_t _stealtime_vector
◆ _stealtime_shutdown_thread()
◆ _stealtime_start()
Definition at line 334 of file linux-stealtime.c.
static int read_stealtime(struct STEALTIME_context *context, int starting)
◆ _stealtime_stop()
Definition at line 359 of file linux-stealtime.c.
static int read_stealtime(struct STEALTIME_context *context, int starting)
◆ _stealtime_update_control_state()
◆ read_stealtime()
Definition at line 74 of file linux-stealtime.c.
77 char buffer[BUFSIZ],*result;
81 int hz=sysconf(_SC_CLK_TCK);
84 fff=fopen(
"/proc/stat",
"r");
91 if (result==NULL)
break;
93 count=sscanf(
buffer,
"%*s %lld %lld %lld %lld %lld %lld %lld %lld %lld",
long long * current_count
◆ _stealtime_vector
◆ event_info
◆ num_events