Functions for the sending and receiving of statsitics between ctrl and runtime.
More...
|
int | is_thread_stat (enum stat_id id) |
|
int | is_msu_stat (enum stat_id id) |
|
static int | init_stat_sample (int max_stats, struct stat_sample *sample) |
| Initializes a single stat sample with room to hold max_stats statistics. More...
|
|
void | free_stat_samples (struct stat_sample *sample, int n_samples) |
| Frees a set of stat samples. More...
|
|
struct stat_sample * | init_stat_samples (int max_stats, int n_samples) |
| Initilizes n sets of samples of statistics, each of which contains max_stats points. More...
|
|
size_t | serialized_stat_sample_size (struct stat_sample *sample, int n_samples) |
| Determines the size needed to hold the serialized version of sample . More...
|
|
static ssize_t | serialize_stat_sample (struct stat_sample *sample, void *buffer, size_t buff_len) |
| Serializes a single stat sample into a buffer of size buff_len . More...
|
|
ssize_t | serialize_stat_samples (struct stat_sample *samples, int n_samples, void *buffer, size_t buff_len) |
| Serializes from the provided samples into the buffer More...
|
|
static ssize_t | deserialize_stat_sample (void *buffer, size_t buff_len, struct stat_sample *sample) |
| Deserializes a single stat sample from a buffer. More...
|
|
int | deserialize_stat_samples (void *buffer, size_t buff_len, struct stat_sample *samples, int n_samples) |
| Deserializes from the provided buffer into the samples structure. More...
|
|
Functions for the sending and receiving of statsitics between ctrl and runtime.
Definition in file stats.c.