#include "ev_dfg.h" #include "test_support.h" int status; static EVdfg test_dfg; typedef struct _RawData_rec { int a; int b; int c; int d; int e; } RawData_rec, *RawData_rec_ptr; static FMField RawData_field_list [] = { {"a", "integer", 4, FMOffset(RawData_rec_ptr, a)}, {"b", "integer", 4, FMOffset(RawData_rec_ptr, b)}, {"c", "integer", 4, FMOffset(RawData_rec_ptr, c)}, {"d", "integer", 4, FMOffset(RawData_rec_ptr, d)}, {"e", "integer", 4, FMOffset(RawData_rec_ptr, e)}, {NULL, NULL, 0, 0} }; static FMStructDescRec RawData_format_list [] = { {"RawData", RawData_field_list, sizeof(RawData_rec), NULL}, {NULL, NULL} }; void generate_RawData_record(RawData_rec_ptr event) { event->a = 0;
#include "cortex.h" static FMField sensor_field_list[] = { {"timestamp", "double", sizeof(double), FMOffset(sensor_rec_ptr, timestamp)}, {"attr_name", "string", sizeof(char*), FMOffset(sensor_rec_ptr, attr_name)}, {"rec_val", "float", sizeof(float), FMOffset(sensor_rec_ptr, rec_val)}, {NULL, NULL, 0, 0} }; static FMStructDescRec sensor_format_list[] = { {"sensor", sensor_field_list, sizeof(sensor_rec), NULL}, {NULL, NULL} }; char *get_cpu_nice_metrics_ECL = "{\n\ \toutput.timestamp = gettimeofday_func();\n\ \toutput.attr_name = \"cpu_nice\";\n\ \toutput.rec_val = cpu_nice_func();\n\ }"; char *get_cpu_user_metrics_ECL = "{\n\ \toutput.timestamp = gettimeofday_func();\n\ \toutput.attr_name = \"cpu_user\";\n\ \toutput.rec_val = cpu_user_func();\n\ }"; char *get_cpu_system_metrics_ECL = "{\n\ \toutput.timestamp = gettimeofday_func();\n\ \toutput.attr_name = \"cpu_system\";\n\
#include "planner.h" query_ctx *qctx; int total_deploy_aggregators = 0; int total_deploy_nodes = 0; static FMField func_field_list[] = { {"func_name", "string", sizeof(char*), FMOffset(func_rec_ptr, func_name)}, {"in_format", "string", sizeof(char*), FMOffset(func_rec_ptr, in_format)}, {"out_format", "string", sizeof(char*), FMOffset(func_rec_ptr, out_format)}, {"flevel_start_point", "integer", sizeof(int), FMOffset(func_rec_ptr, flevel_start_point)}, {"flevel_end_point", "integer", sizeof(int), FMOffset(func_rec_ptr, flevel_end_point)}, {"func_splits", "integer", sizeof(int), FMOffset(func_rec_ptr, func_splits)}, {"func_type", "integer", sizeof(int), FMOffset(func_rec_ptr, func_type)}, {"func_order", "integer", sizeof(int), FMOffset(func_rec_ptr, func_order)}, {"func_level", "integer", sizeof(int), FMOffset(func_rec_ptr, func_level)}, {NULL, NULL, 0, 0} }; static FMField node_deploy_field_list[] = { {"node_contact_list", "string", sizeof(char*), FMOffset(node_deploy_ptr, node_contact_list)}, {"node_coord_contact_list", "string", sizeof(char*), FMOffset(node_deploy_ptr, node_coord_contact_list)}, {"node_type", "integer", sizeof(int), FMOffset(node_deploy_ptr, node_type)}, {"query_id", "integer", sizeof(int), FMOffset(node_deploy_ptr, query_id)}, {"graph_id", "integer", sizeof(int), FMOffset(node_deploy_ptr, graph_id)}, {"num_recs", "integer", sizeof(int), FMOffset(node_deploy_ptr, num_recs)}, {"func_recs", "func_recs[num_recs]", sizeof(struct func_rec), FMOffset(node_deploy_ptr, func_recs)}, {NULL, NULL, 0, 0} };