| 1 |
#! stap -p2 |
| 2 |
|
| 3 |
probe kernel.function("schedule_tail").return ? |
| 4 |
{ |
| 5 |
// Test the type propagated from a value saved at entry, with an error |
| 6 |
// (semok/autocast11.stp makes sure this normally works) |
| 7 |
mm = $prev->mm |
| 8 |
println(mm->no_such_member) |
| 9 |
} |
| 10 |
|
| 11 |
probe process("stap").function("main").return ? |
| 12 |
{ |
| 13 |
// NB: if the access above fails as it should, we won't even get here, but |
| 14 |
// this is still useful to give --runtime=dyninst something to test. |
| 15 |
a = $argv |
| 16 |
println(a->no_such_member) |
| 17 |
} |