* [PATCH] tracing: mark get_parent_ip() notrace
@ 2009-04-02 6:18 Lai Jiangshan
2009-04-02 12:26 ` Frederic Weisbecker
2009-04-14 0:13 ` [tip:sched/urgent] tracing, sched: " tip-bot for Lai Jiangshan
0 siblings, 2 replies; 6+ messages in thread
From: Lai Jiangshan @ 2009-04-02 6:18 UTC (permalink / raw)
To: Steven Rostedt; +Cc: Ingo Molnar, LKML, Frederic Weisbecker
Impact: remove redundancy tracing log
When tracer is "function" or "function_graph", too much
"get_parent_ip" are recorded in ring_buffer.
Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>
---
diff --git a/kernel/sched.c b/kernel/sched.c
index 706517c..a0ec10c 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -4860,7 +4860,7 @@ void scheduler_tick(void)
#endif
}
-unsigned long get_parent_ip(unsigned long addr)
+notrace unsigned long get_parent_ip(unsigned long addr)
{
if (in_lock_functions(addr)) {
addr = CALLER_ADDR2;
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH] tracing: mark get_parent_ip() notrace
2009-04-02 6:18 [PATCH] tracing: mark get_parent_ip() notrace Lai Jiangshan
@ 2009-04-02 12:26 ` Frederic Weisbecker
2009-04-13 6:17 ` Lai Jiangshan
2009-04-14 0:13 ` [tip:sched/urgent] tracing, sched: " tip-bot for Lai Jiangshan
1 sibling, 1 reply; 6+ messages in thread
From: Frederic Weisbecker @ 2009-04-02 12:26 UTC (permalink / raw)
To: Lai Jiangshan; +Cc: Steven Rostedt, Ingo Molnar, LKML
On Thu, Apr 02, 2009 at 02:18:25PM +0800, Lai Jiangshan wrote:
>
> Impact: remove redundancy tracing log
>
> When tracer is "function" or "function_graph", too much
> "get_parent_ip" are recorded in ring_buffer.
Thanks, indeed this get_parent_ip was a bit harrassing
in the traces, though I still don't understand why it is
called so often.
Anyway, tracing it seems to me not useful.
Acked-by: Frederic Weisbecker <fweisbec@gmail.com>
> Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>
> ---
> diff --git a/kernel/sched.c b/kernel/sched.c
> index 706517c..a0ec10c 100644
> --- a/kernel/sched.c
> +++ b/kernel/sched.c
> @@ -4860,7 +4860,7 @@ void scheduler_tick(void)
> #endif
> }
>
> -unsigned long get_parent_ip(unsigned long addr)
> +notrace unsigned long get_parent_ip(unsigned long addr)
> {
> if (in_lock_functions(addr)) {
> addr = CALLER_ADDR2;
>
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] tracing: mark get_parent_ip() notrace
2009-04-02 12:26 ` Frederic Weisbecker
@ 2009-04-13 6:17 ` Lai Jiangshan
2009-04-13 14:43 ` Steven Rostedt
0 siblings, 1 reply; 6+ messages in thread
From: Lai Jiangshan @ 2009-04-13 6:17 UTC (permalink / raw)
To: Ingo Molnar; +Cc: Frederic Weisbecker, Steven Rostedt, LKML
Frederic Weisbecker wrote:
> On Thu, Apr 02, 2009 at 02:18:25PM +0800, Lai Jiangshan wrote:
>> Impact: remove redundancy tracing log
>>
>> When tracer is "function" or "function_graph", too much
>> "get_parent_ip" are recorded in ring_buffer.
>
>
> Thanks, indeed this get_parent_ip was a bit harrassing
> in the traces, though I still don't understand why it is
> called so often.
>
> Anyway, tracing it seems to me not useful.
>
> Acked-by: Frederic Weisbecker <fweisbec@gmail.com>
>
>
Hi, Ingo,
Could you apply this fix?
get_parent_ip() is a helper function for ftace, and it is called
by preempt_disable() and preempt_enable(), so it is occurred very
often.
Lai.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] tracing: mark get_parent_ip() notrace
2009-04-13 6:17 ` Lai Jiangshan
@ 2009-04-13 14:43 ` Steven Rostedt
2009-04-14 0:11 ` Ingo Molnar
0 siblings, 1 reply; 6+ messages in thread
From: Steven Rostedt @ 2009-04-13 14:43 UTC (permalink / raw)
To: Lai Jiangshan; +Cc: Ingo Molnar, Frederic Weisbecker, LKML
On Mon, 2009-04-13 at 14:17 +0800, Lai Jiangshan wrote:
> Frederic Weisbecker wrote:
> > On Thu, Apr 02, 2009 at 02:18:25PM +0800, Lai Jiangshan wrote:
> >> Impact: remove redundancy tracing log
> >>
> >> When tracer is "function" or "function_graph", too much
> >> "get_parent_ip" are recorded in ring_buffer.
> >
> >
> > Thanks, indeed this get_parent_ip was a bit harrassing
> > in the traces, though I still don't understand why it is
> > called so often.
> >
> > Anyway, tracing it seems to me not useful.
> >
> > Acked-by: Frederic Weisbecker <fweisbec@gmail.com>
> >
> >
>
> Hi, Ingo,
> Could you apply this fix?
>
> get_parent_ip() is a helper function for ftace, and it is called
> by preempt_disable() and preempt_enable(), so it is occurred very
> often.
I can pull it in too, if Ingo is busy.
-- Steve
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] tracing: mark get_parent_ip() notrace
2009-04-13 14:43 ` Steven Rostedt
@ 2009-04-14 0:11 ` Ingo Molnar
0 siblings, 0 replies; 6+ messages in thread
From: Ingo Molnar @ 2009-04-14 0:11 UTC (permalink / raw)
To: Steven Rostedt; +Cc: Lai Jiangshan, Frederic Weisbecker, LKML
* Steven Rostedt <srostedt@redhat.com> wrote:
>
> On Mon, 2009-04-13 at 14:17 +0800, Lai Jiangshan wrote:
> > Frederic Weisbecker wrote:
> > > On Thu, Apr 02, 2009 at 02:18:25PM +0800, Lai Jiangshan wrote:
> > >> Impact: remove redundancy tracing log
> > >>
> > >> When tracer is "function" or "function_graph", too much
> > >> "get_parent_ip" are recorded in ring_buffer.
> > >
> > >
> > > Thanks, indeed this get_parent_ip was a bit harrassing
> > > in the traces, though I still don't understand why it is
> > > called so often.
> > >
> > > Anyway, tracing it seems to me not useful.
> > >
> > > Acked-by: Frederic Weisbecker <fweisbec@gmail.com>
> > >
> > >
> >
> > Hi, Ingo,
> > Could you apply this fix?
> >
> > get_parent_ip() is a helper function for ftace, and it is called
> > by preempt_disable() and preempt_enable(), so it is occurred very
> > often.
>
> I can pull it in too, if Ingo is busy.
I have put it into tip:sched/urgent - it belongs there file-wise.
Will go upstream after -rc2 most likely.
Ingo
^ permalink raw reply [flat|nested] 6+ messages in thread
* [tip:sched/urgent] tracing, sched: mark get_parent_ip() notrace
2009-04-02 6:18 [PATCH] tracing: mark get_parent_ip() notrace Lai Jiangshan
2009-04-02 12:26 ` Frederic Weisbecker
@ 2009-04-14 0:13 ` tip-bot for Lai Jiangshan
1 sibling, 0 replies; 6+ messages in thread
From: tip-bot for Lai Jiangshan @ 2009-04-14 0:13 UTC (permalink / raw)
To: linux-tip-commits
Cc: linux-kernel, hpa, mingo, fweisbec, srostedt, tglx, laijs, mingo
Commit-ID: 132380a06b24704fd6c9be55c44d4ef3972cead2
Gitweb: http://git.kernel.org/tip/132380a06b24704fd6c9be55c44d4ef3972cead2
Author: Lai Jiangshan <laijs@cn.fujitsu.com>
AuthorDate: Thu, 2 Apr 2009 14:18:25 +0800
Committer: Ingo Molnar <mingo@elte.hu>
CommitDate: Tue, 14 Apr 2009 02:11:05 +0200
tracing, sched: mark get_parent_ip() notrace
Impact: remove overly redundant tracing entries
When tracer is "function" or "function_graph", way too much
"get_parent_ip" entries are recorded in ring_buffer.
Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>
Acked-by: Frederic Weisbecker <fweisbec@gmail.com>
Acked-by: Steven Rostedt <srostedt@redhat.com>
LKML-Reference: <49D458B1.5000703@cn.fujitsu.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
---
kernel/sched.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/kernel/sched.c b/kernel/sched.c
index 5724508..e90e70e 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -4846,7 +4846,7 @@ void scheduler_tick(void)
#endif
}
-unsigned long get_parent_ip(unsigned long addr)
+notrace unsigned long get_parent_ip(unsigned long addr)
{
if (in_lock_functions(addr)) {
addr = CALLER_ADDR2;
^ permalink raw reply related [flat|nested] 6+ messages in thread
end of thread, other threads:[~2009-04-14 0:13 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-02 6:18 [PATCH] tracing: mark get_parent_ip() notrace Lai Jiangshan
2009-04-02 12:26 ` Frederic Weisbecker
2009-04-13 6:17 ` Lai Jiangshan
2009-04-13 14:43 ` Steven Rostedt
2009-04-14 0:11 ` Ingo Molnar
2009-04-14 0:13 ` [tip:sched/urgent] tracing, sched: " tip-bot for Lai Jiangshan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox