ContainerTracer
0.1
|
Declaration information of runnner
More...
Go to the source code of this file.
Data Structures | |
struct | runner_config |
This structure has user-inputted information. More... | |
Macros | |
#define | INTERVAL_RESULT_STRING_SIZE (PAGE_SIZE) |
#define | TOTAL_RESULT_STRING_SIZE (PAGE_SIZE * PAGE_SIZE) |
#define | BFQ_MIN_WEIGHT 1 |
#define | BFQ_MAX_WEIGHT 1000 |
Enumerations | |
enum | { RUNNER_FREE_ALL_MASK, RUNNER_FREE_DRIVER_MASK } |
enum | { RUNNER_FREE_ALL = 0xFFFF } |
Functions | |
int | runner_init (const char *json_str) |
Read the JSON string and config the runner. More... | |
int | runner_run (void) |
Execute the benchmark program. More... | |
char * | runner_get_interval_result (const char *key) |
Get a specific driver's execution-time results. More... | |
char * | runner_get_total_result (const char *key) |
Get a specific driver's end-time results. More... | |
void | runner_put_result_string (char *buffer) |
Deallocate the buffer which is allocated by runner_get_result_string() function. More... | |
void | runner_free (void) |
Wrapping function of __runner_free() . More... | |
void | runner_config_free (struct runner_config *config, const int flags) |
Deallocate the global_runner's contents. More... | |
const struct runner_config * | runner_get_global_config (void) |
Get a global configuration pointer. More... | |
static int | runner_is_valid_bfq_weight (unsigned int weight) |
Check the validation of BFQ scheduler's weight. More... | |
Declaration information of runnner
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#define BFQ_MAX_WEIGHT 1000 |
#define BFQ_MIN_WEIGHT 1 |
#define INTERVAL_RESULT_STRING_SIZE (PAGE_SIZE) |
Expected 4KB
anonymous enum |
void runner_config_free | ( | struct runner_config * | config, |
const int | flags | ||
) |
Deallocate the global_runner's contents.
[in] | config | pointer of runner_config structure. |
[in] | flags | Flag of deallocation range. |
void runner_free | ( | void | ) |
Wrapping function of __runner_free()
.
const struct runner_config* runner_get_global_config | ( | void | ) |
Get a global configuration pointer.
global_config
pointer. char* runner_get_interval_result | ( | const char * | key | ) |
Get a specific driver's execution-time results.
[in] | key | The key which specifies target to get execution-time result. |
runner_get_result_string()
, you must deallocate this buffer by using runner_put_result_string()
. char* runner_get_total_result | ( | const char * | key | ) |
Get a specific driver's end-time results.
[in] | key | The key which specifies target to get end-time result. |
runner_get_result_string()
, you must deallocate this buffer by using runner_put_result_string()
. int runner_init | ( | const char * | json_str | ) |
Read the JSON string and config the runner.
[in] | json_str | JSON string which is used in runner config. |
Error | number returns if there exists any invalid value in JSON string. |
|
static |
Check the validation of BFQ scheduler's weight.
[in] | weight | BFQ scheduler's weight. |
void runner_put_result_string | ( | char * | buffer | ) |
Deallocate the buffer which is allocated by runner_get_result_string()
function.
[in] | buffer | A dynamically allocated buffer which wants to deallocate. |
int runner_run | ( | void | ) |
Execute the benchmark program.