#include "cfv.h"
#include "processlist.h"
#include "drawing.h"
-#include "cfv-private.h"
#define MAX_PATH_LEN 256
control_flow_data->tab = tab;
- //g_debug("time width2 : %u",time_window->time_width);
// Unreg done in the GuiControlFlow_Destructor
lttvwindow_register_traceset_notify(tab,
traceset_notify,
}
/* Function that selects the color of status&exemode line */
-static __inline__ PropertiesLine prepare_s_e_line(LttvProcessState *process)
+static inline PropertiesLine prepare_s_e_line(LttvProcessState *process)
{
PropertiesLine prop_line;
prop_line.line_width = 2;
}
#if 0
-static __inline__ PropertiesLine prepare_status_line(LttvProcessState *process)
+static inline PropertiesLine prepare_status_line(LttvProcessState *process)
{
PropertiesLine prop_line;
prop_line.line_width = 2;
{
EventsRequest *events_request = (EventsRequest*)hook_data;
ControlFlowData *control_flow_data = events_request->viewer_data;
- Drawing_t *drawing = control_flow_data->drawing;
LttvTracefileContext *tfc = (LttvTracefileContext *)call_data;
LttvTracefileState *tfs = (LttvTracefileState *)call_data;
- LttvTraceState *ts =(LttvTraceState *)((LttvTracefileContext*)tfs)->t_context;
LttEvent *e;
e = tfc->e;
LttTime evtime = ltt_event_time(e);
- guint width = drawing->width;
-
/* we are in a schedchange, before the state update. We must draw the
* items corresponding to the state before it changes : now is the right
* time to do it.
hashed_process_data,
&y,
&height);
- drawing_insert_square( drawing, y, height);
+ drawing_insert_square( control_flow_data->drawing, y, height);
}
/* Now, the process is in the state hash and our own process hash.
|| ltt_time_compare(evtime, time_window.end_time) == 1)
return;
#endif //EXTRA_CHECK
-
+ Drawing_t *drawing = control_flow_data->drawing;
+ guint width = drawing->width;
guint x;
convert_time_to_pixels(
time_window,
|| ltt_time_compare(evtime, time_window.end_time) == 1)
return;
#endif //EXTRA_CHECK
-
+ Drawing_t *drawing = control_flow_data->drawing;
+ guint width = drawing->width;
guint x;
convert_time_to_pixels(
time_window,
hashed_process_data,
&y,
&height);
- drawing_insert_square( drawing, y, height);
+ drawing_insert_square( control_flow_data->drawing, y, height);
}
//We could set the current process and hash here, but will be done
//by after schedchange hook
|| ltt_time_compare(evtime, time_window.end_time) == 1)
return;
#endif //EXTRA_CHECK
+ Drawing_t *drawing = control_flow_data->drawing;
+ guint width = drawing->width;
guint x;
convert_time_to_pixels(
time_window,
|| ltt_time_compare(evtime, time_window.end_time) == 1)
return;
#endif //EXTRA_CHECK
+ Drawing_t *drawing = control_flow_data->drawing;
+ guint width = drawing->width;
guint x;
convert_time_to_pixels(
LttvTracefileContext *tfc = (LttvTracefileContext *)call_data;
LttvTracefileState *tfs = (LttvTracefileState *)call_data;
- LttvTraceState *ts =(LttvTraceState *)((LttvTracefileContext*)tfs)->t_context;
LttEvent *e;
e = tfc->e;
LttTime evtime = ltt_event_time(e);
- guint width = control_flow_data->drawing->width;
-
/* Add process to process list (if not present) */
LttvProcessState *process_out, *process_in;
LttTime birth;
//process_in = lttv_state_find_process(tfs, pid_in);
process_in = tfs->process;
/* It should exist, because we are after the state update. */
+#ifdef EXTRA_CHECK
g_assert(process_in != NULL);
-
+#endif //EXTRA_CHECK
birth = process_in->creation_time;
hashed_process_data_in = processlist_get_process_data(process_list,
|| ltt_time_compare(evtime, time_window.end_time) == 1)
return;
#endif //EXTRA_CHECK
-
+ Drawing_t *drawing = control_flow_data->drawing;
+ guint width = drawing->width;
guint new_x;
convert_time_to_pixels(
}
#if 0
-static __inline__ PropertiesLine prepare_execmode_line(LttvProcessState *process)
+static inline PropertiesLine prepare_execmode_line(LttvProcessState *process)
{
PropertiesLine prop_line;
prop_line.line_width = 1;
{
EventsRequest *events_request = (EventsRequest*)hook_data;
ControlFlowData *control_flow_data = events_request->viewer_data;
- Drawing_t *drawing = control_flow_data->drawing;
LttvTracefileContext *tfc = (LttvTracefileContext *)call_data;
LttvTracefileState *tfs = (LttvTracefileState *)call_data;
- LttvTraceState *ts =(LttvTraceState *)((LttvTracefileContext*)tfs)->t_context;
LttEvent *e;
e = tfc->e;
LttTime evtime = ltt_event_time(e);
- guint width = drawing->width;
/* we are in a execmode, before the state update. We must draw the
* items corresponding to the state before it changes : now is the right
hashed_process_data,
&y,
&height);
- drawing_insert_square( drawing, y, height);
+ drawing_insert_square( control_flow_data->drawing, y, height);
}
/* Set the current process */
process_list->current_hash_data[process->last_cpu_index] =
|| ltt_time_compare(evtime, time_window.end_time) == 1)
return;
#endif //EXTRA_CHECK
+ Drawing_t *drawing = control_flow_data->drawing;
+ guint width = drawing->width;
guint x;
convert_time_to_pixels(
time_window,
|| ltt_time_compare(evtime, time_window.end_time) == 1)
return;
#endif //EXTRA_CHECK
+ Drawing_t *drawing = control_flow_data->drawing;
+ guint width = drawing->width;
guint x;
convert_time_to_pixels(
LttvTracefileContext *tfc = (LttvTracefileContext *)call_data;
LttvTracefileState *tfs = (LttvTracefileState *)call_data;
- LttvTraceState *ts =(LttvTraceState *)((LttvTracefileContext*)tfs)->t_context;
LttEvent *e;
e = tfc->e;
LttTime evtime = ltt_event_time(e);
- guint width = control_flow_data->drawing->width;
/* Add process to process list (if not present) */
LttvProcessState *process;
|| ltt_time_compare(evtime, time_window.end_time) == 1)
return;
#endif //EXTRA_CHECK
-
-
+ Drawing_t *drawing = control_flow_data->drawing;
+ guint width = drawing->width;
guint new_x;
convert_time_to_pixels(
{
EventsRequest *events_request = (EventsRequest*)hook_data;
ControlFlowData *control_flow_data = events_request->viewer_data;
- Drawing_t *drawing = control_flow_data->drawing;
LttvTracefileContext *tfc = (LttvTracefileContext *)call_data;
LttvTracefileState *tfs = (LttvTracefileState *)call_data;
- LttvTraceState *ts =(LttvTraceState *)((LttvTracefileContext*)tfs)->t_context;
LttEvent *e;
e = tfc->e;
LttTime evtime = ltt_event_time(e);
- guint width = control_flow_data->drawing->width;
guint sub_id;
{
|| ltt_time_compare(evtime, time_window.end_time) == 1)
return;
#endif //EXTRA_CHECK
-
+ Drawing_t *drawing = control_flow_data->drawing;
+ guint width = drawing->width;
guint x;
convert_time_to_pixels(
time_window,
|| ltt_time_compare(evtime, time_window.end_time) == 1)
return;
#endif //EXTRA_CHECK
-
+ Drawing_t *drawing = control_flow_data->drawing;
+ guint width = drawing->width;
guint x;
convert_time_to_pixels(
LttvTracefileContext *tfc = (LttvTracefileContext *)call_data;
LttvTracefileState *tfs = (LttvTracefileState *)call_data;
- LttvTraceState *ts =(LttvTraceState *)((LttvTracefileContext*)tfs)->t_context;
LttEvent *e;
e = tfc->e;
LttTime evtime = ltt_event_time(e);
- guint width = control_flow_data->drawing->width;
guint sub_id;
guint param1;
|| ltt_time_compare(evtime, time_window.end_time) == 1)
return;
#endif //EXTRA_CHECK
-
+ Drawing_t *drawing = control_flow_data->drawing;
+ guint width = drawing->width;
guint new_x;
convert_time_to_pixels(
time_window,
|| ltt_time_compare(evtime, time_window.end_time) == 1)
return;
#endif //EXTRA_CHECK
-
+ Drawing_t *drawing = control_flow_data->drawing;
+ guint width = drawing->width;
guint new_x;
convert_time_to_pixels(
time_window,
EventsRequest *events_request = closure_data->events_request;
ControlFlowData *control_flow_data = events_request->viewer_data;
- Drawing_t *drawing = control_flow_data->drawing;
LttvTracesetState *tss = closure_data->tss;
- LttvTracesetContext *tsc = (LttvTracesetContext*)closure_data->tss;
+ LttvTracesetContext *tsc = (LttvTracesetContext*)tss;
LttTime evtime = closure_data->end_time;
- guint width = drawing->width;
{
/* For the process */
|| ltt_time_compare(evtime, time_window.end_time) == 1)
return;
#endif //EXTRA_CHECK
+ Drawing_t *drawing = control_flow_data->drawing;
+ guint width = drawing->width;
guint x;
convert_time_to_pixels(