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