| 1 |
#! stap -Wp2 |
| 2 |
|
| 3 |
global stat |
| 4 |
|
| 5 |
# dwarf .return probes can use @entry |
| 6 |
probe kernel.function("do_filp_open").return?, |
| 7 |
kernel.function("filp_open").return?, |
| 8 |
process("stap").function("main").return? |
| 9 |
{ |
| 10 |
stat[pp()] <<< get_cycles() - @entry(get_cycles()) |
| 11 |
} |