mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andi Kleen <ak@suse.de>
To: Andrew Morton <akpm@osdl.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: 2.6.9-rc3-mm3
Date: 07 Oct 2004 13:23:46 +0200	[thread overview]
Message-ID: <p73oejeu5z1.fsf@verdi.suse.de> (raw)
In-Reply-To: <20041007025007.77ec1a44.akpm@osdl.org.suse.lists.linux.kernel>

Andrew Morton <akpm@osdl.org> writes:

> Nick Sanders <sandersn@btinternet.com> wrote:
> >
> > On Thursday 07 October 2004 09:51, Andrew Morton wrote:
> >  > ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.9-rc3/2.6
> >  >.9-rc3-mm3/
> >  >
> > 
> >  I get the following oops when booting and it also stops kde (artswrapper) from 
> >  starting with the same call trace. USB seems to be working which is good.
> 
> Could you please do
> 
> 
> cd /usr/src/linux
> wget ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.9-rc3/2.6.9-rc3-mm3/broken-out/optimize-profile-path-slightly.patch
> patch -R -p1 < optimize-profile-path-slightly.patch
> 
> and retest?

Oops. I forgot the scheduling path indeed. Here's a new patch,
replacing the old. Sorry for the trouble.

-Andi

-------------------------------------------------------------

Fixed version of slight profile path optimization.

Signed-off-by: Andi Kleen <ak@suse.de>

Index: linux/kernel/profile.c
===================================================================
--- linux.orig/kernel/profile.c	2004-09-30 10:35:51.%N +0200
+++ linux/kernel/profile.c	2004-10-07 13:22:33.%N +0200
@@ -181,20 +181,27 @@
 EXPORT_SYMBOL_GPL(profile_event_register);
 EXPORT_SYMBOL_GPL(profile_event_unregister);
 
-void profile_hit(int type, void *__pc)
+static inline void __profile_hit(int type, void *__pc)
 {
 	unsigned long pc;
 
-	if (prof_on != type || !prof_buffer)
-		return;
 	pc = ((unsigned long)__pc - (unsigned long)_stext) >> prof_shift;
 	atomic_inc(&prof_buffer[min(pc, prof_len - 1)]);
 }
 
+void profile_hit(int type, void *pc)
+{
+	if (prof_on != type || !prof_buffer)
+		return;
+	__profile_hit(type, pc);
+}
+
 void profile_tick(int type, struct pt_regs *regs)
 {
 	if (type == CPU_PROFILING)
 		profile_hook(regs);
+	if (prof_on != type || !prof_buffer)
+		return;
 	if (!user_mode(regs) && cpu_isset(smp_processor_id(), prof_cpu_mask))
 		profile_hit(type, (void *)profile_pc(regs));
 }




       reply	other threads:[~2004-10-07 11:24 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20041007015139.6f5b833b.akpm@osdl.org.suse.lists.linux.kernel>
     [not found] ` <200410071041.20723.sandersn@btinternet.com.suse.lists.linux.kernel>
     [not found]   ` <20041007025007.77ec1a44.akpm@osdl.org.suse.lists.linux.kernel>
2004-10-07 11:23     ` Andi Kleen [this message]
2004-10-07 11:10 2.6.9-rc3-mm3 Oleg Nesterov
2004-10-07 18:18 ` 2.6.9-rc3-mm3 Andrew Morton
  -- strict thread matches above, loose matches on Subject: below --
2004-10-07  8:51 2.6.9-rc3-mm3 Andrew Morton
2004-10-07  9:30 ` 2.6.9-rc3-mm3 Martin Zwickel
2004-10-07  9:41 ` 2.6.9-rc3-mm3 Nick Sanders
2004-10-07  9:50   ` 2.6.9-rc3-mm3 Andrew Morton
2004-10-07 10:10     ` 2.6.9-rc3-mm3 Martin Zwickel
2004-10-07 10:44       ` 2.6.9-rc3-mm3 Hanno Meyer-Thurow
     [not found]         ` <20041007125610.0019eb3d@mango.fruits.de>
2004-10-07 10:58           ` 2.6.9-rc3-mm3 Hanno Meyer-Thurow
2004-10-07 10:16     ` 2.6.9-rc3-mm3 Nick Sanders
2004-10-07 11:40     ` 2.6.9-rc3-mm3 William Lee Irwin III
2004-10-07 21:25       ` 2.6.9-rc3-mm3 J.A. Magallon
2004-10-07 21:46         ` 2.6.9-rc3-mm3 J.A. Magallon
2004-10-07 22:07           ` 2.6.9-rc3-mm3 Andrew Morton
2004-10-07 22:41             ` 2.6.9-rc3-mm3 J.A. Magallon
2004-10-07 22:54               ` 2.6.9-rc3-mm3 Andrew Morton
2004-10-07 23:06                 ` 2.6.9-rc3-mm3 J.A. Magallon
2004-10-07 23:40                   ` 2.6.9-rc3-mm3 Greg KH
2004-10-08  1:05                 ` 2.6.9-rc3-mm3 Paul Fulghum
2004-10-08 11:23               ` 2.6.9-rc3-mm3 William Lee Irwin III
2004-10-08 11:34               ` 2.6.9-rc3-mm3 Ryan Cumming
2004-10-08  7:00             ` 2.6.9-rc3-mm3 Ingo Molnar
2004-10-07 22:03         ` 2.6.9-rc3-mm3 William Lee Irwin III
2004-10-07  9:59   ` 2.6.9-rc3-mm3 Martin Zwickel
2004-10-07 10:04 ` 2.6.9-rc3-mm3 Jesper Juhl
2004-10-07 10:15   ` 2.6.9-rc3-mm3 Russell King
2004-10-07 20:56 ` 2.6.9-rc3-mm3 Joel Schopp
2004-10-07 21:33   ` 2.6.9-rc3-mm3 Andrew Morton

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=p73oejeu5z1.fsf@verdi.suse.de \
    --to=ak@suse.de \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.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

Powered by JetHome