From: pmf Date: Wed, 10 Oct 2007 22:01:20 +0000 (+0000) Subject: batchtest.c: fix save_state_copy_event() X-Git-Tag: v0.12.20~852 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=80947b9db5fd2439089aca0e81f8b0bde33aac2a;p=lttv.git batchtest.c: fix save_state_copy_event() git-svn-id: http://ltt.polymtl.ca/svn@2637 04897980-b3bd-0310-b5e0-8ef037075253 --- diff --git a/ltt/branches/poly/lttv/lttv/batchtest.c b/ltt/branches/poly/lttv/lttv/batchtest.c index ba4e00a9..2adf742e 100644 --- a/ltt/branches/poly/lttv/lttv/batchtest.c +++ b/ltt/branches/poly/lttv/lttv/batchtest.c @@ -228,8 +228,10 @@ gboolean save_state_copy_event(void *hook_data, void *call_data) FILE *fp; + LttTrace *trace = ((LttvTracefileContext *)tfs)->t_context->t; + if(ts->nb_event == 0 && - ltt_eventtype_name(ltt_event_eventtype(e)) + marker_get_info_from_id(trace, e->event_id)->name == QUARK_BLOCK_START) { if(a_save_sample != NULL) { filename = g_string_new("");