fche changed the topic of #systemtap to: http://sourceware.org/systemtap; email systemtap@sourceware.org if answers here not timely, conversations may be logged
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #systemtap
orivej_ has joined #systemtap
orivej has quit [Ping timeout: 272 seconds]
orivej_ has quit [Ping timeout: 272 seconds]
orivej has joined #systemtap
orivej has quit [Ping timeout: 246 seconds]
orivej has joined #systemtap
hpt has joined #systemtap
orivej has quit [Ping timeout: 260 seconds]
orivej has joined #systemtap
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #systemtap
orivej has quit [Ping timeout: 246 seconds]
orivej has joined #systemtap
_whitelogger has joined #systemtap
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #systemtap
orivej has quit [Ping timeout: 246 seconds]
orivej has joined #systemtap
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #systemtap
orivej has quit [Ping timeout: 260 seconds]
orivej_ has joined #systemtap
orivej_ has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #systemtap
orivej_ has joined #systemtap
orivej has quit [Ping timeout: 246 seconds]
orivej has joined #systemtap
orivej_ has quit [Read error: Connection reset by peer]
orivej has quit [Ping timeout: 260 seconds]
orivej has joined #systemtap
orivej_ has joined #systemtap
orivej has quit [Ping timeout: 272 seconds]
orivej_ has quit [Ping timeout: 260 seconds]
orivej has joined #systemtap
irker308 has quit [Quit: transmission timeout]
khaled has joined #systemtap
hassan64 has joined #systemtap
<hassan64> I need to convert my systemtap script to instrumentation module i.e *.ko . And then transfer this ELF binary to my target machine i.e ARRCH64.
<hassan64> I developed my target machine via buildroot
<hassan64> It is successfully compiled on my target machine, However, I used to create *.ko modules, I got the error . Please visit this link i.e https://gist.github.com/hassan113/9509989fc58bae3264e5795bd86b8cdd
orivej has quit [Ping timeout: 272 seconds]
mjw has joined #systemtap
hpt has quit [Ping timeout: 260 seconds]
<fche> hassan64, hm lots of things seem to have gone wrong there
<fche> run again with a bunch more -v
<fche> am suspicious that e.g. the -B CROSS_COMPILE= setting didn't work due to incomplete path names ("output/...")
orivej has joined #systemtap
<hassan64> fche: please visit the link again: https://gist.github.com/hassan113/9509989fc58bae3264e5795bd86b8cdd
<hassan64> Seems that "DebugFS " is required and is not found in the kernel
<hassan64> fche: Please help me
orivej has quit [Ping timeout: 260 seconds]
<fche> that setting is of your target cross kernel
<fche> can you get that CONFIG_DEBUG_FS or CONFIG_DEBUG_FS_MODULE enabled?
<hassan64> @fche: It compiled to *.ko now after enabling DEBUG FS. But getting warning. Please see my link. https://gist.github.com/hassan113/9509989fc58bae3264e5795bd86b8cdd
<fche> hm CONFIG_RELAY is also needed
<fche> (the README includes that list)
<hassan64> @fche: thanks a lot. Complied with no warning. and module loaded at target end successfullu
<fche> ah neat!
<fche> impressive how fast your rebuild was
<hassan64> well, in a few seconds
<hassan64> @fche: Now I am getting an error while using new script file. Previous on eis just to print "hello world". please llok at my github file. https://gist.github.com/hassan113/9509989fc58bae3264e5795bd86b8cdd
<hassan64> Thanks
<fche> what version of stap are you running? arm64 kernel syscall machinery changed not too long ago and stap had to play catch-up
<hassan64> Systemtap translator/driver (version 3.1/0.170, Debian version 3.1-3ubuntu0.1 (bionic-proposed))
<hassan64> I just install stap on my host machine via sudo apt
<hassan64> "sudo apt install systemtap"
sapatel has joined #systemtap
tromey has joined #systemtap
<hassan64> I have updated my systemtap on my host machine Ubuntu:
<hassan64> Systemtap translator/driver (version 4.2/0.177, non-git sources)
<hassan64> fche: still the same error. Please visit my guthub: https://gist.github.com/hassan113/9509989fc58bae3264e5795bd86b8cdd
<hassan64> what should I do to have it compiled.
<fche> hmmmmm
<hassan64> got solution. recompile the kernel. Kernel hacking > Tracers > enable kprobes, ubrobes, gpio events
<hassan64> fche: But how to remove warning. Seems irritating
<fche> the 'cross-file ... ' ones?
<fche> that was just fixed in git-master stap a few days back
<hassan64> I checked out the systemTAP (4.2) from https://sourceware.org/systemtap/wiki/SystemTapReleases
<hassan64> seems a latest version
<fche> yeah, this fix is not yet released, but should be in a week or so
<hassan64> secondly, with latest elfutils ver (0.179), systemtap (4.2) wasn't compiled; showing some dependency check.
<mjw> could you show the dependency check failure?
<hassan64> mjw: ok just wait for while
<hassan64> mjw: configuration process ran fine i.e ./configure --with-elfutils=$(pwd)/../elfutils-0.179 . But when do "make",there is error. please see my github " https://gist.github.com/hassan113/9509989fc58bae3264e5795bd86b8cdd
<hassan64> systemtap ver = 4.2
<mjw> hassan64, that error is "correct" libebl was removed in the latest elfutils. It is an internal only "library"
<mjw> Let me see why systemtap tries to use it. That isn't really supported.
<mjw> aha, for the stringtab functions
<mjw> which are part of libdw since... 0.167
<fche> the configure check looks for ebl_get_elfmachine
<fche> maybe it finds it in -ldw first and assumes it came from -lebl ?
<fche> hassan64, can you paste your config.log ?
<fche> here it says:
<fche> configure:11503: checking for ebl_get_elfmachine in -lebl
<fche> configure:11528: gcc -o conftest -fstack-protector-all -D_FORTIFY_SOURCE=2 -g -O2 -I/home/fche/Private/DEVEL/DEVEL-sourceware/elfutils2-BUILD/INST/include -L/home/fche/Private/DEVEL/DEVEL-sourceware/elfutils2-BUILD/INST/lib conftest.c -lebl >&5
<fche> /usr/bin/ld: cannot find -lebl
<fche> which is good news
<fche> maybe hassan64 didn't rerun a full configure?
<mjw> fche, I think it should check for ebl_strtabinit instead
sapatel has quit [Remote host closed the connection]
sapatel has joined #systemtap
<mjw> Since that is the function it really needs (when using elfutils < 0.167)
<fche> suppose that could be
<fche> but I don't see that test failing here
<mjw> fche, the configure check might be trying the system libebl... :{
<fche> as in failing to behave as expected
<fche> hm lemme find the other one
<fche> configure:11503: checking for ebl_get_elfmachine in -lebl
<fche> configure:11528: gcc -o conftest -fstack-protector-all -D_FORTIFY_SOURCE=2 -g -O2 conftest.c -lebl >&5
<fche> /usr/bin/ld: cannot find -lebl
<fche> collect2: error: ld returned 1 exit status
<fche> configure:11528: $? = 1
<mjw> Let me try on a RHEL7 setup, that still has a system libebl installed
<mjw> configure:11424: checking for ebl_get_elfmachine in -lebl
<mjw> configure:11449: gcc -o conftest -fstack-protector-all -D_FORTIFY_SOURCE=2 -g -O2 conftest.c -lebl >&5
<mjw> configure:11458: result: yes
<mjw> configure:11449: $? = 0
<mjw> boo!
<fche> ok why is that a problem?
<mjw> because it will then... hmmm... link with -lebl
<fche> on rhel7, ok, is that a problem?
<mjw> even though I gave it --with-elfutils=/tmp/elfutils-0.179
<fche> new stap doesn't do bundled elfutils any more
<mjw> but you are right, that -lebl should work on this setup
<fche> so --with-elfutils is ignored
<mjw> fche, aha!
<fche> if you want to use it, LDFLAGS= etc. env vars for configure
<mjw> but that is how hassan64 configures
<mjw> and the configure check is still wrong :)
<fche> "that is how hassan64 configure" ah yes, didn't spot that
<fche> README advises
<fche> % .../configure [other autoconf options]
<fche> to locate libraries in non-system directories.
<fche> Add env LDFLAGS=-L/path/ CPPFLAGS=-I/path/ before configure
<mjw> yes, that is sane. But I must admit I also missed that.
<mjw> BTW. The configure check is there for a bug in the debian packages from 2007...
<mjw> It should have been resolved with their packaging of 0.141 in 2009
<fche> then heck nuke the autoconf clause
<mjw> I am not sure systemtap even supports compiling against that old elfutils
<mjw> fche, it is still needed for working against elfutils < 0.167 when you compile in BPF support
<mjw> sorry, dinner time
<mjw> But I think the check is still needed, but against ebl_strtabinit instead
<fche> ok, will take your word for it and adjust
irker456 has joined #systemtap
<irker456> systemtap: fche systemtap.git:master * release-4.2-106-ga1bbefd79 / configure configure.ac: configury: adjust -lebl check to ebl_strtabinit
<mjw> :)
sapatel has quit [Read error: error:1408F10B:SSL routines:ssl3_get_record:wrong version number]
sapatel has joined #systemtap
orivej has joined #systemtap
<hassan64> fche: Please visit the link to see config.log https://gist.github.com/hassan113/9509989fc58bae3264e5795bd86b8cdd
<fche> hassan64, suggest building this version of elfutils separately
<hassan64> fche & mjw Any fix against
<fche> so build it first, install it somewhere
<fche> then run the systemtap configury with LDFLAGS=-L/path/to/elfutils/libs CPPFLAGS=-I/path/to/elfutils/include
<fche> in the environment
<fche> i.e., don't use --with-elfutils
<hassan64> fche: can you paste the procedure of compiling latest system tap version with latets elfutils files
<hassan64> it is btw, common practice to compile systemtap through elfutilts by doing ./configure --with-elfutils=<ELFUTILS_DIR>
<fche> you can encounter problems that way; we have not tested this method in a while, and have removed it altogether in the master version
sapatel has quit [Read error: error:1408F10B:SSL routines:ssl3_get_record:wrong version number]
<hassan64> Can this issue be resolved in upcoming systemtap version with latest elfutils. Plus I encounter the WARNING messages in doing "stap". Will it be solved in upcoming versions
sapatel has joined #systemtap
<fche> depends on which warning; that cross-file global reference one, yes.
<fche> the issue you're encountering with --with-elfutils builds will go away by virtue of that option going away
<fche> but even with the 4.2 released copy of systemtap, you can use other ways to build against a private installation of elfutils:
<fche> <fche> so build it first, install it somewhere
<fche> <fche> in the environment
<fche> <fche> then run the systemtap configury with LDFLAGS=-L/path/to/elfutils/libs CPPFLAGS=-I/path/to/elfutils/include
<fche> <fche> i.e., don't use --with-elfutils
<hassan64> fche Thanks
hassan64 has quit [Remote host closed the connection]
orivej has quit [Ping timeout: 246 seconds]
orivej has joined #systemtap
<agentzh> hi guys, is it a known issue that the stap's userland stack unwinder may result in incorrect backtraces? some times it shows a function calls another but it actually never does as per the source code. gdb produces the correct one when i verified some of these cases myself.
<agentzh> it happens quite often.
<agentzh> against different target C applications.
<fche> not familiar
<agentzh> k, we'll dig deeper into the unwinder.
sapatel has quit [Read error: error:1408F10B:SSL routines:ssl3_get_record:wrong version number]
sapatel has joined #systemtap
sapatel has quit [Read error: error:1408F10B:SSL routines:ssl3_get_record:wrong version number]
sapatel has joined #systemtap
orivej has quit [Ping timeout: 260 seconds]
orivej has joined #systemtap
<irker456> systemtap: smakarov systemtap.git:master * release-4.2-107-g1eaeb16df / buildrun.cxx runtime/linux/autoconf-kallsyms-on-each-symbol.c runtime/linux/kprobes.c runtime/linux/runtime.h runtime/sym.c runtime/sym.h runtime/transport/symbols.c runtime/transport/transport.c runtime/transport/transport.h runtime/transport/transport_msgs.h staprun/staprun.c translate.cxx: PR26074: pass kallsyms_lookup_name as a relocation to the stap runtime
sapatel has quit [Read error: error:1408F10B:SSL routines:ssl3_get_record:wrong version number]
sapatel has joined #systemtap
sapatel has quit [Read error: error:1408F10B:SSL routines:ssl3_get_record:wrong version number]
sapatel has joined #systemtap
sapatel has quit [Read error: error:1408F10B:SSL routines:ssl3_get_record:wrong version number]
sapatel has joined #systemtap
sapatel has quit [Read error: error:1408F10B:SSL routines:ssl3_get_record:wrong version number]
sapatel has joined #systemtap
sapatel has quit [Read error: error:1408F10B:SSL routines:ssl3_get_record:wrong version number]
sapatel has joined #systemtap
sapatel has quit [Read error: error:1408F10B:SSL routines:ssl3_get_record:wrong version number]
sapatel has joined #systemtap
tromey has quit [Quit: ERC (IRC client for Emacs 28.0.50)]
mjw has quit [Quit: Leaving]
irker456 has quit [Quit: transmission timeout]
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #systemtap