From 80947b9db5fd2439089aca0e81f8b0bde33aac2a Mon Sep 17 00:00:00 2001 From: pmf Date: Wed, 10 Oct 2007 22:01:20 +0000 Subject: [PATCH] batchtest.c: fix save_state_copy_event() git-svn-id: http://ltt.polymtl.ca/svn@2637 04897980-b3bd-0310-b5e0-8ef037075253 --- ltt/branches/poly/lttv/lttv/batchtest.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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(""); -- 2.34.1