| 1 |
# uncached_tracepoints.exp |
| 2 |
# PR18000 - traceponts should still work with disabled cache |
| 3 |
set test "uncached_tracepoints" |
| 4 |
if {![installtest_p]} { untested $test; return } |
| 5 |
|
| 6 |
# Set up the tracepoint we're checking for |
| 7 |
set tracepoint {kernel.trace("sched_switch")} |
| 8 |
set cmd [concat {stap -l} $tracepoint] |
| 9 |
|
| 10 |
# Pre-check that the tracepoint exists |
| 11 |
verbose -log "$test exec: $cmd" |
| 12 |
set res [catch {eval exec $cmd} output] |
| 13 |
verbose -log "$output" |
| 14 |
if {$res} { |
| 15 |
untested "$test (not found)" |
| 16 |
return |
| 17 |
} |
| 18 |
|
| 19 |
# Check that the tracepoint can be found without cache |
| 20 |
set cmd [concat $cmd --disable-cache] |
| 21 |
verbose -log "$test exec: $cmd" |
| 22 |
set res [catch {eval exec $cmd} output] |
| 23 |
verbose -log "$output" |
| 24 |
if {$res} { |
| 25 |
fail "$test" |
| 26 |
} else { |
| 27 |
pass "$test" |
| 28 |
} |