Linux Device Driver >> SystemTap
解決"module version mismatch"問題
問題如下:
$ stap main.stp ERROR: module version mismatch (#1 SMP Sat Jul 2 22:17:10 EDT 2022 vs #1 SMP Mon Feb 22 16:43:24 EST 2021), release 4.19.133 WARNING: /usr/local/bin/staprun exited with status: 1 Pass 5: run failed. [man error::pass5]
司徒目前是重新編譯安裝SystemTap,用來解決這個問題,步驟如下:
$ cd $ wget https://sourceware.org/systemtap/ftp/releases/systemtap-4.7.tar.gz $ tar xvf systemtap-4.7.tar.gz $ cd systemtap-4.7 $ vim runtime/linux/runtime.h +14 #define STP_NO_VERREL_CHECK $ make $ sudo make install