projects
/
lttv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
dependency fix
[lttv.git]
/
ltt
/
branches
/
poly
/
lttv
/
textDump.c
diff --git
a/ltt/branches/poly/lttv/textDump.c
b/ltt/branches/poly/lttv/textDump.c
index 2734e3beea9266c7873345007435c6bbbf0c1b7c..797e7a12429e8d602257b3eeefffe80a1de8af43 100644
(file)
--- a/
ltt/branches/poly/lttv/textDump.c
+++ b/
ltt/branches/poly/lttv/textDump.c
@@
-92,8
+92,8
@@
void print_field(LttEvent *e, LttField *f, GString *s, gboolean field_names) {
void lttv_event_to_string(LttEvent *e, LttTracefile *tf, GString *s,
void lttv_event_to_string(LttEvent *e, LttTracefile *tf, GString *s,
- gboolean mandatory_fields, gboolean field_names)
-{
+ gboolean mandatory_fields, gboolean field_names
, LttvTracefileState *tfs
)
+{
LttFacility *facility;
LttEventType *event_type;
LttFacility *facility;
LttEventType *event_type;
@@
-116,6
+116,8
@@
void lttv_event_to_string(LttEvent *e, LttTracefile *tf, GString *s,
ltt_eventtype_name(event_type), (long)time.tv_sec, time.tv_nsec,
ltt_tracefile_name(tf));
/* Print the process id and the state/interrupt type of the process */
ltt_eventtype_name(event_type), (long)time.tv_sec, time.tv_nsec,
ltt_tracefile_name(tf));
/* Print the process id and the state/interrupt type of the process */
+ g_string_append_printf(s,", %d, %s", tfs->process->pid,
+ g_quark_to_string(tfs->process->state->t));
}
if(field)
}
if(field)
@@
-181,7
+183,7
@@
static int write_event_content(void *hook_data, void *call_data)
e = tfc->e;
e = tfc->e;
- lttv_event_to_string(e, tfc->tf, a_string, TRUE, a_field_names);
+ lttv_event_to_string(e, tfc->tf, a_string, TRUE, a_field_names
, tfs
);
g_string_append_printf(a_string,"\n");
if(a_state) {
g_string_append_printf(a_string,"\n");
if(a_state) {
This page took
0.022687 seconds
and
4
git commands to generate.