projects
/
lttv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update
[lttv.git]
/
ltt
/
branches
/
poly
/
lttv
/
lttv
/
print.c
diff --git
a/ltt/branches/poly/lttv/lttv/print.c
b/ltt/branches/poly/lttv/lttv/print.c
index 84f3af795adab287833024dd45a15b36119099a1..6bcb2387fe5f0acccf22ad45a3c0cad419c86e02 100644
(file)
--- a/
ltt/branches/poly/lttv/lttv/print.c
+++ b/
ltt/branches/poly/lttv/lttv/print.c
@@
-161,7
+161,7
@@
void lttv_event_to_string(LttEvent *e, GString *s,
LttTime time;
LttTime time;
- guint cpu =
ltt_tracefile_num(tfs->parent.tf)
;
+ guint cpu =
tfs->cpu
;
LttvTraceState *ts = (LttvTraceState*)tfs->parent.t_context;
LttvProcessState *process = ts->running_process[cpu];
LttvTraceState *ts = (LttvTraceState*)tfs->parent.t_context;
LttvProcessState *process = ts->running_process[cpu];
@@
-183,13
+183,17
@@
void lttv_event_to_string(LttEvent *e, GString *s,
g_quark_to_string(ltt_tracefile_name(tfs->parent.tf)),
cpu);
/* Print the process id and the state/interrupt type of the process */
g_quark_to_string(ltt_tracefile_name(tfs->parent.tf)),
cpu);
/* Print the process id and the state/interrupt type of the process */
- g_string_append_printf(s,", %u, %u, %s", process->pid,
- process->ppid,
+ g_string_append_printf(s,", %u, %s, %u, 0x%llX, %s", process->pid,
+ g_quark_to_string(process->name),
+ process->ppid, process->current_function,
g_quark_to_string(process->state->t));
}
event_type = ltt_event_eventtype(e);
num_fields = ltt_eventtype_num_fields(event_type);
g_quark_to_string(process->state->t));
}
event_type = ltt_event_eventtype(e);
num_fields = ltt_eventtype_num_fields(event_type);
+ if(num_fields == 0) return;
+ g_string_append_printf(s, " ");
+ g_string_append_printf(s, "{ ");
for(i=0; i<num_fields; i++) {
field = ltt_eventtype_field(event_type, i);
if(field_names) {
for(i=0; i<num_fields; i++) {
field = ltt_eventtype_field(event_type, i);
if(field_names) {
@@
-198,7
+202,9
@@
void lttv_event_to_string(LttEvent *e, GString *s,
g_string_append_printf(s, "%s = ", g_quark_to_string(name));
}
lttv_print_field(e, field, s, field_names);
g_string_append_printf(s, "%s = ", g_quark_to_string(name));
}
lttv_print_field(e, field, s, field_names);
+ if(i != num_fields-1) g_string_append_printf(s, ", ");
}
}
+ g_string_append_printf(s, " }");
}
static void init()
}
static void init()
This page took
0.027559 seconds
and
4
git commands to generate.