systemtap/tests/dejagnu-smoketest/runtest.sh

18 lines
403 B
Bash
Raw Normal View History

#!/bin/sh
2018-09-14 18:21:05 +00:00
set -e
2018-09-15 01:15:38 +00:00
set -x
2018-09-15 01:15:38 +00:00
dnf debuginfo-install -y kernel
2018-09-16 11:32:39 +00:00
# on Fedora CI, can only assume about 1GB RAM to run these tests
2018-09-16 15:11:19 +00:00
stap -L 'process("stap").mark("*")' | grep pass
2018-09-16 11:32:39 +00:00
# stap -L 'kernel.trace("sys_enter")'
2018-09-15 01:15:38 +00:00
stap -v --example helloworld.stp
2018-09-16 15:11:19 +00:00
stap -v -T 10 -e 'probe kernel.function("do_exit") {println($$vars)}' -c true
# stap -v -T 10 -e 'probe syscall.* ? {println(argstr)}'
2018-09-16 10:26:23 +00:00
2018-09-16 11:32:39 +00:00
echo
echo RESULT: PASS