mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Greg Banks <gnb@melbourne.sgi.com>
To: Andrew Morton <akpm@osdl.org>
Cc: OProfile List <oprofile-list@lists.sourceforge.net>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 3/11] oprofile: i386 support for stack trace sampling
Date: Thu, 11 Nov 2004 18:26:30 +1100	[thread overview]
Message-ID: <1100157990.5769.163.camel@hole.melbourne.sgi.com> (raw)
In-Reply-To: <20041110230347.7138f9d1.akpm@osdl.org>

[-- Attachment #1: Type: text/plain, Size: 521 bytes --]

On Thu, 2004-11-11 at 18:03, Andrew Morton wrote:
> Greg Banks <gnb@melbourne.sgi.com> wrote:
> >
> >  oprofile i386 arch updates, including some internal
> >  API changes and support for stack trace sampling.
> 
> It needs this to compile and link on x86_64.  No idea if it works...

Clearly, there has been zero testing on x86_64.  How about
we just disable the backtrace code on that platform until
it's been tested?

Greg.
-- 
Greg Banks, R&D Software Engineer, SGI Australian Software Group.
I don't speak for SGI.


[-- Attachment #2: oprofile-callgraph-x86_64 --]
[-- Type: text/plain, Size: 1525 bytes --]

Disable the oprofile backtrace feature pulled into x86_64 from
i386 code, until it has been tested on x86_64.

Signed-off-by: Greg Banks <gnb@melbourne.sgi.com>
---
 arch/i386/oprofile/init.c     |    4 ++++
 arch/x86_64/oprofile/Makefile |    1 +
 2 files changed, 5 insertions(+)

Index: linux/arch/x86_64/oprofile/Makefile
===================================================================
--- linux.orig/arch/x86_64/oprofile/Makefile	2004-10-19 07:53:43.%N +1000
+++ linux/arch/x86_64/oprofile/Makefile	2004-11-11 18:19:37.%N +1100
@@ -1,6 +1,7 @@
 #
 # oprofile for x86-64.
 # Just reuse the one from i386. 
+# Except for the backtrace code, which is not yet tested
 #
 
 obj-$(CONFIG_OPROFILE) += oprofile.o
Index: linux/arch/i386/oprofile/init.c
===================================================================
--- linux.orig/arch/i386/oprofile/init.c	2004-11-10 20:53:24.%N +1100
+++ linux/arch/i386/oprofile/init.c	2004-11-11 18:20:13.%N +1100
@@ -18,8 +18,10 @@
 extern int nmi_init(struct oprofile_operations * ops);
 extern int nmi_timer_init(struct oprofile_operations * ops);
 extern void nmi_exit(void);
+#ifndef CONFIG_X86_64
 extern void x86_backtrace(struct pt_regs * const regs, struct task_struct *,
     	    	    	  unsigned int depth);
+#endif
 
 
 void __init oprofile_arch_init(struct oprofile_operations * ops)
@@ -33,7 +35,9 @@ void __init oprofile_arch_init(struct op
 	if (ret < 0)
 		ret = nmi_timer_init(ops);
 #endif
+#ifndef CONFIG_X86_64
 	ops->backtrace = x86_backtrace;
+#endif
 }
 
 

      reply	other threads:[~2004-11-11  7:27 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-09 10:38 Greg Banks
2004-11-11  7:03 ` Andrew Morton
2004-11-11  7:26   ` Greg Banks [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=1100157990.5769.163.camel@hole.melbourne.sgi.com \
    --to=gnb@melbourne.sgi.com \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=oprofile-list@lists.sourceforge.net \
    /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

all inboxes | Powered by JetHome®