ContainerTracer
0.1
|
Initialize the info structure. More...
#include <stdlib.h>
#include <search.h>
#include <assert.h>
#include <sys/stat.h>
#include <json.h>
#include <jemalloc/jemalloc.h>
#include <driver/tr-driver.h>
Functions | |
static int | tr_info_int_value_set (struct json_object *setting, const char *key, unsigned int *member, int is_print) |
Read the JSON string and convert the value to integer form and set that value to info->(member) More... | |
static int | tr_info_str_value_set (struct json_object *setting, const char *key, char *member, size_t size, int is_print) |
Read the JSON string and convert the value to string form and set that value to info->(member) More... | |
static int | tr_is_synth_type (const char *trace_data_path) |
Check the trace_data_path value form is synthetic from. More... | |
static int | __tr_info_init (struct json_object *setting, int index, struct tr_info *info) |
Set the configuration of each process's behavior. More... | |
struct tr_info * | tr_info_init (struct json_object *setting, int index) |
Generate and construct the per processes info object and return it. More... | |
Variables | |
static const char * | global_synth_type [] |
Definition of a well-known synthetic form. This value depends on the trace-replay specification. More... | |
Initialize the info structure.
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.
|
static |
Set the configuration of each process's behavior.
[in] | setting | JSON object pointer which has the setting value. |
[in] | index | task_option array's index. |
[out] | info | The target structure of the member will be set by the JSON object. |
< Variable for hsearch
.
struct tr_info* tr_info_init | ( | struct json_object * | setting, |
int | index | ||
) |
Generate and construct the per processes info
object and return it.
[in] | setting | JSON object pointer which has the setting value. |
[in] | index | task_option array's index. |
|
static |
Read the JSON string and convert the value to integer form and set that value to info->(member)
[in] | setting | The traverse start location of JSON object. |
[in] | key | JSON object's key which points to the value I want to find. |
[out] | member | info structure member address. |
[in] | is_print | The flag that determines to print the error. |
|
static |
Read the JSON string and convert the value to string form and set that value to info->(member)
[in] | setting | The traverse start location of JSON object. |
[in] | key | JSON object's key which points to the value I want to find. |
[out] | member | info structure member address. |
[in] | size | This value must under member memory size |
[in] | is_print | The flag that determines to print the error. |
|
static |
Check the trace_data_path
value form is synthetic from.
[in] | trace_data_path | The value which I want to know either synthetic or not. |
trace_data_path
is synthetic, DOCKER_NOT_SYNTH for trace_data_path
isn't synthetic
|
static |
Definition of a well-known synthetic form. This value depends on the trace-replay
specification.