| 1 |
|
| 2 |
set stap_path $env(SYSTEMTAP_PATH)/stap |
| 3 |
set test "prcwildcard function" |
| 4 |
# Looking for functions in stap will only work if it isn't stripped. |
| 5 |
if {[stripped_p $stap_path]} { |
| 6 |
untested $test |
| 7 |
} else { |
| 8 |
spawn stap -L "process(\"$stap_path\").function(\"*\")" |
| 9 |
set count 0 |
| 10 |
expect { |
| 11 |
-re {^process[^\r\n]+\r\n} { incr count; exp_continue } |
| 12 |
timeout { } |
| 13 |
eof { } |
| 14 |
} |
| 15 |
catch {close}; catch {wait} |
| 16 |
if {$count > 100} then { pass $test } else { fail $test } |
| 17 |
} |
| 18 |
|
| 19 |
set test "prcwildcard mark" |
| 20 |
spawn stap -L "process(\"$stap_path\").mark(\"*\")" |
| 21 |
set count 0 |
| 22 |
expect { |
| 23 |
-re {^process[^\r\n]+\r\n} { incr count; exp_continue } |
| 24 |
timeout { } |
| 25 |
eof { } |
| 26 |
} |
| 27 |
catch {close}; catch {wait} |
| 28 |
if {$count > 5} then { pass $test } else { fail $test } |
| 29 |
|