fche changed the topic of #systemtap to: http://sourceware.org/systemtap; email systemtap@sourceware.org if answers here not timely, conversations may be logged
philip_ has quit [Quit: philip_]
hpt has joined #systemtap
zw01 has quit [Ping timeout: 240 seconds]
zw01 has joined #systemtap
tonyj has quit [Ping timeout: 245 seconds]
tonyj has joined #systemtap
ananth has joined #systemtap
scox has quit [Ping timeout: 256 seconds]
ravi has joined #systemtap
csanting has quit [Ping timeout: 255 seconds]
jistone has quit [Ping timeout: 256 seconds]
jlebon has quit [Ping timeout: 272 seconds]
jistone has joined #systemtap
jlebon has joined #systemtap
csanting has joined #systemtap
hkshaw has joined #systemtap
hpt has quit [Quit: Lost terminal]
modem_ has quit [Remote host closed the connection]
Humble has joined #systemtap
mjw has joined #systemtap
pwithnall has joined #systemtap
jlebon has quit [Ping timeout: 240 seconds]
gila has joined #systemtap
jistone has quit [Ping timeout: 240 seconds]
csanting has quit [Ping timeout: 260 seconds]
csanting has joined #systemtap
jistone has joined #systemtap
jlebon has joined #systemtap
ananth has quit [Ping timeout: 258 seconds]
hkshaw has quit [Ping timeout: 252 seconds]
ravi has quit [Read error: Connection reset by peer]
hkshaw has joined #systemtap
mjw has quit [Quit: Leaving]
wcohen has quit [Ping timeout: 260 seconds]
mbenitez has joined #systemtap
mbenitez has joined #systemtap
mbenitez has quit [Changing host]
drsmith has joined #systemtap
wcohen has joined #systemtap
bendlas has quit [Write error: Connection reset by peer]
gila has quit [Read error: Connection reset by peer]
gila_ has joined #systemtap
scox has joined #systemtap
irker295 has joined #systemtap
<irker295> systemtap: mcermak systemtap.git:refs/heads/mcermak/PR20333 * release-3.0-792-g0d9cac8 / : Merge syscalls with identical 'name' to common files. http://tinyurl.com/hf84dn7
bendlas has joined #systemtap
Humble has quit [Ping timeout: 255 seconds]
mjw has joined #systemtap
<irker295> systemtap: fche systemtap.git:refs/heads/master * release-3.0-402-ga226065 / main.cxx: tweak unused $n/@n warning for argv tapset users http://tinyurl.com/jluub9v
<irker295> systemtap: fche systemtap.git:refs/heads/master * release-3.0-403-g344478f / : testsuite infrastructure: change stap_run api http://tinyurl.com/z6ufysl
<irker295> systemtap: dsmith systemtap.git:refs/heads/master * release-3.0-404-g0d3c21b / python/Makefile.am python/Makefile.in: Fix the python helper module compiliation. http://tinyurl.com/zwtd5rr
<irker295> systemtap: dsmith systemtap.git:refs/heads/master * release-3.0-405-gd5eac54 / NEWS: Announce python probe support in NEWS. http://tinyurl.com/h8lpjq3
<fche> woohoo
<fche> drsmith, no easy way to automate invocation of the -c python with -m HelperSDT ?
<fche> for packaging, wouldn't the stap-resolve-module-function.py belong in the systemtap-devel subrpm rather than -runtime ?
Humble has joined #systemtap
drsmith is now known as drsmith_away
ton31337 has quit [Ping timeout: 240 seconds]
drsmith_away is now known as drsmith
<irker295> systemtap: fche systemtap.git:refs/heads/master * release-3.0-406-gc8cef43 / testsuite/systemtap.base/set_user.exp testsuite/systemtap.base/simple.exp: testsuite infrastructure: change stap_run api http://tinyurl.com/jo4gu7j
<irker295> systemtap: fche systemtap.git:refs/heads/master * release-3.0-407-g8065f5d / systemtap.spec: tweak python helper installation paths http://tinyurl.com/heml5w8
pwithnall has quit [Ping timeout: 240 seconds]
<irker295> systemtap: dsmith systemtap.git:refs/heads/master * release-3.0-408-gca67717 / systemtap.spec: Move and update comment in systemtap.spec. http://tinyurl.com/j3xv2ck
philip_ has joined #systemtap
<fche> an thanks david
mjw has quit [Quit: Leaving]
ton31337 has joined #systemtap
<bendlas> Hi, stap says to me /tmp/stapXRUH8r/stap_2defeccfa7cfafeb9eebe99059ea78f1_1276_src.c:10:29: fatal error: runtime_defines.h: No such file or directory
<bendlas> It looks like the Makefile doesn't pass EXTRA_CFLAGS to the compiler ...
<bendlas> any ideas?
<fche> hi bendlas, what stap version, built/installed?
<bendlas> fche: reproducable on 2.9, 3.0, current git; as well as with gnumake 3.8 and 4.2; as well as with gcc 4.9 and 5.4
philip_ has quit [Quit: philip_]
<fche> did you 'make install' ?
<bendlas> it's installed
<bendlas> here is an example makefile: https://hastebin.com/nejijihege.mk
<bendlas> apparently, it misses a `-I .../runtime/linux` flag?
<fche> shouldn't be needed
<fche> the .../runtime_defines.h does a nested include
<fche> so line 124 on your paste should have been enough
<fche> does /nix/store/8b11aa5zz0cal71cww6mkyaz6rsn17nj-systemtap-2017-01-16/share/systemtap/runtime exist, and is readable to your stap user?
<fche> like if you run % sudo stap the root user may not have read permission.. just speculating
<bendlas> yes, everything readable
<fche> hm ... try strace -eopen -f stap -p4 ....script...
<bendlas> it also contains a `runtime_defines.h`, which includes the `linux/runtime_defines.h`, as you said
hkshaw has quit [Ping timeout: 255 seconds]
<bendlas> => /nix/store/8b11aa5zz0cal71cww6mkyaz6rsn17nj-systemtap-2017-01-16/bin/stap: invalid option -- 'f'
<bendlas> erm ...
<fche> it's an strace option, not an stap option
<bendlas> fche: thats a 11M log
<fche> there you go. so I'd look at those lines that relate to runtime_defines.h
<fche> and see what's up
<fche> how do you invoke systemtap normally? running as root? stapdev-group? # sudo ?
<bendlas> regular user or sudo, it fails at the module build
<fche> ok, if you can't figure out what's what in that log file, send it over pls
<bendlas> it doesn't seem to be looking for runtime_defines.h in the runtime dir: https://hastebin.com/exovawocec.log
<bendlas> this are all the lines mentioning `runtime_defines.h`
<bendlas> fche: seems like make doesn't pass `EXTRA_CFLAGS`, somehow
<fche> try % stap --poison-cache --vp 0002 -p4 -e 'probe begin{}'
<fche> that should show you the make command being run
<fche> % stap -k .....
<fche> then you can cd to that directory, and run the same env .... command by hand
<fche> env -uARCH -uKBUILD_EXTMOD -uCROSS_COMPILE -uKBUILD_IMAGE -uKCONFIG_CONFIG -uINSTALL_PATH -uLD_LIBRARY_PATH PATH=/usr/bin:/bin:/home/fche/bin:/home/fche/bin:/home/fche/bin:/usr/lib64/qt-3.3/bin:/usr/lib64/ccache:/home/fche/bin:/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/home/fche/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/sbin:/sbin:/usr/sbin:/sbin make -C /lib/modules/4.8.15-200.fc24.x86_64/build M=/var/tmp/stapozrw9U
<fche> modules CONFIG_DEBUG_INFO= CONFIG_STACK_VALIDATION= ARCH=x86_64 --no-print-directory -j9 <-- on my f24 box
<fche> ok nice, so you can play with it without stap in the middle
<fche> try make V=1 stap_14852_src.o
<bendlas> error stays exactly the same as without `V=1` (last invokation in previous log)
<fche> so am looking for the actual flags to the compiler
<fche> ie. whether the earlier ones like -freorder-blocks made it in
<fche> hmmmmm
<fche> from that configuration (trying to copy it here), I'm getting this error too
<fche> so when I wrote 'make V=1 ...' I didn't quite mean make V=1
<fche> I meant the whole env .... make -C .... M=... command line, with V=1 added
<bendlas> can I override, which cc make calls?
<fche> are you dealing with a cross-compilation scenario?
<fche> how are/were you trying to override?
<bendlas> no, but a cc wrapper
<bendlas> `make CC=$(unwrapped gcc)` fails the same way ...
<fche> ok ... well your wrapper script would have to ensure all of its parameters passed through verbatim
<bendlas> it does, but better to use the unwrapped cc, stap links its own runtime anyway ..
<fche> yes. so can you paste the "env ... make -C ... V=1 ... " command line's output?
<fche> maybe your wrapper is interfering anyway
<fche> could try taking away the double-quotes from that EXTRA_CFLAGS += -I"/...../" line in Makefile
<bendlas> regarding -C, that shouldn't be necessary, the makefile is generated from `stap -r ...`, see `-I/nix/store/wlbrbgwc8kn54b7sdxdfi2j42s923j2a-kbuild-4.9.2-merged` in the log
<fche> the -C is needed because out-of-tree kernel module builds are run out of the kernel build tre
<bendlas> fche: btw, putting `CFLAGS := $(EXTRA_CFLAGS)` fixes this error
<bendlas> putting * at the end of `Makefile`
<fche> that shouldn't be necessary though - would like to know why your particular site needs it
<bendlas> fche: so somehow, the builtin implicit rule for *.o files doesn't pick up `EXTRA_CFLAGS`
<fche> yeah so the question is what's special about your site that this happens (only?) there
<bendlas> I'll read up on `EXTRA_CFLAGS` ...
<fche> is your kernel tree one that has had a corresponding kernel been built from ? so it has .config etc. ?
* fche can help more if you include the "env ... make -C ... V=1 ... " command line's output?
wcohen has quit [Ping timeout: 258 seconds]
<bendlas> I don't see how to get at the env command for my machine ..
<fche> the stap --vp 0002 -p4 command line showed it
<bendlas> i don't see it, see last log ..
<bendlas> however .. you already guessed right: removing the quotes from `-I"..."` did the trick: https://hastebin.com/ufirogitux.log
<fche> well that's interesting
<fche> so something in between the makefile and the gcc command invocation appears to be messing this up
<bendlas> the way I'm calling it, there is just a plain gnumake4.2 in between my shell and a plain gcc4.9
<bendlas> without the quotes it works, with them it fails
<fche> any odd $LANG ?
<bendlas> well, maybe it's the kernel's make file, I'm on 4.9.2, also pretty vanilla. the kbuild dir is directly constructed from our kernel: https://github.com/NixOS/nixpkgs/blob/bb8ded9a78b61f2a23b2e4a0e516533ae0c0d1d4/pkgs/development/tools/profiling/systemtap/default.nix#L24
<bendlas> `$LANG` is `en_US.UTF-8`
<bendlas> i had the linked version already working at some point, so unless one of our updates to gcc or gnumake broke it, it was likely a kernel upgrade. I could go back to 4.4 or something, for testing ...
<fche> I'd suspect something other than kernel version
<fche> this quotation etc. business is working on kernels ancient and super fresh, distros old and new
<fche> something is peculiar about your site, just not sure what yet
<fche> want to try another strace, this time focusing on # strace -eexecve -f env .... make .... ?
<bendlas> without the fixed quotes?
<fche> yeah. or even with
<fche> I'm still thinking there's a weird wrapper in there
<fche> maybe like vanilla ice
<bendlas> ugh, strace -eexecve butchers my pathes and arguments b/c too long
<bendlas> there is something peculiar ..
<bendlas> fche: notice the messed up `-I` flag for the runtime: https://hastebin.com/qadefesege.log
<fche> yeah, it's been pooched by then
<fche> though assemblers don't normally look at c header files
<bendlas> gcc invokations above have the same SNAFU
<bendlas> the `.stap_..._src.o.cmd` still is correct, though
philip_ has joined #systemtap
<bendlas> fche: thanks for the help so far, I think I can figure it out from here ...
<fche> righto
<fche> have a theory yet as to the " signs?
<bendlas> yeah, probably a wrapper sneaking in somewhere ... I'll just start with an empty path and work my way up from there
<fche> righto
<fche> yeah, it's a PITA to quote properly from e.g. a shell script wrapper
* bendlas is having painful flashbacks right now
<bendlas> if you ever figure out the why and wherefore of `"$@"`, call me
<fche> exactly
wcohen has joined #systemtap
<bendlas> fche: what generates the `.stap_....o.cmd` files? the .cmd file already has `-I/nix/store/b7bv8p46yy7imf3jskkv4jqdz5z0n5k0-linux-4.9.2-dev/lib/modules/4.9.2/source/"/nix/store/8b11aa5zz0cal71cww6mkyaz6rsn17nj-systemtap-2017-01-16/share/systemtap/runtime"`
<fche> the kbuild makefile creates those
scox has quit [Ping timeout: 260 seconds]
drsmith has left #systemtap [#systemtap]
mbenitez has quit [Quit: Leaving]
<bendlas> fche: could you check, that in your makefile, the runtime directory also is passed quoted?
<bendlas> I don't see how that mangled build flag could be produced by anything other than the kbuild makefile
<bendlas> make -n even produces the shell command to print the faulty .cmd file
<bendlas> * print -> produce
Humble has quit [Ping timeout: 252 seconds]
<bendlas> I can verify now, that my build works against kernel 4.4, but not against 4.9.2
<bendlas> trying against 4.9.4, now