fche changed the topic of #systemtap to: http://sourceware.org/systemtap; email systemtap@sourceware.org if answers here not timely, conversations may be logged
<LW>
@fche, systemtap-4.4 has the same problem.
<LW>
In file included from ./arch/x86/include/asm/asm-offsets.h:1:0,
<LW>
from ./arch/x86/include/asm/syscall.h:19,
<LW>
from /tmp/stap9i9wVg/stap_6a0df8e8cf8002ee6061527a4b1ca074_66481_src.c:90:
<LW>
from /usr/local/share/systemtap/runtime/syscall.h:162,
<LW>
In file included from /tmp/stap9i9wVg/stap_6a0df8e8cf8002ee6061527a4b1ca074_66481_src.c:43:0:
<LW>
#define __NR_syscall_max 0xffff
<LW>
//usr/local/share/systemtap/runtime/linux/compat_unistd.h:22:0: note: this is the location of the previous definition
<LW>
#ifndef __NR_syscall_max
<LW>
#endif
<LW>
#define __NR_syscall_compat_max 0xffff
<LW>
#define __NR_syscall_max 0xffff
<LW>
#ifndef __NR_syscall_compat_max
<LW>
#endif
<LW>
Is there a problem with the reference order of the header file? asm-offsets.h should be included firstly, and runtime/linux/compat_unistd.h be included secondly?
fdalleau is now known as fdalleau_away
<fche>
or asm/syscall.h
<fche>
LW, not sure, would have to reproduce the problem here, but do feel free to experiment.
<fche>
with some of these files in the runtime, you don't need a new stap or even to recompile, just edit the header files in place and give it a try
khaled has quit [Quit: Konversation terminated!]
orivej has quit [Ping timeout: 252 seconds]
orivej has joined #systemtap
khaled has joined #systemtap
orivej has quit [Ping timeout: 265 seconds]
orivej_ has joined #systemtap
khaled has quit [Ping timeout: 252 seconds]
khaled has joined #systemtap
orivej_ has quit [Ping timeout: 246 seconds]
orivej has joined #systemtap
orivej has quit [Ping timeout: 260 seconds]
orivej has joined #systemtap
orivej has quit [Quit: orivej]
orivej has joined #systemtap
<LW>
I delete the define ( #define __NR_syscall_max 0xffff #define __NR_syscall_compat_max 0xffff) in runtime/linux/compat_unistd.h, now stap can work well.
<LW>
@fche
<fche>
right, we just can't simply remove it in upstream for other variants that need it
<fche>
but glad you got things working
orivej has quit [Ping timeout: 268 seconds]
orivej has joined #systemtap
khaled has quit [Remote host closed the connection]