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: how to find all PMU name?
<linus2> such as insn["find_insns"] = @perf("find_insns")
<linus2> how to know all avaliable "find_insns"?
<linus2> it's a user defined name?
<linus2> probe perf.hw.branch_instructions.process("/usr/bin/find").counter("find_branches") {}
<linus2> how to know all avaliable perf event's style of writing perf.????.process?
<linus2> I found stap -l 'perf.*.*'
<linus2> :)
<linus2> probe perf.hw.instructions.process("/usr/bin/find").counter("find_insns") {} means get all CPUs' counter or per CPUs' counter?
<linus2> fche: when I use stap -v to run this example stp
<linus2> It errors
<linus2> semantic error: while resolving probe point: identifier 'process' at perf_find.stp:16:7
<linus2> source: probe process("/usr/bin/find").function("visit") # generally .inline'd, thus the need for debuginfo
<linus2> ^
<linus2> semantic error: no match (similar functions: _init, exit, _exit, mbsinit, _fini)
derek0883 has quit [Remote host closed the connection]
sscox has joined #systemtap
derek0883 has joined #systemtap
sscox has quit [Ping timeout: 244 seconds]
<fche> linus2, the syntax here is two-stage:
<fche> you define stap-script-level counters with the probe perf.*.counter("....") {} pseudo-probe
<fche> then use those counter names in the @perf("....") constructs in the uprobes
orivej has joined #systemtap
khaled has quit [Remote host closed the connection]
<linus2> May you run this code correctly? https://sourceware.org/systemtap/examples/profiling/perf.stp
derek0883 has quit [Ping timeout: 240 seconds]
_whitelogger has joined #systemtap
derek0883 has joined #systemtap
_whitelogger has joined #systemtap
derek0883 has quit [Remote host closed the connection]
_whitelogger has joined #systemtap
khaled has joined #systemtap
orivej has quit [Ping timeout: 256 seconds]
<fche> hm, linus2, that stap script looks fragile w.r.t. versions of find(1), doesn't work for me on f32
<fche> hm, with debuginfo for findutils, it works better ("visit" appears to be inlined now)
<fche> but still yeah the test should be updated
derek0883 has joined #systemtap
derek0883 has quit [Ping timeout: 265 seconds]
_whitelogger has joined #systemtap
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: 264 seconds]
orivej has joined #systemtap
derek0883 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: 256 seconds]
derek0883 has quit [Remote host closed the connection]
derek0883 has joined #systemtap
derek0883 has quit [Ping timeout: 260 seconds]
derek0883 has joined #systemtap
derek0883 has quit [Ping timeout: 260 seconds]
derek0883 has joined #systemtap
derek0883 has quit [Remote host closed the connection]
derek0883 has joined #systemtap