Message ID | 20230109184034.359f10ad@gandalf.local.home (mailing list archive) |
---|---|
State | Accepted |
Commit | 89b98f04411788e6bc8018e48743227f9915a627 |
Headers | show |
Series | libtraceevent: Show migrate-disable field | expand |
diff --git a/src/event-parse.c b/src/event-parse.c index 18db7fcb456d..e655087dad60 100644 --- a/src/event-parse.c +++ b/src/event-parse.c @@ -6768,8 +6768,13 @@ static void data_latency_format(struct tep_handle *tep, struct trace_seq *s, (hardirq && softirq) ? 'H' : hardirq ? 'h' : softirq ? 's' : '.'); - if (pc) - trace_seq_printf(&sq, "%x", pc); + if (pc & 0xf) + trace_seq_printf(&sq, "%x", pc & 0xf); + else + trace_seq_printf(&sq, "."); + + if (pc & 0xf0) + trace_seq_printf(&sq, "%x", pc >> 4); else trace_seq_printf(&sq, ".");