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 004384a8885321563bed9153a25e540f03618bae..dd5f5ee07f2b36254614c819e1e6e8d3c69a7318 100644
(file)
--- a/
lttv/modules/text/textDump.c
+++ b/
lttv/modules/text/textDump.c
@@
-40,7
+40,7
@@
#include <stdio.h>
#include <inttypes.h>
#include <stdio.h>
#include <inttypes.h>
-#include <
babeltrace/ctf/events
.h>
+#include <
lttv/event
.h>
static gboolean
a_noevent,
static gboolean
a_noevent,
@@
-304,14
+304,13
@@
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());
-
struct bt_ctf_e
vent *event = (struct bt_ctf_event *)call_data;
+
LttvE
vent *event = (struct bt_ctf_event *)call_data;
#ifdef BABEL_CLEANUP
LttvTracefileContext *tfc = (LttvTracefileContext *)call_data;
#ifdef BABEL_CLEANUP
LttvTracefileContext *tfc = (LttvTracefileContext *)call_data;
@@
-348,10
+347,10
@@
static int write_event_content(void *hook_data, void *call_data)
#ifdef BABEL_CLEANUP
lttv_event_to_string(e, a_string, TRUE, !a_no_field_names, tfs);
#endif
#ifdef BABEL_CLEANUP
lttv_event_to_string(e, a_string, TRUE, !a_no_field_names, tfs);
#endif
- g_string_set_size(a_string,0);
- g_string_append_printf(a_string, " %s %llu",
- bt_ctf_event_name(event),
- bt_ctf_get_timestamp_raw(event));
+
+ /* 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 ",
#ifdef BABEL_CLEANUP
if(a_state) {
g_string_append_printf(a_string, " %s ",
This page took
0.02284 seconds
and
4
git commands to generate.