projects
/
lttv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Create a LttvEvent object
[lttv.git]
/
lttv
/
modules
/
text
/
textDump.c
diff --git
a/lttv/modules/text/textDump.c
b/lttv/modules/text/textDump.c
index ddee070b119e78bcfc40b29610152b483aa22988..dd5f5ee07f2b36254614c819e1e6e8d3c69a7318 100644
(file)
--- a/
lttv/modules/text/textDump.c
+++ b/
lttv/modules/text/textDump.c
@@
-40,6
+40,8
@@
#include <stdio.h>
#include <inttypes.h>
#include <stdio.h>
#include <inttypes.h>
+#include <lttv/event.h>
+
static gboolean
a_noevent,
a_no_field_names,
static gboolean
a_noevent,
a_no_field_names,
@@
-302,13
+304,14
@@
static gboolean write_trace_header(void *hook_data, void *call_data)
return FALSE;
}
return FALSE;
}
-
static int write_event_content(void *hook_data, void *call_data)
{
gboolean result;
LttvIAttribute *attributes = LTTV_IATTRIBUTE(lttv_global_attributes());
static int write_event_content(void *hook_data, void *call_data)
{
gboolean result;
LttvIAttribute *attributes = LTTV_IATTRIBUTE(lttv_global_attributes());
+ LttvEvent *event = (struct bt_ctf_event *)call_data;
+#ifdef BABEL_CLEANUP
LttvTracefileContext *tfc = (LttvTracefileContext *)call_data;
LttvTracefileState *tfs = (LttvTracefileState *)call_data;
LttvTracefileContext *tfc = (LttvTracefileContext *)call_data;
LttvTracefileState *tfs = (LttvTracefileState *)call_data;
@@
-340,17
+343,25
@@
static int write_event_content(void *hook_data, void *call_data)
if(!lttv_filter_tree_parse(filter->head,e,tfc->tf,
tfc->t_context->t,tfc,NULL,NULL))
return FALSE;
if(!lttv_filter_tree_parse(filter->head,e,tfc->tf,
tfc->t_context->t,tfc,NULL,NULL))
return FALSE;
-
+#endif
+#ifdef BABEL_CLEANUP
lttv_event_to_string(e, a_string, TRUE, !a_no_field_names, tfs);
lttv_event_to_string(e, a_string, TRUE, !a_no_field_names, tfs);
+#endif
+ /* TODO 2012-03-12 Add state info */
+ lttv_event_to_string(event, a_string, !a_no_field_names);
+
+#ifdef BABEL_CLEANUP
if(a_state) {
g_string_append_printf(a_string, " %s ",
g_quark_to_string(process->state->s));
}
if(a_state) {
g_string_append_printf(a_string, " %s ",
g_quark_to_string(process->state->s));
}
+#endif
g_string_append_printf(a_string,"\n");
fputs(a_string->str, a_file);
g_string_append_printf(a_string,"\n");
fputs(a_string->str, a_file);
+
return FALSE;
}
return FALSE;
}
This page took
0.025769 seconds
and
4
git commands to generate.