#!/bin/bash set -xe rm -rf ~/.debuginfod_client_cache ~/.systemtap ||: debuginfod -p 8008 -d $(mktemp) -vvvvv >& debuginfod.log & PID=$! sleep 5 export SYSTEMTAP_DEBUGINFO_PATH=/tmp export DEBUGINFOD_URLS="http://127.0.0.1:8008" # The following doesn't work on aarch64 and s390x because of: # https://sourceware.org/bugzilla/show_bug.cgi?id=25498 # stap -p2 -e 'probe kernel.function("vfs_read") {println(pp())}' ||: stap -p2 -e 'probe process("/bin/true").function("main") {println(pp())}' -c /bin/true ||: sleep 5 kill -9 $PID grep 'started http server on' debuginfod.log grep 'searching for buildid=[a-z0-9]* artifacttype=debuginfo' debuginfod.log