]>
Commit | Line | Data |
---|---|---|
46cfaf7b | 1 | #! /bin/sh |
d68088d0 | 2 | |
46cfaf7b FCE |
3 | run(){ |
4 | echo "== $1 ==" | |
5 | sh -c "$@" | |
6 | } | |
d68088d0 | 7 | |
46cfaf7b FCE |
8 | run "stap -V" |
9 | run "which stap" | |
10 | run "locate --regex '/stap(run)?$' | xargs ls -ald" | |
11 | run "printenv | egrep '^PATH=|^LD_LIBRARY_PATH=|^SYSTEMTAP_.*='" | |
12 | run "gcc -v" | |
13 | run "uname -a" | |
14 | run "dmesg | egrep 'stap|systemtap' | tail -n 10" | |
15 | run "cat /proc/cpuinfo | egrep 'processor|vendor_id|model name'" | |
16 | if [ -x /usr/bin/dpkg ]; then | |
17 | run "dpkg --list | egrep 'systemtap|elfutils|kernel|gcc' | awk '{print \$2,\$3}' | sort" | |
18 | else | |
19 | run "rpm -qa --qf '%{name}-%{version} %{release}.%{arch}\\n' | egrep 'systemtap|elfutils|kernel|gcc' | sort" | |
20 | fi | |
21 | run "egrep 'PROBE|TRACE|MARKER|_DEBUG_' /lib/modules/`uname -r`/build/.config | grep -v not.set | sort | fmt -w 80" |