LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: Ingo Molnar <mingo@elte.hu>
To: Steven Rostedt <rostedt@goodmis.org>
Cc: linux-kernel@vger.kernel.org,
Andrew Morton <akpm@linux-foundation.org>,
Frederic Weisbecker <fweisbec@gmail.com>,
Theodore Tso <tytso@mit.edu>,
Arjan van de Ven <arjan@infradead.org>,
Steven Rostedt <srostedt@redhat.com>
Subject: Re: [PATCH] tracing: branch tracer, tweak output
Date: Wed, 12 Nov 2008 14:14:09 +0100 [thread overview]
Message-ID: <20081112131409.GB24472@elte.hu> (raw)
In-Reply-To: <alpine.DEB.1.10.0811120803141.2529@gandalf.stny.rr.com>
* Steven Rostedt <rostedt@goodmis.org> wrote:
>
> On Wed, 12 Nov 2008, Ingo Molnar wrote:
>
> >
> > a small detail:
> >
> > > For example:
> > >
> > > bash-3471 [003] 357.014755: [INCORRECT] sched_info_dequeued:sched_stats.h:177
> > > bash-3471 [003] 357.014756: [correct] update_curr:sched_fair.c:489
> > > bash-3471 [003] 357.014758: [correct] calc_delta_fair:sched_fair.c:411
> > > bash-3471 [003] 357.014759: [correct] account_group_exec_runtime:sched_stats.h:356
> > > bash-3471 [003] 357.014761: [correct] update_curr:sched_fair.c:489
> > > bash-3471 [003] 357.014763: [INCORRECT] calc_delta_fair:sched_fair.c:411
> > > bash-3471 [003] 357.014765: [correct] calc_delta_mine:sched.c:1279
> >
> > it's always good to have such fields aligned vertically. Something
> > like this would be shorter and visually much easier to parse:
> >
> > bash-3471 [003] 357.014755: [ MISS ] sched_info_dequeued:sched_stats.h:177
> > bash-3471 [003] 357.014756: [ .... ] update_curr:sched_fair.c:489
> > bash-3471 [003] 357.014758: [ .... ] calc_delta_fair:sched_fair.c:411
> >
> > any objections against the patch below which implements this?
>
> How about "[ OK ]" instead of "[ .... ]". That would be easier to
> understand.
ok, agreed - just the use of capitals is not good, as it unnecessarily
draws visual attention. How about:
> bash-3471 [003] 357.014755: [ MISS ] sched_info_dequeued:sched_stats.h:177
> bash-3471 [003] 357.014756: [ ok ] update_curr:sched_fair.c:489
> bash-3471 [003] 357.014758: [ ok ] calc_delta_fair:sched_fair.c:411
via the patch below?
Ingo
-------------->
>From 68d119f0a66f7e3663304343b072e56a2693446b Mon Sep 17 00:00:00 2001
From: Ingo Molnar <mingo@elte.hu>
Date: Wed, 12 Nov 2008 14:09:30 +0100
Subject: [PATCH] tracing: finetune branch-tracer output
Steve suggested the to change the output from this:
> bash-3471 [003] 357.014755: [ MISS ] sched_info_dequeued:sched_stats.h:177
> bash-3471 [003] 357.014756: [ .... ] update_curr:sched_fair.c:489
> bash-3471 [003] 357.014758: [ .... ] calc_delta_fair:sched_fair.c:411
to this:
> bash-3471 [003] 357.014755: [ MISS ] sched_info_dequeued:sched_stats.h:177
> bash-3471 [003] 357.014756: [ ok ] update_curr:sched_fair.c:489
> bash-3471 [003] 357.014758: [ ok ] calc_delta_fair:sched_fair.c:411
as it makes it clearer to the user what it means exactly.
Acked-by: Steven Rostedt <srostedt@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
---
kernel/trace/trace.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c
index 728a46e..d842db1 100644
--- a/kernel/trace/trace.c
+++ b/kernel/trace/trace.c
@@ -1657,7 +1657,7 @@ print_lat_fmt(struct trace_iterator *iter, unsigned int trace_idx, int cpu)
trace_assign_type(field, entry);
trace_seq_printf(s, "[%s] %s:%s:%d\n",
- field->correct ? " .... " : " MISS ",
+ field->correct ? " ok " : " MISS ",
field->func,
field->file,
field->line);
@@ -1808,7 +1808,7 @@ static enum print_line_t print_trace_fmt(struct trace_iterator *iter)
trace_assign_type(field, entry);
trace_seq_printf(s, "[%s] %s:%s:%d\n",
- field->correct ? " .... " : " MISS ",
+ field->correct ? " ok " : " MISS ",
field->func,
field->file,
field->line);
next prev parent reply other threads:[~2008-11-12 13:15 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-12 5:14 [PATCH 0/2] unlikely profiler and tracer Steven Rostedt
2008-11-12 5:14 ` [PATCH 1/2] trace: profile likely and unlikely annotations Steven Rostedt
2008-11-12 5:14 ` [PATCH 2/2] ftrace: unlikely annotation tracer Steven Rostedt
2008-11-12 11:25 ` [PATCH] tracing: branch tracer, tweak output Ingo Molnar
2008-11-12 12:13 ` Ingo Molnar
2008-11-12 12:27 ` [PATCH] tracing: branch tracer, fix vdso crash Ingo Molnar
2008-11-12 13:04 ` [PATCH] tracing: branch tracer, tweak output Steven Rostedt
2008-11-12 13:14 ` Ingo Molnar [this message]
2008-11-12 10:53 ` [PATCH 0/2] unlikely profiler and tracer Ingo Molnar
2008-11-12 13:00 ` Steven Rostedt
2008-11-12 13:07 ` Ingo Molnar
2008-11-12 15:36 ` Steven Rostedt
2008-11-12 18:21 ` Ingo Molnar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20081112131409.GB24472@elte.hu \
--to=mingo@elte.hu \
--cc=akpm@linux-foundation.org \
--cc=arjan@infradead.org \
--cc=fweisbec@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=rostedt@goodmis.org \
--cc=srostedt@redhat.com \
--cc=tytso@mit.edu \
--subject='Re: [PATCH] tracing: branch tracer, tweak output' \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).