X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Flttv%2FtextDump.c;h=797e7a12429e8d602257b3eeefffe80a1de8af43;hb=675f8f58941dc3ab0cd78625f45f4b73b7eb9320;hp=2734e3beea9266c7873345007435c6bbbf0c1b7c;hpb=c6bc9cb9f0b1432775ddc7cbbd2f2c2cfdb28474;p=lttv.git diff --git a/ltt/branches/poly/lttv/textDump.c b/ltt/branches/poly/lttv/textDump.c index 2734e3be..797e7a12 100644 --- 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, - gboolean mandatory_fields, gboolean field_names) -{ + gboolean mandatory_fields, gboolean field_names, LttvTracefileState *tfs) +{ 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 */ + g_string_append_printf(s,", %d, %s", tfs->process->pid, + g_quark_to_string(tfs->process->state->t)); } if(field) @@ -181,7 +183,7 @@ static int write_event_content(void *hook_data, void *call_data) 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) {