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 [Ping timeout: 248 seconds]
orivej has joined #systemtap
hpt has joined #systemtap
orivej has quit [Ping timeout: 240 seconds]
scox has quit [Ping timeout: 240 seconds]
scox has joined #systemtap
nkambo has joined #systemtap
slowfranklin has joined #systemtap
lightydo has quit [Remote host closed the connection]
lightydo has joined #systemtap
hpt has quit [Quit: Lost terminal]
scox has quit [Ping timeout: 248 seconds]
gromero has joined #systemtap
orivej has joined #systemtap
gila has joined #systemtap
scox has joined #systemtap
gila has quit [Read error: Connection reset by peer]
drsmith_away is now known as drsmith
mbenitez has joined #systemtap
mbenitez has joined #systemtap
mbenitez has quit [Changing host]
mjw has joined #systemtap
orivej has quit [Ping timeout: 256 seconds]
brolley has joined #systemtap
<lightydo>
Hi, can someone provide an example of counting all sw page faults per process?
<lightydo>
Hi fche, I thought the approach would be to use something like : probe perf.sw.page_faults.counter("a") { }
<fche>
that sort of thing would probably work too, so basically don't trap them all just try to collect counts
<lightydo>
yes, the question is where to aggregate the counter... page_faults_cnt[pid()] <<< @perf("a")
<fche>
those @perf("...") type count values are only accessible in userspace probes (due to limitations in older kernels; current kernel should let us remove that restrictions, but that's some work)
<fche>
so basically probe process("...").function("main").return { } kind of thing
<fche>
-or-
<fche>
use systemwide (normal, .counter-less) perf probes, and then count counter hits against the then-current process