#內核需要安裝對應版本的符號表
dpkg -i linux-image-5.3.15-2019051601-generic-dbgsym_5.3.15-2019051601.jeff_arm64.ddeb
# On modern Fedora, install general optional build-requisites:
yum-builddep systemtap
# On modern Debian/Ubuntu, similarly:
apt build-dep systemtap
下載編譯
git clone git://sourceware.org/git/systemtap.git
cd systemtap
./configure
make all && make install
驗證命令
# stap -V
Systemtap translator/driver (version 4.3/0.170, commit release-4.2-52-g29a13cd09151 + changes)
Copyright (C) 2005-2019 Red Hat, Inc. and others
This is free software; see the source for copying conditions.
tested kernel versions: 2.6.32 ... 5.4-rc6
enabled features: BOOST_STRING_REF BPF PYTHON2 NLS