This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
RFC: stapclean shell script
- From: "Frank Ch. Eigler" <fche at redhat dot com>
- To: systemtap at sources dot redhat dot com
- Date: Sat, 12 Jan 2008 22:25:55 -0500
- Subject: RFC: stapclean shell script
Hi -
A problem I was debugging today sometimes left zombie stapio processes
running and associated stap_* modules in the kernel. The following
little script helped clean up the machine between debugging runs. Do
you think it'd be worth distributing in the source tree?
- FChE
#! /bin/sh
PATH=/usr/bin:/usr/sbin:/sbin:/bin
killall -v -q stapio
killall -v -q staprun
sleep 2
killall -q -9 stapio
killall -q -9 staprun
lsmod | grep "^stap_" | awk '{print $1}' | xargs -r rmmod -v