Messages in this thread Patch in this message | | | From | Sebastian Siewior <> | Subject | [PATCH] ftrace: also dump the entry->flag field | Date | Tue, 13 May 2008 18:52:45 +0200 |
| |
The data is collected anyway so why not print it?
Signed-off-by: Sebastian Siewior <bigeasy@linutronix.de> --- kernel/trace/trace.c | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c index 06c85b3..0b0e996 100644 --- a/kernel/trace/trace.c +++ b/kernel/trace/trace.c @@ -1514,7 +1514,14 @@ static int print_trace_fmt(struct trace_iterator *iter) ret = trace_seq_printf(s, "[%02d] ", iter->cpu); if (!ret) return 0; - ret = trace_seq_printf(s, "%5lu.%06lu: ", secs, usec_rem); + ret = trace_seq_printf(s, "%5lu.%06lu ", secs, usec_rem); + if (!ret) + return 0; + ret = trace_seq_printf(s, "{%2u|%c%c%c%c}: ", entry->preempt_count, + entry->flags & TRACE_FLAG_IRQS_OFF ? '.' : 'I', + entry->flags & TRACE_FLAG_NEED_RESCHED ? 'R' : '.', + entry->flags & TRACE_FLAG_HARDIRQ ? 'H' : '.', + entry->flags & TRACE_FLAG_SOFTIRQ ? 'S' : '.'); if (!ret) return 0; -- 1.5.4.3
| |