]> sourceware.org Git - systemtap.git/blame - testsuite/semok/entry03.stp
Rename CONTEXT regflags to probe_flags. Now simply indicates user mode.
[systemtap.git] / testsuite / semok / entry03.stp
CommitLineData
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
12probe 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
17probe kernel.function("do_filp_open").return {
18 println(get_cycles() - @entry(get_cycles()))
04244729 19 println(kernel_string(@defined($pathname) ? $pathname : $filename))
8cc799a5 20}
This page took 0.046982 seconds and 5 git commands to generate.