2021-04-14 15:02:36 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# runtest.sh of /tools/systemtap/Sanity/quick-smoke-test
|
|
|
|
|
|
|
|
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
|
|
|
|
2021-05-09 19:32:49 +00:00
|
|
|
export DEBUGINFOD_URLS="https://debuginfod.fedoraproject.org/ $DEBUGINFOD_URLS"
|
2021-04-14 15:02:36 +00:00
|
|
|
export DEBUGINFOD_TIMEOUT=300
|
|
|
|
# export DEBUGINFOD_PROGRESS=1
|
|
|
|
|
|
|
|
|
|
|
|
rlJournalStart
|
|
|
|
rlPhaseStartTest
|
|
|
|
rlRun "rpm -qa | egrep '^(kernel|systemtap)' | sort"
|
|
|
|
rlRun "uname -r"
|
|
|
|
rlRun "stap-prep"
|
|
|
|
rlRun "stap -L 'process(\"stap\").mark(\"*\")' | grep pass"
|
|
|
|
rlRun "stap -v --example helloworld.stp"
|
|
|
|
rlRun "stap -v -T 10 -p4 -e 'probe kernel.function(\"do_exit\") {println(\$\$vars)}'"
|
|
|
|
rlRun "stap -v -T 60 -e 'probe kernel.function(\"vfs_read\"){ println(\$\$vars); exit() }'"
|
|
|
|
rlPhaseEnd
|
|
|
|
rlJournalPrintText
|
|
|
|
rlJournalEnd
|