fche changed the topic of #systemtap to: http://sourceware.org/systemtap; email systemtap@sourceware.org if answers here not timely, conversations may be logged
<linus2> fche: When will it be available?
<fche> I will probably commit this fix to git master tonight
<linus2> cool
<fche> what distro are you running?
<fche> if you are able to build & run your own copy of stap, you could test out the patch yourself and not wait :)
<linus2> Systemtap translator/driver (version 4.0/0.176, rpm 4.0-10.el7_7)
<fche> rhel7 .. yeah, that one's not going to get update in the distro (except with something like a rh developer-toolset rhel packages)
<linus2> fche: so when I update to your newest code , I still can't use it, right?
<fche> you would have to build a new copy of stap
<fche> (or if you have access to a developer-toolset repo, a new enough version might come out later this summer for rhel7)
<linus2> After you commit this fix to git master, then I download the source code and make it .
<fche> yup
<linus2> Then I can use it, right?
<fche> yes
<linus2> pretty good
<fche> you can download the sources now, apply the patch, and build it even now
<fche> you might want to give the build process a try now to get problems ironed out, while I'm here :)
<linus2> ok, show me the link
<linus2> I try to build it
<fche> https://sourceware.org/git/?p=systemtap.git;a=tree;h=refs/heads/master;hb=refs/heads/master
<fche> README includes build instructions
<linus2> In fact, nowadays I research a user code trace method
<linus2> ok
<linus2> how to download it?
<linus2> git clone ?
<fche> git clone git://sourceware.org/git/systemtap.git
<fche> that's in the README too :)
<linus2> now I am on f1a9bb064
<linus2> how to apply the patch
<fche> curl https://paste.centos.org/view/28782947 | git apply methinks
<linus2> curl https://paste.centos.org/view/28782947 | git apply
<linus2> error: unrecognized input
<fche> hm missed a /raw there
<linus2> configure: error: missing elfutils development headers/libraries (install elfutils-devel, libebl-dev, libdw-dev and/or libebl-devel)
<linus2> yum install?
<fche> # yum-builddep systemtap
<linus2> so many update -_-
<fche> heh, is the machine very out of date?
<linus2> no
<linus2> I use two machine
<linus2> both have the question
<linus2> one is E5-2683
<linus2> now configure passed
<linus2> but make all error
<fche> hm what's the error?
<linus2> /usr/include/elfutils/libdw.h:276:6: error: expected initializer before ‘__nonnull_attribute__’
<linus2> __nonnull_attribute__ (3);
<fche> ewww
<linus2> compiler caused ?
<fche> yeah .... rpm -q elfutils-devel gcc-c++ ?
<linus2> I am using gcc 6.2
<fche> hmmm try using the system compiler, unless you have good reason not to
<linus2> rpm -q elfutils-devel gcc-c++ what's effect of this
<fche> tells us the version of those packages
<linus2> elfutils-devel-0.176-4.el7.x86_64
<linus2> gcc-c++-4.8.5-39.el7.x86_64
<linus2> now I use gcc4.8
<linus2> make clean make all
<linus2> /usr/include/c++/4.8.2/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This suppo
<linus2> rt is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
<linus2> #error This file requires compiler and library support for the \
<linus2> /usr/include/elfutils/libdw.h:276:6: error: expected initializer before ‘__nonnull_attribute__’
<linus2> still many errros
hpt has joined #systemtap
<linus2> systemtap/stapdyn/mutatee.cxx:503: undefined reference to `BPatch_object::pathName[abi:cxx11]()'
<linus2> collect2: error: ld returned 1 exit status
<linus2> this is E5's error(E5 compile some files)
<linus2> yum-builddep systemtap ------- No source RPM found for systemtap-4.0-11.el7.aarch64
<linus2> the third machine is a arm and has this error
<linus2> fche: it seems the systemtap not compile and system friendly :)
<fche> heh, well, rhel7 is quite old so sometimes some special things need to be done there
<fche> but I do know for a fact that plain rhel7 (without your custom 6.3 compiler etc.) can build current stap, we do that all the time
<fche> in fact am just doing it on a rhel7 vm just to double check
<fche> maybe try the configure step again - it might have saved some knowledge about the 6.3 compiler
<fche> now that's for x86-64. not sure about arm64 off the top of my head
<linus2> the arm64 support will be by rpm and a long time to do?
<fche> nah just checked, arm64 should be okay on rhel7 too,
<fche> so you should be able to build the same source version of systemtap on a rhel7 arm64 box
<fche> just follow same procedure with yum builddep etc.
<fche> and use system compiler
<linus2> fche: one by one
<fche> one foot before the other, step by step :-)
<linus2> E5 and gcc7.3 first
<linus2> systemtap/stapdyn/mutatee.cxx:503: undefined reference to `BPatch_object::pathName[abi:cxx11]()'
<linus2> collect2: error: ld returned 1 exit status
<linus2> this error
<fche> make -k
<fche> that's a dyninst backend related issue, it's not important for your purposes (it's a separate binary that's optional)
<linus2> rpm -q elfutils-devel gcc-c++
<linus2> elfutils-devel-0.176-4.el7.x86_64
<linus2> gcc-c++-4.8.5-36.el7_6.2.x86_64
<fche> ok, not the freshest versions but should work
<linus2> fche: how to go passed the BPatth error
<fche> make -k
<linus2> make[2]: Entering directory `/root/systemtap/stap-exporter'
<linus2> make[2]: Nothing to be done for `all'.
<linus2> make[2]: Leaving directory `/root/systemtap/stap-exporter'
<linus2> make[1]: *** [all-recursive] Error 1
<fche> that's ok, the important parts will have been built; ls -al stap */stapio */staprun
gromero has quit [Ping timeout: 260 seconds]
<linus2> this is a normal machine and install many software and very smooth
<linus2> yes, has
<linus2> ./stap --version
<linus2> Systemtap translator/driver (version 4.4/0.176, commit release-4.3-29-gf1a9bb064d11 + changes)
<linus2> Copyright (C) 2005-2020 Red Hat, Inc. and others
<fche> good stuff
<fche> ok, so to fix this part (on the arm64 machine), you could # rpm -e dyninst-devel dyninst
<fche> and rerun the configure step for systemtap
<fche> and then it won't try to build the dyninst-related portions next time
gromero has joined #systemtap
derek0883 has quit [Remote host closed the connection]
derek0883 has joined #systemtap
<linus2> ./stap -L 'process("./a.out").statement("*@*:*")'
<linus2> nothing echo
<linus2> ok
<linus2> -g
<linus2> echo
<linus2> cool
<fche> what are you seeing?
<linus2> every line probe
<fche> hey great
<fche> thanks a lot for sticking with it!
<linus2> thank you too
<linus2> next is arm64
<linus2> configure: error: missing elfutils development headers/libraries (install elfutils-devel, libebl-dev, libdw-dev and/or libebl-devel)
<linus2> yum-builddep systemtap
<linus2> No source RPM found for systemtap-4.0-11.el7.aarch64
<fche> hm interesting
<fche> yum install elfutils-devel gcc-c++
<linus2> yum install gcc-c++
<linus2> which version will be installed
<fche> normally the distro system version
<linus2> May it do harm to my installed softwares?
<fche> I don't see how, unless you have used that same package name for incompatible software
<fche> but heck you can try it with just elfutils-devel
<fche> see if whatever you have works
<linus2> now it ok
<linus2> make all ing
<linus2> it seems ok
<linus2> waiting
<linus2> stap is DSL in nature,right?
<fche> yes
<linus2> it's difficulty is compiler technology
<fche> it's tricky stuff
<linus2> beautifully defined grammer
<linus2> I think stap's grammer is defined very well, very naturally
<fche> hey you like it? :) there are folks who don't
<linus2> like C
<linus2> yes
<fche> heh and if you like C, you can embed real C via %{ %}
<linus2> yes, I can do this
<linus2> yeah, I had some of it
<linus2> I can write more complicated example
<fche> we'd love to hear what you come up with and if it helps --- or even if it fails
<linus2> I called amy before
<linus2> do you rememver
<linus2> remember
<fche> heh
<fche> need to stick to one memorable nick name :)
<linus2> now is linus2
<linus2> how do you think my new nick name
<fche> well ... I suspect there can be only one Linus for real but whatever :)'
<linus2> I agree with you
<linus2> you and he are my idol
<linus2> :)
<fche> oh next time I see Linus, we'll have an arm wrestling match for the honour :-)
<linus2> :)
<fche> he will definitely win on hair
<linus2> arm64 test passed too
derek0883 has quit [Remote host closed the connection]
<linus2> fche: :)
<fche> neat
derek0883 has joined #systemtap
<linus2> many famous hack have little hair
<linus2> java's father and so on
<fche> heh those guys are in an echelon well above ours :)
<linus2> fche: the mark problem still exist
<linus2> solved is statement probe
derek0883 has quit [Ping timeout: 260 seconds]
<fche> can you remind me which problem that is?
<linus2> STAP_PROBE probe still error
<linus2> stap can probe STAP_PROBE in openmp parallel region
<linus2> can't
<linus2> it seems that user probe is more complicated than kernel probe
irker212 has joined #systemtap
<irker212> systemtap: fche systemtap.git:master * release-4.3-30-ga4d7b3797 / README: README: modernize
<irker212> systemtap: fche systemtap.git:master * release-4.3-31-gc6831f14e / testsuite/systemtap.base/cast.stp: testuite: More @cast() fallout
<irker212> systemtap: fche systemtap.git:master * release-4.3-32-g143974310 / dwflpp.cxx tapsets.cxx testsuite/systemtap.base/openmp-stmt.c testsuite/systemtap.base/openmp-stmt.exp: PR25549: statement probe visibility for openmp / lto binaries
<fche> can you share your STAP_PROBE-equipped c code?
* fche is out of time to help tonight but may take a look tomorrow
gromero has quit [Ping timeout: 260 seconds]
<linus2> fche: yeah, wait a minite
derek0883 has joined #systemtap
gromero has joined #systemtap
<linus2> fche: after I compile my source code , it is ok
<linus2> my error :)
gromero has quit [Ping timeout: 246 seconds]
<irker212> systemtap: fche systemtap.git:master * release-4.3-33-g57c76ab3f / tapsets.cxx: PR25549: format tweak
<linus2> fche: new error
<linus2> semantic error: type mismatch: expected long but found string: identifier 'usymline'
<linus2> it seems the new compiled stap can't find the library
gromero has joined #systemtap
<fche> ah did you "make install" ?
<linus2> no
<fche> ok stap needs to find some files in the install directory, unless special work is done via quasi-documented environment variables
<linus2> make intall
<linus2> make: *** No rule to make target `intall'. Stop.
<fche> install
<fche> it'll copy some files into the --prefix directory you specified at configure time
<linus2> fche: stap can't find the pre installed file?
<linus2> systemtap/stapdyn/mutatee.cxx:503: undefined reference to `BPatch_object::pathName[abi:cxx11]()'
<linus2> collect2: error: ld returned 1 exit status
<linus2> make[3]: *** [stapdyn] Error 1
<linus2> old error
<fche> yeah remember that's that arm64 dyninst thing, ignore that (make -k install to proceed)
derek0883 has quit [Remote host closed the connection]
<linus2> make[2]: Nothing to be done for `all'.
<linus2> make[2]: Leaving directory `/root/systemtap/stap-exporter'
<linus2> make[1]: *** [all-recursive] Error 1
<linus2> it like installing
<linus2> I think it's better to add a environment
<linus2> decouple the binary and runtime library
<linus2> and set a default lookup path
<fche> see the run-stap shell script, it does that kind of
<linus2> how to seee
<fche> it's in the build tree
<fche> undocumented I think but it's for what you think it is
<linus2> make install according the run-stap?
<linus2> SYSTEMTAP_TAPSET="${srcdir}/tapset"
<fche> run-stap runs systemtap out of the build tree, as though it were installed
<fche> it sets the appropriate environment variables for the build tree stap to find its uninstalled friends
<fche> and with that
* fche bids you adieu
gromero has quit [Ping timeout: 272 seconds]
<linus2> source run-stap?
<fche> ./run-stap [normal stap options]
<linus2> ./run-stap ./xx.stp ./a.out
<linus2> the same error
<linus2> semantic error: type mismatch: expected long but found string: identifier 'usymline'
<fche> ah
<fche> ok
gromero has joined #systemtap
<fche> aw man I said I'd leave but I didn't
<fche> :)
<fche> can you paste that xx.stp file
<linus2> probe process.begin
<linus2> {
<linus2> printf("%d\n",usymline(uaddr()))
<linus2> }
<fche> printf("%s ..." usymline is a string
<linus2> it is ok now
<linus2> thank you very much
<fche> ok really good night now :)
<linus2> fche: all is ok now. Good night
<linus2> Thank you very much
<linus2> amazing linux
<linus2> amazing stap
<linus2> cross different arch
<linus2> which city do you live in?
gromero has quit [Ping timeout: 264 seconds]
gromero has joined #systemtap
gromero has quit [Ping timeout: 246 seconds]
orivej has quit [Ping timeout: 264 seconds]
orivej_ has joined #systemtap
_whitelogger has joined #systemtap
irker212 has quit [*.net *.split]
tonyj has quit [*.net *.split]
wcohen has quit [*.net *.split]
jistone has quit [*.net *.split]
DTEIT has quit [*.net *.split]
CME has quit [*.net *.split]
serhei has quit [*.net *.split]
jhg_ has quit [*.net *.split]
orivej_ has quit [*.net *.split]
ChanServ has quit [*.net *.split]
przemoc has quit [*.net *.split]
ema has quit [*.net *.split]
agentzh has quit [*.net *.split]
xar- has quit [*.net *.split]
hpt has quit [*.net *.split]
DUKENUKEM has quit [*.net *.split]
fLiPr3VeRsE has quit [*.net *.split]
eichiro_ has quit [*.net *.split]
darvon has quit [*.net *.split]
higgins` has quit [*.net *.split]
fche has quit [*.net *.split]
zamba has quit [*.net *.split]
_whitelogger has joined #systemtap
przemoc has joined #systemtap
orivej_ has joined #systemtap
eichiro_ has joined #systemtap
fLiPr3VeRsE has joined #systemtap
irker212 has joined #systemtap
jistone has joined #systemtap
wcohen has joined #systemtap
tonyj has joined #systemtap
ggherdov has joined #systemtap
gromero has quit [Ping timeout: 256 seconds]
gromero has joined #systemtap
orivej_ has quit [Ping timeout: 272 seconds]
orivej has joined #systemtap
orivej has quit [Ping timeout: 244 seconds]
orivej_ has joined #systemtap
gromero has quit [Ping timeout: 256 seconds]
derek0883 has joined #systemtap
orivej_ has quit [Ping timeout: 246 seconds]
derek0883 has quit [Ping timeout: 260 seconds]
derek0883 has joined #systemtap
_whitelogger has joined #systemtap
khaled has joined #systemtap
khaled has quit [Ping timeout: 256 seconds]
khaled_ has joined #systemtap
derek0883 has quit [Remote host closed the connection]
irker212 has quit [Quit: transmission timeout]
orivej has joined #systemtap
hpt has quit [Ping timeout: 260 seconds]
khaled_ has quit [*.net *.split]
przemoc has quit [*.net *.split]
przemoc has joined #systemtap
khaled_ has joined #systemtap
sapatel has joined #systemtap
ggherdov has quit [Ping timeout: 256 seconds]
ggherdov has joined #systemtap
sscox has quit [Ping timeout: 260 seconds]
amerey has joined #systemtap
sapatel has quit [Read error: error:1408F10B:SSL routines:ssl3_get_record:wrong version number]
sapatel has joined #systemtap
tromey has joined #systemtap
sscox has joined #systemtap
orivej has quit [Ping timeout: 258 seconds]
orivej has joined #systemtap
derek0883 has joined #systemtap
orivej_ has joined #systemtap
orivej has quit [Ping timeout: 265 seconds]
orivej_ has quit [Read error: Connection reset by peer]
orivej has joined #systemtap
orivej has quit [Ping timeout: 264 seconds]
_whitelogger has joined #systemtap
derek0883 has quit [Remote host closed the connection]
tromey has quit [Quit: ERC (IRC client for Emacs 28.0.50)]
derek0883 has joined #systemtap
derek0883 has quit [Remote host closed the connection]
khaled_ has quit [Quit: Konversation terminated!]
amerey has quit [Quit: Leaving]
derek0883 has joined #systemtap
derek0883 has quit [Ping timeout: 256 seconds]
derek0883 has joined #systemtap
sapatel has quit [Remote host closed the connection]