]>
Commit | Line | Data |
---|---|---|
8cc799a5 JS |
1 | #! stap -Wp2 |
2 | ||
3 | # This causes a mix of kretprobe-data-pouch and global-map | |
4 | # approaches for saving entry values. | |
5 | # | |
6 | # During development I found that kretprobe would add a call block without | |
7 | # setting up _dwarf_tvar_tid, and then global-map would neglect to create the | |
8 | # tid as it appended. | |
9 | # | |
10 | # We try it in both orders here to make sure they don't interfere either way. | |
11 | ||
12 | probe kernel.function("do_filp_open").return { | |
04244729 | 13 | println(kernel_string(@defined($pathname) ? $pathname : $filename)) |
8cc799a5 JS |
14 | println(get_cycles() - @entry(get_cycles())) |
15 | } | |
16 | ||
17 | probe kernel.function("do_filp_open").return { | |
18 | println(get_cycles() - @entry(get_cycles())) | |
04244729 | 19 | println(kernel_string(@defined($pathname) ? $pathname : $filename)) |
8cc799a5 | 20 | } |