Debian Codegraph @

testsuite/semok/thirtyeight.stp

raw
1 #! stap -Wp2
2
3 # Each of the @defined should be a valid symbol, and sometimes their expansion
4 # leads to a new function declaration. We don't want to get warnings when such
5 # functions turn out to be unused and are elided.
6
7 probe kernel.function("do_sys_open") { println(@defined($mode) ? 1 : $nosuchvar) }
8 probe kernel.trace("sched_switch")? { println(@defined($next->pid) ? 1 : $nosuchvar) }
9 probe procfs.write { println(@defined($value) ? 1 : $nosuchvar) }
10 probe begin { println(@defined(@cast(0, "task_struct", "kernel")->pid) ? 1 : $nosuchvar) }