|
|
@ -13,9 +13,10 @@ static inline void
|
|
|
|
sandbox_perf_log_print_header()
|
|
|
|
sandbox_perf_log_print_header()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (sandbox_perf_log == NULL) { perror("sandbox perf log"); }
|
|
|
|
if (sandbox_perf_log == NULL) { perror("sandbox perf log"); }
|
|
|
|
fprintf(sandbox_perf_log, "id,tenant,route,state,deadline,actual,queued,uninitialized,allocated,initialized,"
|
|
|
|
fprintf(sandbox_perf_log,
|
|
|
|
|
|
|
|
"id,tenant,route,state,deadline,actual,queued,uninitialized,allocated,initialized,"
|
|
|
|
"runnable,interrupted,preempted,"
|
|
|
|
"runnable,interrupted,preempted,"
|
|
|
|
"running_sys,running_user,asleep,returned,complete,error,proc_MHz,payload_size\n");
|
|
|
|
"running_sys,running_user,asleep,returned,complete,error,proc_MHz,payload_size,regression_param\n");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
@ -37,8 +38,8 @@ sandbox_perf_log_print_entry(struct sandbox *sandbox)
|
|
|
|
* seperately from current linear memory size.
|
|
|
|
* seperately from current linear memory size.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
fprintf(sandbox_perf_log,
|
|
|
|
fprintf(sandbox_perf_log,
|
|
|
|
"%lu,%s,%s,%s,%lu,%lu,%lu,%lu,%lu,%lu,%lu,%lu,%lu,%lu,%lu,%lu,%lu,%lu,%lu,%u,%u,%d,%d\n", sandbox->id,
|
|
|
|
"%lu,%s,%s,%s,%lu,%lu,%lu,%lu,%lu,%lu,%lu,%lu,%lu,%lu,%lu,%lu,%lu,%lu,%lu,%u,%u,%d,%d,%lf\n",
|
|
|
|
sandbox->tenant->name, sandbox->route->route, sandbox_state_stringify(sandbox->state),
|
|
|
|
sandbox->id, sandbox->tenant->name, sandbox->route->route, sandbox_state_stringify(sandbox->state),
|
|
|
|
sandbox->route->relative_deadline, sandbox->total_time, queued_duration,
|
|
|
|
sandbox->route->relative_deadline, sandbox->total_time, queued_duration,
|
|
|
|
sandbox->duration_of_state[SANDBOX_UNINITIALIZED], sandbox->duration_of_state[SANDBOX_ALLOCATED],
|
|
|
|
sandbox->duration_of_state[SANDBOX_UNINITIALIZED], sandbox->duration_of_state[SANDBOX_ALLOCATED],
|
|
|
|
sandbox->duration_of_state[SANDBOX_INITIALIZED], sandbox->duration_of_state[SANDBOX_RUNNABLE],
|
|
|
|
sandbox->duration_of_state[SANDBOX_INITIALIZED], sandbox->duration_of_state[SANDBOX_RUNNABLE],
|
|
|
@ -46,7 +47,8 @@ sandbox_perf_log_print_entry(struct sandbox *sandbox)
|
|
|
|
sandbox->duration_of_state[SANDBOX_RUNNING_SYS], sandbox->duration_of_state[SANDBOX_RUNNING_USER],
|
|
|
|
sandbox->duration_of_state[SANDBOX_RUNNING_SYS], sandbox->duration_of_state[SANDBOX_RUNNING_USER],
|
|
|
|
sandbox->duration_of_state[SANDBOX_ASLEEP], sandbox->duration_of_state[SANDBOX_RETURNED],
|
|
|
|
sandbox->duration_of_state[SANDBOX_ASLEEP], sandbox->duration_of_state[SANDBOX_RETURNED],
|
|
|
|
sandbox->duration_of_state[SANDBOX_COMPLETE], sandbox->duration_of_state[SANDBOX_ERROR],
|
|
|
|
sandbox->duration_of_state[SANDBOX_COMPLETE], sandbox->duration_of_state[SANDBOX_ERROR],
|
|
|
|
runtime_processor_speed_MHz, sandbox->response_code, 0, sandbox->payload_size);
|
|
|
|
runtime_processor_speed_MHz, sandbox->response_code, 0, sandbox->payload_size,
|
|
|
|
|
|
|
|
sandbox->regression_param);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static inline void
|
|
|
|
static inline void
|
|
|
|