Skip to contentSkip to conversation

strace / ptrace_offsets.h

Linux-ia64 Gustavo Niemeyer 2 participants 3 messages Apr 10, 2001

lore
Share & tools
lore
#0 lore raw

Hello everyone!

I've just found this message from Uros in the mailing list archive:

Quoted 9 lines

I am trying to compile strace under 2.4.0-test6 and I missing symbols for PT_K_B0, PT_K_AR_PFS, PT_K_AR_UNAT, PT_K_AR_RNAT, PT_K_AR_BSPSTORE, PT_K_PR and PT_CR_IFS. I have
sucessfully compiled the same source under 2.3.99-pre6 kernel headers.

Symbol PT_CR_IFS was replaced with PT_CFM; this is a problem with strace source. However, the other symbols disappeared from ptrace_offsets.h. I don't recall any patches against ptrace interface lately. Is this a lossage in kernel headers?

Unfortunately, I haven't found any answeres to this post.

This problem seems to be back with strace 4.3 and kernel 2.4.3. In this case, which one should be fixed??

Thanks!!

Signature · 3 lines
Gustavo Niemeyer

[ 2AAC 7928 0FBF 0299 5EB5  60E2 2253 B29A 6664 3A0C ]
#1 lore raw

Gustavo Niemeyer <[email protected]> writes:

|> I've just found this message from Uros in the mailing list
|> archive:
|> 
|> > I am trying to compile strace under 2.4.0-test6 and I missing symbols
|> > for PT_K_B0, PT_K_AR_PFS, PT_K_AR_UNAT, PT_K_AR_RNAT, PT_K_AR_BSPSTORE,
|> > PT_K_PR and PT_CR_IFS.  I have
|> > sucessfully compiled the same source under 2.3.99-pre6 kernel headers.
|> > 
|> > Symbol PT_CR_IFS was replaced with PT_CFM; this is a problem with strace
|> > source.  However, the other symbols disappeared from ptrace_offsets.h.
|> > I don't recall any patches against ptrace interface lately.  Is this a
|> > lossage in kernel headers?
|> 
|> Unfortunately, I haven't found any answeres to this post.
|> 
|> This problem seems to be back with strace 4.3 and kernel 2.4.3. In this
|> case, which one should be fixed??

Use the strace source from the ia64_0 branch on
cvs.strace.sourceforge.net.

Andreas.

Signature · 5 lines
Andreas Schwab                                  "And now for something
SuSE Labs                                        completely different."
[email protected]
SuSE GmbH, Schanzäckerstr. 10, D-90443 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
#2 lore raw
In reply to Gustavo Niemeyer

Hi Andreas!

[...]

Quoted 5 lines

|> This problem seems to be back with strace 4.3 and kernel 2.4.3. In this |> case, which one should be fixed??

Use the strace source from the ia64_0 branch on
cvs.strace.sourceforge.net.

I've been using it for some time, but it is not up to date with the latest strace release (4.3). Anyway, your answer means that the problem is probably with strace itself. Attached is a patch I've used to build it.

Thanks!!

Signature · 3 lines
Gustavo Niemeyer

[ 2AAC 7928 0FBF 0299 5EB5  60E2 2253 B29A 6664 3A0C ]
process.c renamed from process.c.ia64 +0 -6
@@ -1989,16 +1989,10 @@
 	{ PT_F27, "f27" }, { PT_F28, "f28" }, { PT_F29, "f29" },
 	{ PT_F30, "f30" }, { PT_F31, "f31" }, { PT_R4, "r4" },
 	{ PT_R5, "r5" }, { PT_R6, "r6" }, { PT_R7, "r7" },
-	{ PT_K_B0, "kb0" },
 	{ PT_B1, "b1" }, { PT_B2, "b2" }, { PT_B3, "b3" },
 	{ PT_B4, "b4" }, { PT_B5, "b5" },
-	{ PT_K_AR_PFS, "kar.pfs" },
-	{ PT_AR_LC, "ar.lc" }, { PT_K_AR_UNAT, "kar.unat" },
-	{ PT_K_AR_RNAT, "kar.rnat" }, { PT_K_AR_BSPSTORE, "kar.bspstore" },
-	{ PT_K_PR, "k.pr" },
 	/* pt_regs */
 	{ PT_CR_IPSR, "cr.ipsr" }, { PT_CR_IIP, "cr.iip" },
-	{ PT_CR_IFS, "cr.ifs" }, { PT_AR_UNAT, "ar.unat" },
 	{ PT_AR_PFS, "ar.pfs" }, { PT_AR_RSC, "ar.rsc" },
 	{ PT_AR_RNAT, "ar.rnat" }, { PT_AR_BSPSTORE, "ar.bspstore" },
 	{ PT_PR, "pr" }, { PT_B6, "b6" }, { PT_AR_BSP, "ar.bsp" },
signal.c renamed from signal.c.ia64 +2 -0
@@ -84,7 +84,9 @@
 	int			si_mask;
 } m_siginfo_t;
 #else
+#ifndef IA64
 #include <asm/sigcontext.h>
+#endif
 #endif /* SPARC */
 #else /* !HAVE_ASM_SIGCONTEXT_H */
 #ifdef I386