|
ContainerTracer
0.1
|
Definition of runner.h declaration contents.
More...
#include <stdlib.h>#include <string.h>#include <errno.h>#include <assert.h>#include <unistd.h>#include <linux/limits.h>#include <jemalloc/jemalloc.h>#include <json.h>#include <generic.h>#include <runner.h>#include <log.h>
Functions | |
| void | runner_config_free (struct runner_config *config, const int flags) |
| Deallocate the global_runner's contents. More... | |
| 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... | |
| void | runner_free (void) |
Wrapping function of __runner_free(). More... | |
| static int | runner_get_result_string (char **buffer, size_t size) |
| Generate the buffer which contains the result. More... | |
| void | runner_put_result_string (char *buffer) |
Deallocate the buffer which is allocated by runner_get_result_string() function. 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... | |
| const struct runner_config * | runner_get_global_config (void) |
| Get a global configuration pointer. More... | |
Variables | |
| static struct runner_config * | global_config |
Definition of runner.h declaration contents.
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.
| 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(). 
|
static |
Generate the buffer which contains the result.
| [out] | buffer | Destination buffer which wants to allocate the memory. |
| [in] | size | Buffer's size. |
| 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. |

| 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.
|
static |
Global configuration contents of runner
1.8.13