summaryrefslogtreecommitdiffstats
path: root/stap-report
diff options
context:
space:
mode:
authorddomingo <ddomingo@redhat.com>2008-10-20 16:30:48 +1000
committerddomingo <ddomingo@redhat.com>2008-10-20 16:30:48 +1000
commitaacc3f504dc5e52a8c5a30a469e2c8b9bb9986bd (patch)
tree4c4eafedafff8d56532a22af46c266157f171164 /stap-report
parent3cb837a1af0ccad4ba335ee6b21e906a3021d198 (diff)
parentb0ff684d5ac5b0ade97a4e508a92a7f743068221 (diff)
downloadsystemtap-steved-aacc3f504dc5e52a8c5a30a469e2c8b9bb9986bd.tar.gz
systemtap-steved-aacc3f504dc5e52a8c5a30a469e2c8b9bb9986bd.tar.xz
systemtap-steved-aacc3f504dc5e52a8c5a30a469e2c8b9bb9986bd.zip
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap
Diffstat (limited to 'stap-report')
-rwxr-xr-xstap-report10
1 files changed, 2 insertions, 8 deletions
diff --git a/stap-report b/stap-report
index c2a5d070..e6503b31 100755
--- a/stap-report
+++ b/stap-report
@@ -4,8 +4,7 @@ import sys
import time
import subprocess
-ofname = "/tmp/stapreport-" + time.strftime("%Y%m%d%H%M%S") + ".txt"
-ofile = open(ofname, "w")
+ofile = sys.stdout
def run(command):
ofile.write("== " + command + " ==\n")
@@ -13,20 +12,15 @@ def run(command):
p = subprocess.Popen(command, shell=True, stdout=ofile, stderr=ofile)
p.wait()
ofile.write("\n")
- sys.stdout.write(".")
- sys.stdout.flush()
if __name__ == "__main__":
- sys.stdout.write("Collecting data")
- sys.stdout.flush()
run("stap -V")
run("which stap")
run("ls -ald `locate -r '/stap$'` `locate -r '/staprun$'`")
run("printenv | egrep '^PATH=|^LD_LIBRARY_PATH=|^SYSTEMTAP_.*='")
run("gcc -v")
run("uname -a")
- run("dmesg | grep 'gcc'")
run("dmesg | egrep 'stap|systemtap' | tail -n 10")
run("cat /proc/cpuinfo | egrep 'processor|vendor_id|model name'")
run(r"rpm -qa --qf %{name}-%{version}-%{release}.%{arch}\\n | egrep 'systemtap|elfutils|kernel|gcc' | sort")
- print "\nPlease include the following file in your bug report:", ofname
+ run(r"egrep 'PROBE|TRACE|MARKER' /lib/modules/`uname -r`/build/.config | grep -v not.set | sort | fmt -w 80")