From: Li Zefan <lizf@cn.fujitsu.com>
To: Steven Rostedt <rostedt@goodmis.org>
Cc: linux-kernel@vger.kernel.org, Ingo Molnar <mingo@elte.hu>,
Andrew Morton <akpm@linux-foundation.org>,
Christoph Hellwig <hch@infradead.org>,
Jason Baron <jbaron@redhat.com>
Subject: Re: [PATCH 5/5] tracing: convert irq events to use __print_symbolic
Date: Thu, 21 May 2009 13:35:01 +0800 [thread overview]
Message-ID: <4A14E805.9040103@cn.fujitsu.com> (raw)
In-Reply-To: <20090521031749.639465433@goodmis.org>
> +#define softirq_name(sirq) { sirq, #sirq }
> +#define show_softirq_name(val) \
> + __print_symbolic(val, \
> + softirq_name(HI_SOFTIRQ), \
> + softirq_name(TIMER_SOFTIRQ), \
> + softirq_name(NET_TX_SOFTIRQ), \
> + softirq_name(NET_RX_SOFTIRQ), \
> + softirq_name(BLOCK_SOFTIRQ), \
> + softirq_name(TASKLET_SOFTIRQ), \
> + softirq_name(SCHED_SOFTIRQ), \
> + softirq_name(HRTIMER_SOFTIRQ), \
> + softirq_name(RCU_SOFTIRQ))
> +
The ending "_SOFTIRQ" is just redundant.
And it's you that removed "_SOFTIRQ" in the output of irq
trace events. ;)
==========
commit 899039e8746bb9a09b6487ddb8ab2275ce9d0256
Author: Steven Rostedt <srostedt@redhat.com>
Date: Fri Mar 13 00:43:33 2009 -0400
softirq: no need to have SOFTIRQ in softirq name
Impact: clean up
It is redundant to have 'SOFTIRQ' in the softirq names.
==========
How about:
#define softirq_name(sirq) { sirq ## _SOFTIRQ, #sirq }
#define show_softirq_name(val) \
__print_symbolic(val, \
softirq_name(HI), \
or:
#define softirq_name(sirq) { sirq, softirq_to_name[sirq] }
prev parent reply other threads:[~2009-05-21 5:34 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-21 3:17 [PATCH 0/5] [GIT PULL] tracing: print event flags and symbols Steven Rostedt
2009-05-21 3:17 ` [PATCH 1/5] tracing: add __print_flags for events Steven Rostedt
2009-05-21 3:17 ` [PATCH 2/5] tracing: add previous task state info to sched switch event Steven Rostedt
2009-05-21 3:17 ` [PATCH 3/5] tracing: add flag output for kmem events Steven Rostedt
2009-05-21 3:17 ` [PATCH 4/5] tracing: add __print_symbolic to trace events Steven Rostedt
2009-05-21 3:17 ` [PATCH 5/5] tracing: convert irq events to use __print_symbolic Steven Rostedt
2009-05-21 5:35 ` Li Zefan [this message]
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=4A14E805.9040103@cn.fujitsu.com \
--to=lizf@cn.fujitsu.com \
--cc=akpm@linux-foundation.org \
--cc=hch@infradead.org \
--cc=jbaron@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=rostedt@goodmis.org \
/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
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox