| 1 |
#! /bin/sh |
| 2 |
|
| 3 |
# PR16730: We should only list probes that can be traced back to the |
| 4 |
# user's spec, not any auxiliary probes in the tapsets. |
| 5 |
# |
| 6 |
# There happens to be a begin(-1001) initialization probe in socket.stp, |
| 7 |
# but a `stap -l socket.send` shouldn't list that |
| 8 |
|
| 9 |
# First sanity check that the begin(-1001) probe is still present: |
| 10 |
if ! stap -p2 -e 'probe socket.send { next }' | grep -q ^begin; then |
| 11 |
exit 2 |
| 12 |
fi |
| 13 |
|
| 14 |
|
| 15 |
# Now make sure that the begin probe isn't listed: |
| 16 |
if stap -l socket.send | grep -q ^begin; then |
| 17 |
exit 1 |
| 18 |
fi |
| 19 |
|
| 20 |
exit 0 |