LttvTracefileContext *tfc = (LttvTracefileContext *)call_data;
LttvTracefileState *tfs = (LttvTracefileState *)call_data;
- LttvTraceState *ts =(LttvTraceState *)LTTV_TRACEFILE_CONTEXT(tfs)->t_context;
+ LttvTraceState *ts =(LttvTraceState *)((LttvTracefileContext*)tfs)->t_context;
LttEvent *e;
e = tfc->e;
* be added after the state update. */
LttvProcessState *process;
process = lttv_state_find_process(tfs, pid_out);
+ //process = tfs->process;
if(process != NULL) {
/* Well, the process_out existed : we must get it in the process hash
{
g_assert(pid_out == 0 || pid_out != process->ppid);
/* Process not present */
+ ProcessInfo *process_info;
processlist_add(process_list,
pid_out,
process->last_cpu,
tfc->t_context->index,
name,
&pl_height,
+ &process_info,
&hashed_process_data);
- processlist_get_process_pixels(process_list,
- pid_out,
- process->last_cpu,
- &birth,
- tfc->t_context->index,
+ processlist_get_pixels_from_data(process_list,
+ process_info,
+ hashed_process_data,
&y,
- &height,
- &hashed_process_data);
+ &height);
drawing_insert_square( drawing, y, height);
}
{
g_assert(pid_in == 0 || pid_in != process->ppid);
/* Process not present */
+ ProcessInfo *process_info;
processlist_add(process_list,
pid_in,
process->last_cpu,
tfc->t_context->index,
name,
&pl_height,
+ &process_info,
&hashed_process_data);
- processlist_get_process_pixels(process_list,
- pid_in,
- process->last_cpu,
- &birth,
- tfc->t_context->index,
+ processlist_get_pixels_from_data(process_list,
+ process_info,
+ hashed_process_data,
&y,
- &height,
- &hashed_process_data);
+ &height);
drawing_insert_square( drawing, y, height);
}
LttvTracefileContext *tfc = (LttvTracefileContext *)call_data;
LttvTracefileState *tfs = (LttvTracefileState *)call_data;
- LttvTraceState *ts =(LttvTraceState *)LTTV_TRACEFILE_CONTEXT(tfs)->t_context;
+ LttvTraceState *ts =(LttvTraceState *)((LttvTracefileContext*)tfs)->t_context;
LttEvent *e;
e = tfc->e;
&hashed_process_data_in) == 1)
{
g_assert(pid_in == 0 || pid_in != process_in->ppid);
+ ProcessInfo *process_info;
/* Process not present */
processlist_add(process_list,
pid_in,
tfc->t_context->index,
name,
&pl_height,
+ &process_info,
&hashed_process_data_in);
- processlist_get_process_pixels(process_list,
- pid_in,
- process_in->last_cpu,
- &birth,
- tfc->t_context->index,
- &y_in,
- &height,
- &hashed_process_data_in);
+ processlist_get_pixels_from_data(process_list,
+ process_info,
+ hashed_process_data_in,
+ &y_in,
+ &height);
drawing_insert_square( control_flow_data->drawing, y_in, height);
}
LttvTracefileContext *tfc = (LttvTracefileContext *)call_data;
LttvTracefileState *tfs = (LttvTracefileState *)call_data;
- LttvTraceState *ts =(LttvTraceState *)LTTV_TRACEFILE_CONTEXT(tfs)->t_context;
+ LttvTraceState *ts =(LttvTraceState *)((LttvTracefileContext*)tfs)->t_context;
LttEvent *e;
e = tfc->e;
&hashed_process_data) == 1)
{
g_assert(pid == 0 || pid != process->ppid);
+ ProcessInfo *process_info;
/* Process not present */
processlist_add(process_list,
pid,
tfc->t_context->index,
name,
&pl_height,
+ &process_info,
&hashed_process_data);
- processlist_get_process_pixels(process_list,
- pid,
- process->last_cpu,
- &birth,
- tfc->t_context->index,
- &y,
- &height,
- &hashed_process_data);
+ processlist_get_pixels_from_data(process_list,
+ process_info,
+ hashed_process_data,
+ &y,
+ &height);
drawing_insert_square( drawing, y, height);
}
LttvTracefileContext *tfc = (LttvTracefileContext *)call_data;
LttvTracefileState *tfs = (LttvTracefileState *)call_data;
- LttvTraceState *ts =(LttvTraceState *)LTTV_TRACEFILE_CONTEXT(tfs)->t_context;
+ LttvTraceState *ts =(LttvTraceState *)((LttvTracefileContext*)tfs)->t_context;
LttEvent *e;
e = tfc->e;
{
g_assert(pid == 0 || pid != process->ppid);
/* Process not present */
+ ProcessInfo *process_info;
processlist_add(process_list,
pid,
process->last_cpu,
tfc->t_context->index,
name,
&pl_height,
+ &process_info,
&hashed_process_data);
- processlist_get_process_pixels(process_list,
- pid,
- process->last_cpu,
- &birth,
- tfc->t_context->index,
- &y,
- &height,
- &hashed_process_data);
+ processlist_get_pixels_from_data(process_list,
+ process_info,
+ hashed_process_data,
+ &y,
+ &height);
drawing_insert_square( control_flow_data->drawing, y, height);
}
LttvTracefileContext *tfc = (LttvTracefileContext *)call_data;
LttvTracefileState *tfs = (LttvTracefileState *)call_data;
- LttvTraceState *ts =(LttvTraceState *)LTTV_TRACEFILE_CONTEXT(tfs)->t_context;
+ LttvTraceState *ts =(LttvTraceState *)((LttvTracefileContext*)tfs)->t_context;
LttEvent *e;
e = tfc->e;
{
g_assert(pid == 0 || pid != process->ppid);
/* Process not present */
+ ProcessInfo *process_info;
processlist_add(process_list,
pid,
process->last_cpu,
tfc->t_context->index,
name,
&pl_height,
+ &process_info,
&hashed_process_data);
- processlist_get_process_pixels(process_list,
- pid,
- process->last_cpu,
- &birth,
- tfc->t_context->index,
- &y,
- &height,
- &hashed_process_data);
+ processlist_get_pixels_from_data(process_list,
+ process_info,
+ hashed_process_data,
+ &y,
+ &height);
drawing_insert_square( control_flow_data->drawing, y, height);
}
LttvTracefileContext *tfc = (LttvTracefileContext *)call_data;
LttvTracefileState *tfs = (LttvTracefileState *)call_data;
- LttvTraceState *ts =(LttvTraceState *)LTTV_TRACEFILE_CONTEXT(tfs)->t_context;
+ LttvTraceState *ts =(LttvTraceState *)((LttvTracefileContext*)tfs)->t_context;
LttEvent *e;
e = tfc->e;
{
g_assert(child_pid == 0 || child_pid != process_child->ppid);
/* Process not present */
+ ProcessInfo *process_info;
processlist_add(process_list,
child_pid,
process_child->last_cpu,
tfc->t_context->index,
name,
&pl_height,
+ &process_info,
&hashed_process_data_child);
- processlist_get_process_pixels(process_list,
- child_pid,
- process_child->last_cpu,
- &birth,
- tfc->t_context->index,
- &y_child,
- &height,
- &hashed_process_data_child);
+ processlist_get_pixels_from_data(process_list,
+ process_info,
+ hashed_process_data_child,
+ &y_child,
+ &height);
drawing_insert_square( control_flow_data->drawing, y_child, height);
}
{
g_assert(pid == 0 || pid != process->ppid);
/* Process not present */
+ ProcessInfo *process_info;
processlist_add(process_list,
pid,
process->last_cpu,
tfc->t_context->index,
name,
&pl_height,
+ &process_info,
&hashed_process_data);
- processlist_get_process_pixels(process_list,
- pid,
- process->last_cpu,
- &birth,
- tfc->t_context->index,
- &y,
- &height,
- &hashed_process_data);
+ processlist_get_pixels_from_data(process_list,
+ process_info,
+ hashed_process_data,
+ &y,
+ &height);
drawing_insert_square( control_flow_data->drawing, y, height);
}
int before_chunk(void *hook_data, void *call_data)
{
EventsRequest *events_request = (EventsRequest*)hook_data;
- LttvTracesetState *tss = LTTV_TRACESET_STATE(call_data);
+ LttvTracesetState *tss = (LttvTracesetState*)call_data;
drawing_chunk_begin(events_request, tss);
int before_request(void *hook_data, void *call_data)
{
EventsRequest *events_request = (EventsRequest*)hook_data;
- LttvTracesetState *tss = LTTV_TRACESET_STATE(call_data);
+ LttvTracesetState *tss = (LttvTracesetState*)call_data;
drawing_data_request_begin(events_request, tss);
{
EventsRequest *events_request = (EventsRequest*)hook_data;
ControlFlowData *control_flow_data = events_request->viewer_data;
- LttvTracesetState *tss = LTTV_TRACESET_STATE(call_data);
- LttvTracesetContext *tsc = LTTV_TRACESET_CONTEXT(call_data);
+ LttvTracesetState *tss = (LttvTracesetState*)call_data;
+ LttvTracesetContext *tsc = (LttvTracesetContext*)call_data;
ProcessList *process_list = control_flow_data->process_list;
LttTime end_time = events_request->end_time;
{
EventsRequest *events_request = (EventsRequest*)hook_data;
ControlFlowData *control_flow_data = events_request->viewer_data;
- LttvTracesetState *tss = LTTV_TRACESET_STATE(call_data);
- LttvTracesetContext *tsc = LTTV_TRACESET_CONTEXT(call_data);
+ LttvTracesetState *tss = (LttvTracesetState*)call_data;
+ LttvTracesetContext *tsc = (LttvTracesetContext*)call_data;
LttvTracefileContext *tfc = lttv_traceset_context_get_current_tfc(tsc);
LttTime end_time;