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: fatal error: sys/sdt.h: No such file or directory when compiling
<linus2>
what's the reason,fche
<fche>
maybe your sys/sdt.h is only somewhere other than /usr/include and thus you need an -I ... to point to it?
<linus2>
thank you
orivej has quit [Ping timeout: 256 seconds]
orivej_ has joined #systemtap
orivej_ has quit [Ping timeout: 240 seconds]
orivej has joined #systemtap
khaled has quit [Quit: Konversation terminated!]
derek0883 has quit [Remote host closed the connection]
derek0883 has joined #systemtap
orivej has quit [Ping timeout: 258 seconds]
orivej has joined #systemtap
derek0883 has quit [Remote host closed the connection]
derek0883 has joined #systemtap
_whitelogger has joined #systemtap
orivej has quit [Ping timeout: 256 seconds]
orivej_ has joined #systemtap
derek0883 has quit [Remote host closed the connection]
derek0883 has joined #systemtap
hpt has joined #systemtap
orivej_ has quit [Ping timeout: 240 seconds]
orivej has joined #systemtap
derek088_ has joined #systemtap
derek0883 has quit [Ping timeout: 260 seconds]
orivej has quit [Ping timeout: 272 seconds]
orivej has joined #systemtap
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #systemtap
orivej has quit [Ping timeout: 240 seconds]
irker598 has quit [Quit: transmission timeout]
derek088_ has quit [Ping timeout: 272 seconds]
derek0883 has joined #systemtap
derek0883 has quit [Ping timeout: 256 seconds]
derek0883 has joined #systemtap
derek0883 has quit [Remote host closed the connection]
derek0883 has joined #systemtap
derek0883 has quit [Remote host closed the connection]
derek0883 has joined #systemtap
derek0883 has quit [Remote host closed the connection]
derek0883 has joined #systemtap
derek0883 has quit [Remote host closed the connection]
derek0883 has joined #systemtap
orivej has joined #systemtap
derek0883 has quit [Remote host closed the connection]
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
khaled has joined #systemtap
orivej_ has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #systemtap
orivej has quit [Ping timeout: 256 seconds]
orivej has joined #systemtap
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #systemtap
orivej has quit [Ping timeout: 256 seconds]
orivej has joined #systemtap
orivej has quit [Ping timeout: 256 seconds]
orivej_ has joined #systemtap
orivej_ has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #systemtap
orivej has quit [Ping timeout: 240 seconds]
orivej has joined #systemtap
orivej has quit [Ping timeout: 256 seconds]
orivej has joined #systemtap
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #systemtap
orivej has quit [Quit: No Ping reply in 180 seconds.]
_whitelogger has joined #systemtap
orivej has joined #systemtap
orivej has quit [Ping timeout: 240 seconds]
orivej has joined #systemtap
orivej has quit [Ping timeout: 240 seconds]
_whitelogger has joined #systemtap
orivej has quit [Ping timeout: 258 seconds]
orivej has joined #systemtap
orivej has quit [Ping timeout: 264 seconds]
<linus2>
one day flies
hpt has quit [Ping timeout: 240 seconds]
sscox has quit [Ping timeout: 260 seconds]
mjw has joined #systemtap
orivej has joined #systemtap
orivej_ has joined #systemtap
orivej has quit [Ping timeout: 256 seconds]
amerey has joined #systemtap
orivej_ has quit [Ping timeout: 256 seconds]
orivej has joined #systemtap
orivej has quit [Ping timeout: 258 seconds]
orivej has joined #systemtap
orivej has quit [Ping timeout: 256 seconds]
orivej_ has joined #systemtap
orivej has joined #systemtap
orivej_ has quit [Ping timeout: 260 seconds]
orivej has quit [Ping timeout: 256 seconds]
orivej has joined #systemtap
amerey has quit [Remote host closed the connection]
amerey has joined #systemtap
orivej has quit [Ping timeout: 246 seconds]
orivej has joined #systemtap
sscox 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
sscox has quit [Ping timeout: 240 seconds]
orivej has quit [Ping timeout: 256 seconds]
orivej has joined #systemtap
<linus2>
fche: ERROR: Skipped too many probes, check MAXSKIPPED or try again with stap -t for more details.
<linus2>
fche: I met this problem.
<linus2>
probe statement { if(tid() == target){do someting}} and the statement is in openmp parallel region.
<linus2>
I think all the thread trapped into the probe.
wcohen is now known as wcohen|lunch
<linus2>
but why all threads run the "do something"(the tid() == target can't keep the target() thread trapped?)
orivej has quit [Ping timeout: 240 seconds]
orivej has joined #systemtap
<linus2>
and why stap -t print info "__global_count' lock contention occurred 15328 times", count is modified in "do something" and I calulate it should be 396,now is 15328
tromey has joined #systemtap
derek0883 has joined #systemtap
derek0883 has quit [Read error: Connection reset by peer]
derek0883 has joined #systemtap
mjw has quit [Quit: Leaving]
sapatel has joined #systemtap
<fche>
linus2, consider using an aggregate object to track counts that are frequently concurrently updated
<fche>
i.e., count <<< 1 instead of count ++
<fche>
and then later print @count(count) if needed
orivej has quit [Quit: No Ping reply in 180 seconds.]
derek0883 has quit [Remote host closed the connection]
<linus2>
fche: ERROR: Skipped too many probes, check MAXSKIPPED or try again with stap -t for more details.
derek0883 has joined #systemtap
<linus2>
this problem is more important
orivej has joined #systemtap
<fche>
they can be interrelated
<fche>
contention over a global variable can result in skipped probes
<linus2>
fche: but I think there are't contention
<linus2>
because I use if(tid() == target){do someting}
<linus2>
only the target() thread can modify the global count
<linus2>
in do somethin
<linus2>
it's strange
<fche>
locking of the variables occurs before these conditionals are executed
<fche>
now perhaps the translator could be made smarter to defer that a little bit, until say the first actual usage, but it doesn't now.
<linus2>
fche: I think I'm starting to get it.
<linus2>
fche: you mean that once threads that trapped into the probe will have locks placed on global variables, right?
<fche>
yup
<fche>
as a part of the probe prologue
<linus2>
Coarse-grained lock
<linus2>
so coarse
<fche>
yup, but simple to do and to explain
derek088_ has joined #systemtap
<linus2>
I don't think it's friendly to multi-threaded programs.
derek0883 has quit [Ping timeout: 256 seconds]
wcohen|lunch is now known as wcohen
<linus2>
fche: I think you can generate cas for global variable
<linus2>
wcohen: did you change you nick by hand?
<wcohen>
linus2, yes, I used: /nick wcohen|lunch and /nick wcohen
<linus2>
wcohen: cool
<linus2>
I saw you often change it.
<wcohen>
I change it to let people know I am out, but I am not super regular about it.
<linus2>
wcohen: smart
<fche>
re. cas for global variable --- not that simple when you have multiple vars; or lookup-table manipulations; or iteration (which logically functions like an exclusive lock)
<linus2>
fche: if multiple vars require keep synchronous modify, I think it's better introduce critical grammer
<fche>
we opted for a simple to describe, straightforward to implement, trivial to use scheme
<fche>
and have that aggregate data type to help out in highly contented cases
<linus2>
fche: To a certain extent, you're right. it's good to debug or function analysis
<linus2>
fche: I think stap can introduce a suffix like probe ().cas to support cas for expert, but default is global big synchronous.
orivej has quit [Ping timeout: 240 seconds]
<linus2>
It's not very difficult to achieve.
orivej has joined #systemtap
<fche>
tbh I'd look first at what semantic-preserving optimizations we can do
<fche>
to accommodate common usage patterns, like filtering predicates at the top
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #systemtap
sscox has joined #systemtap
orivej has quit [Ping timeout: 272 seconds]
orivej_ 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: 264 seconds]
orivej has joined #systemtap
sscox has quit [Ping timeout: 260 seconds]
sscox has joined #systemtap
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #systemtap
orivej has quit [Ping timeout: 240 seconds]
orivej has joined #systemtap
orivej has quit [Ping timeout: 256 seconds]
orivej has joined #systemtap
mjw has joined #systemtap
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #systemtap
derek088_ has quit [Remote host closed the connection]
derek0883 has joined #systemtap
derek0883 has quit [Remote host closed the connection]
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #systemtap
derek0883 has joined #systemtap
derek0883 has quit [Remote host closed the connection]
derek0883 has joined #systemtap
derek0883 has quit [Remote host closed the connection]
derek0883 has joined #systemtap
orivej has quit [Ping timeout: 256 seconds]
orivej has joined #systemtap
derek0883 has quit [Remote host closed the connection]
derek0883 has joined #systemtap
derek0883 has quit [Remote host closed the connection]
derek0883 has joined #systemtap
orivej has quit [Quit: No Ping reply in 180 seconds.]
derek0883 has quit [Remote host closed the connection]
orivej has joined #systemtap
derek0883 has joined #systemtap
derek0883 has quit [Ping timeout: 256 seconds]
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #systemtap
tromey has quit [Quit: ERC (IRC client for Emacs 28.0.50)]
nrb has joined #systemtap
<nrb>
so fche, i got it nearly working, stap code compiles and i can see my function being called
<nrb>
but values of params are printed out as ?
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #systemtap
derek0883 has joined #systemtap
<nrb>
alright i know what it is, the func is inlined so i have to deoptimize it
nrb has quit [Quit: Lost terminal]
derek0883 has quit [Remote host closed the connection]
amerey has quit [Quit: Leaving]
<fche>
nrb depends ...
derek0883 has joined #systemtap
derek0883 has quit [Remote host closed the connection]