summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
6faf92e)
AC_PREREQ(2.57)
AC_INIT(FULL-PACKAGE-NAME, VERSION, BUG-REPORT-ADDRESS)
#AC_WITH_LTDL # not needed ?
AC_PREREQ(2.57)
AC_INIT(FULL-PACKAGE-NAME, VERSION, BUG-REPORT-ADDRESS)
#AC_WITH_LTDL # not needed ?
-AM_INIT_AUTOMAKE(LinuxTraceToolkitViewer,0.8.66-12102006)
+AM_INIT_AUTOMAKE(LinuxTraceToolkitViewer,0.8.67-26102006)
AM_CONFIG_HEADER(config.h)
AM_PROG_LIBTOOL
AM_CONFIG_HEADER(config.h)
AM_PROG_LIBTOOL
const LttEvent* event,
const LttTracefile* tracefile,
const LttTrace* trace,
const LttEvent* event,
const LttTracefile* tracefile,
const LttTrace* trace,
- const LttvTracefileContext* context
+ const LttvTracefileContext* context,
+ const LttvProcessState* state,
+ const LttvTraceContext* tc
gboolean lresult = FALSE, rresult = FALSE;
gboolean lresult = FALSE, rresult = FALSE;
- LttvProcessState* state;
-
- LttvTraceState *ts = (LttvTraceState*)context->t_context;
LttvTracefileState *tfs = (LttvTracefileState*)context;
LttvTracefileState *tfs = (LttvTracefileState*)context;
- guint cpu = tfs->cpu;
- state = ts->running_process[cpu];
+ if(tc)
+ ts = (LttvTraceState*)tc;
+ else if(context)
+ ts = (LttvTraceState*)context->t_context;
+
+ if(tfs) {
+ guint cpu = tfs->cpu;
+ if(ts)
+ state = ts->running_process[cpu];
+ }
/*
* Parse left branch
*/
if(t->left == LTTV_TREE_NODE) {
/*
* Parse left branch
*/
if(t->left == LTTV_TREE_NODE) {
- lresult = lttv_filter_tree_parse(t->l_child.t,event,tracefile,trace,context);
+ lresult = lttv_filter_tree_parse(t->l_child.t,event,tracefile,trace,context,NULL,NULL);
}
else if(t->left == LTTV_TREE_LEAF) {
lresult = lttv_filter_tree_parse_branch(t->l_child.leaf,event,tracefile,trace,state,context);
}
else if(t->left == LTTV_TREE_LEAF) {
lresult = lttv_filter_tree_parse_branch(t->l_child.leaf,event,tracefile,trace,state,context);
* Parse right branch
*/
if(t->right == LTTV_TREE_NODE) {
* Parse right branch
*/
if(t->right == LTTV_TREE_NODE) {
- rresult = lttv_filter_tree_parse(t->r_child.t,event,tracefile,trace,context);
+ rresult = lttv_filter_tree_parse(t->r_child.t,event,tracefile,trace,context,NULL,NULL);
}
else if(t->right == LTTV_TREE_LEAF) {
rresult = lttv_filter_tree_parse_branch(t->r_child.leaf,event,tracefile,trace,state,context);
}
else if(t->right == LTTV_TREE_LEAF) {
rresult = lttv_filter_tree_parse_branch(t->r_child.leaf,event,tracefile,trace,state,context);
const LttEvent* event,
const LttTracefile* tracefile,
const LttTrace* trace,
const LttEvent* event,
const LttTracefile* tracefile,
const LttTrace* trace,
- const LttvTracefileContext* context);
+ const LttvTracefileContext* context,
+ const LttvProcessState* pstate,
+ const LttvTraceContext* tc);
gboolean lttv_filter_tree_parse_branch(
const LttvSimpleExpression* se,
gboolean lttv_filter_tree_parse_branch(
const LttvSimpleExpression* se,
ltt_tracefile_get_event(tfc->tf),
tfc->tf,
tfc->t_context->t,
ltt_tracefile_get_event(tfc->tf),
tfc->tf,
tfc->t_context->t,
return FALSE;
}
if(sd->filter2 != NULL && sd->filter2->head != NULL &&
return FALSE;
}
if(sd->filter2 != NULL && sd->filter2->head != NULL &&
ltt_tracefile_get_event(tfc->tf),
tfc->tf,
tfc->t_context->t,
ltt_tracefile_get_event(tfc->tf),
tfc->tf,
tfc->t_context->t,
return FALSE;
}
if(sd->filter3 != NULL && sd->filter3->head != NULL &&
return FALSE;
}
if(sd->filter3 != NULL && sd->filter3->head != NULL &&
ltt_tracefile_get_event(tfc->tf),
tfc->tf,
tfc->t_context->t,
ltt_tracefile_get_event(tfc->tf),
tfc->tf,
tfc->t_context->t,
ltt_tracefile_get_event(tfc->tf),
tfc->tf,
tfc->t_context->t,
ltt_tracefile_get_event(tfc->tf),
tfc->tf,
tfc->t_context->t,
return FALSE;
}
if(sd->filter2 != NULL && sd->filter2->head != NULL &&
return FALSE;
}
if(sd->filter2 != NULL && sd->filter2->head != NULL &&
ltt_tracefile_get_event(tfc->tf),
tfc->tf,
tfc->t_context->t,
ltt_tracefile_get_event(tfc->tf),
tfc->tf,
tfc->t_context->t,
return FALSE;
}
if(sd->filter3 != NULL && sd->filter3->head != NULL &&
return FALSE;
}
if(sd->filter3 != NULL && sd->filter3->head != NULL &&
ltt_tracefile_get_event(tfc->tf),
tfc->tf,
tfc->t_context->t,
ltt_tracefile_get_event(tfc->tf),
tfc->tf,
tfc->t_context->t,
tfc->target_pid = pid_out;
if(!filter || !filter->head ||
lttv_filter_tree_parse(filter->head,e,tfc->tf,
tfc->target_pid = pid_out;
if(!filter || !filter->head ||
lttv_filter_tree_parse(filter->head,e,tfc->tf,
- tfc->t_context->t,tfc)) {
+ tfc->t_context->t,tfc,NULL,NULL)) {
/* For the pid_out */
/* First, check if the current process is in the state computation
* process list. If it is there, that means we must add it right now and
/* For the pid_out */
/* First, check if the current process is in the state computation
* process list. If it is there, that means we must add it right now and
tfc->target_pid = pid_in;
if(!filter || !filter->head ||
lttv_filter_tree_parse(filter->head,e,tfc->tf,
tfc->target_pid = pid_in;
if(!filter || !filter->head ||
lttv_filter_tree_parse(filter->head,e,tfc->tf,
- tfc->t_context->t,tfc)) {
+ tfc->t_context->t,tfc,NULL,NULL)) {
/* For the pid_in */
/* First, check if the current process is in the state computation
* process list. If it is there, that means we must add it right now and
/* For the pid_in */
/* First, check if the current process is in the state computation
* process list. If it is there, that means we must add it right now and
LttvFilter *filter = control_flow_data->filter;
if(filter != NULL && filter->head != NULL)
if(!lttv_filter_tree_parse(filter->head,e,tfc->tf,
LttvFilter *filter = control_flow_data->filter;
if(filter != NULL && filter->head != NULL)
if(!lttv_filter_tree_parse(filter->head,e,tfc->tf,
- tfc->t_context->t,tfc))
+ tfc->t_context->t,tfc,NULL,NULL))
return FALSE;
LttTime evtime = ltt_event_time(e);
return FALSE;
LttTime evtime = ltt_event_time(e);
LttvFilter *filter = control_flow_data->filter;
if(filter != NULL && filter->head != NULL)
if(!lttv_filter_tree_parse(filter->head,e,tfc->tf,
LttvFilter *filter = control_flow_data->filter;
if(filter != NULL && filter->head != NULL)
if(!lttv_filter_tree_parse(filter->head,e,tfc->tf,
- tfc->t_context->t,tfc))
+ tfc->t_context->t,tfc,NULL,NULL))
return FALSE;
LttTime evtime = ltt_event_time(e);
return FALSE;
LttTime evtime = ltt_event_time(e);
LttvFilter *filter = control_flow_data->filter;
if(filter != NULL && filter->head != NULL)
if(!lttv_filter_tree_parse(filter->head,e,tfc->tf,
LttvFilter *filter = control_flow_data->filter;
if(filter != NULL && filter->head != NULL)
if(!lttv_filter_tree_parse(filter->head,e,tfc->tf,
- tfc->t_context->t,tfc))
+ tfc->t_context->t,tfc,NULL,NULL))
return FALSE;
LttTime evtime = ltt_event_time(e);
return FALSE;
LttTime evtime = ltt_event_time(e);
LttvFilter *filter = control_flow_data->filter;
if(filter != NULL && filter->head != NULL)
if(!lttv_filter_tree_parse(filter->head,e,tfc->tf,
LttvFilter *filter = control_flow_data->filter;
if(filter != NULL && filter->head != NULL)
if(!lttv_filter_tree_parse(filter->head,e,tfc->tf,
- tfc->t_context->t,tfc))
+ tfc->t_context->t,tfc,NULL,NULL))
return FALSE;
LttTime evtime = ltt_event_time(e);
return FALSE;
LttTime evtime = ltt_event_time(e);
LttvFilter *filter = control_flow_data->filter;
if(filter != NULL && filter->head != NULL)
if(!lttv_filter_tree_parse(filter->head,e,tfc->tf,
LttvFilter *filter = control_flow_data->filter;
if(filter != NULL && filter->head != NULL)
if(!lttv_filter_tree_parse(filter->head,e,tfc->tf,
- tfc->t_context->t,tfc))
+ tfc->t_context->t,tfc,NULL,NULL))
return FALSE;
LttTime evtime = ltt_event_time(e);
return FALSE;
LttTime evtime = ltt_event_time(e);
LttvFilter *filter = control_flow_data->filter;
if(filter != NULL && filter->head != NULL)
if(!lttv_filter_tree_parse(filter->head,e,tfc->tf,
LttvFilter *filter = control_flow_data->filter;
if(filter != NULL && filter->head != NULL)
if(!lttv_filter_tree_parse(filter->head,e,tfc->tf,
- tfc->t_context->t,tfc))
+ tfc->t_context->t,tfc,NULL,NULL))
return FALSE;
LttTime evtime = ltt_event_time(e);
return FALSE;
LttTime evtime = ltt_event_time(e);
LttvFilter *filter = control_flow_data->filter;
if(filter != NULL && filter->head != NULL)
if(!lttv_filter_tree_parse(filter->head,e,tfc->tf,
LttvFilter *filter = control_flow_data->filter;
if(filter != NULL && filter->head != NULL)
if(!lttv_filter_tree_parse(filter->head,e,tfc->tf,
- tfc->t_context->t,tfc))
+ tfc->t_context->t,tfc,NULL,NULL))
return FALSE;
guint cpu = tfs->cpu;
return FALSE;
guint cpu = tfs->cpu;
LttvFilter *filter = control_flow_data->filter;
if(filter != NULL && filter->head != NULL)
if(!lttv_filter_tree_parse(filter->head,e,tfc->tf,
LttvFilter *filter = control_flow_data->filter;
if(filter != NULL && filter->head != NULL)
if(!lttv_filter_tree_parse(filter->head,e,tfc->tf,
- tfc->t_context->t,tfc))
+ tfc->t_context->t,tfc,NULL,NULL))
return FALSE;
guint cpu = tfs->cpu;
return FALSE;
guint cpu = tfs->cpu;
LttvFilter *filter = control_flow_data->filter;
if(filter != NULL && filter->head != NULL)
if(!lttv_filter_tree_parse(filter->head,e,tfc->tf,
LttvFilter *filter = control_flow_data->filter;
if(filter != NULL && filter->head != NULL)
if(!lttv_filter_tree_parse(filter->head,e,tfc->tf,
- tfc->t_context->t,tfc))
+ tfc->t_context->t,tfc,NULL,NULL))
return FALSE;
LttTime evtime = ltt_event_time(e);
return FALSE;
LttTime evtime = ltt_event_time(e);
if(unlikely(process != NULL)) {
if(unlikely(process != NULL)) {
+ LttvFilter *filter = control_flow_data->filter;
+ if(filter != NULL && filter->head != NULL)
+ if(!lttv_filter_tree_parse(filter->head,NULL,NULL,
+ tc->t,NULL,process,tc))
+ return FALSE;
+
/* Only draw for processes that are currently in the trace states */
ProcessList *process_list = control_flow_data->process_list;
/* Only draw for processes that are currently in the trace states */
ProcessList *process_list = control_flow_data->process_list;
LttvFilter *filter = control_flow_data->filter;
if(filter != NULL && filter->head != NULL)
if(!lttv_filter_tree_parse(filter->head,e,tfc->tf,
LttvFilter *filter = control_flow_data->filter;
if(filter != NULL && filter->head != NULL)
if(!lttv_filter_tree_parse(filter->head,e,tfc->tf,
- tfc->t_context->t,tfc))
+ tfc->t_context->t,tfc,NULL,NULL))
return FALSE;
LttTime evtime = ltt_event_time(e);
return FALSE;
LttTime evtime = ltt_event_time(e);
LttvFilter *filter = event_viewer_data->main_win_filter;
if(filter != NULL && filter->head != NULL)
if(!lttv_filter_tree_parse(filter->head,e,tfc->tf,
LttvFilter *filter = event_viewer_data->main_win_filter;
if(filter != NULL && filter->head != NULL)
if(!lttv_filter_tree_parse(filter->head,e,tfc->tf,
- tfc->t_context->t,tfc))
+ tfc->t_context->t,tfc,NULL,NULL))
return FALSE;
filter = event_viewer_data->filter;
if(filter != NULL && filter->head != NULL)
if(!lttv_filter_tree_parse(filter->head,e,tfc->tf,
return FALSE;
filter = event_viewer_data->filter;
if(filter != NULL && filter->head != NULL)
if(!lttv_filter_tree_parse(filter->head,e,tfc->tf,
- tfc->t_context->t,tfc))
+ tfc->t_context->t,tfc,NULL,NULL))
LttvFilter *filter = event_viewer_data->main_win_filter;
if(filter != NULL && filter->head != NULL)
if(!lttv_filter_tree_parse(filter->head,e,tfc->tf,
LttvFilter *filter = event_viewer_data->main_win_filter;
if(filter != NULL && filter->head != NULL)
if(!lttv_filter_tree_parse(filter->head,e,tfc->tf,
- tfc->t_context->t,tfc))
+ tfc->t_context->t,tfc,NULL,NULL))
return FALSE;
filter = event_viewer_data->filter;
if(filter != NULL && filter->head != NULL)
if(!lttv_filter_tree_parse(filter->head,e,tfc->tf,
return FALSE;
filter = event_viewer_data->filter;
if(filter != NULL && filter->head != NULL)
if(!lttv_filter_tree_parse(filter->head,e,tfc->tf,
- tfc->t_context->t,tfc))
+ tfc->t_context->t,tfc,NULL,NULL))
return FALSE;
lttv_traceset_context_position_save(tfc->t_context->ts_context,
return FALSE;
lttv_traceset_context_position_save(tfc->t_context->ts_context,
LttvFilter *histo_filter = histocontrol_flow_data->histo_main_win_filter;
if(histo_filter != NULL && histo_filter->head != NULL)
if(!lttv_filter_tree_parse(histo_filter->head,e,tfc->tf,
LttvFilter *histo_filter = histocontrol_flow_data->histo_main_win_filter;
if(histo_filter != NULL && histo_filter->head != NULL)
if(!lttv_filter_tree_parse(histo_filter->head,e,tfc->tf,
- tfc->t_context->t,tfc))
+ tfc->t_context->t,tfc,NULL,NULL))
return FALSE;
TimeWindow time_window = lttvwindow_get_time_window(histocontrol_flow_data->tab);
return FALSE;
TimeWindow time_window = lttvwindow_get_time_window(histocontrol_flow_data->tab);
*/
if(filter->head != NULL)
if(!lttv_filter_tree_parse(filter->head,e,tfc->tf,
*/
if(filter->head != NULL)
if(!lttv_filter_tree_parse(filter->head,e,tfc->tf,
- tfc->t_context->t,tfc))
+ tfc->t_context->t,tfc,NULL,NULL))
return FALSE;
lttv_event_to_string(e, a_string, TRUE, a_field_names, tfs);
return FALSE;
lttv_event_to_string(e, a_string, TRUE, a_field_names, tfs);