On Monday 06 June 2005 15:26, Sriram Raghunathan wrote:
> Hi,
>   We're having problems running UML with SMP enabled...(ie ncpus>1) on Suse
> Linux 9.0 with
> 2.6.5-7.97-smp (host kernel)

> We've built UML with linux-2.6.11.7 & have been unsuccessful running linux
> in either skas nor tt modes
> for SMP.
Well, for SKAS mode there is no support yet... for TT mode the support used to 
work until recently, but is not very used because SKAS mode is usually 
faster, so it's less debugged than it should be...
> Of-course, we have absolutely no problems when we're in single cpu 
> mode with npcus=1.

> Here I would need to mention that when we enable debug, we get the
> following error message during
> linking stage:
> kernel/profile.c:387: undefined reference to `profile_pc".

> We went ahead & commented this out to get the build to work..would
> appreciate if somebody could point
>  us to a patch. However this is not the crux of the problem we're facing.
The fixlet for this is attached... Sadly I cannot help for now on the bigger 
picture, but I'll have a look on it.
-- 
Inform me of my mistakes, so I can keep imitating Homer Simpson's "Doh!".
Paolo Giarrusso, aka Blaisorblade (Skype ID "PaoloGiarrusso", ICQ 215621894)
http://www.user-mode-linux.org/~blaisorblade

Signed-off-by: Paolo 'Blaisorblade' Giarrusso <[EMAIL PROTECTED]>
---


diff -puN include/asm-um/ptrace-i386.h~uml-add-profile-pc-i386 include/asm-um/ptrace-i386.h
--- clean-linux-2.6.11/include/asm-um/ptrace-i386.h~uml-add-profile-pc-i386	2005-06-06 17:57:23.000000000 +0200
+++ clean-linux-2.6.11-paolo/include/asm-um/ptrace-i386.h	2005-06-06 17:57:24.000000000 +0200
@@ -30,6 +30,10 @@
 #define PT_REGS_SYSCALL_RET(r) PT_REGS_EAX(r)
 #define PT_FIX_EXEC_STACK(sp) do ; while(0)
 
+/* Cope with a conditional i386 definition. */
+#undef profile_pc
+#define profile_pc(regs) PT_REGS_IP(regs)
+
 #define user_mode(r) UPT_IS_USER(&(r)->regs)
 
 #endif
_

Reply via email to