This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]