useful systemtap script.
Perl Shell
Switch branches/tags
Nothing to show
Failed to load latest commit information.
doc add man pages for systemtap. Jan 10, 2013 Add a Bitdeli badge to README Jul 20, 2015
cswmon.stp cswmon.stp - systemtap script for moniter process swap. Dec 24, 2012
dropwatch.stp dropwatch.stp - fails on kernels without kfree_skb tracepoint Dec 27, 2012 add install kernel debuginfo under fedora. Jan 3, 2014
get-dbgsym get-dbgsym - install systemtap kernel debuginfo under unbuntu. Jan 3, 2014
inodewatch.stp inodewatch.stp: script for watch process w/r the file(dev major/minor… Feb 26, 2014
install-stp add ubuntu install script for systemtap. Nov 8, 2016
ioblktime.stp ioblktime.stp - computers the average waiting time for Dec 31, 2012
kmalloc-top Show Paths to Kernel Malloc Invocations. Jan 29, 2014
leaks.stp leaks.stp - detect memory leak. Jan 5, 2014
nettop.stp add ansi_clear_screen for nettop.stp Mar 20, 2013
ngxconn.stp add nginx connections stp script. Nov 8, 2016
probe-alias.stp probe-alias.stp - probe point aliases example. Jan 9, 2013
pstree.stp Create pstree.stp Apr 10, 2014 add code for script turn on debug or not. Nov 30, 2013 add code for script turn on debug or not. Nov 30, 2013
syscalls.stp syscalls.stp - system call monitor. Dec 26, 2012 perl script for systemtap setup in fedora system. Mar 13, 2013
tcp-accept-queue tcp-accept-queue a useful script from agentzh. Jul 29, 2014
tcp-recv-queue tcp-recv-queue a Systemtap script for display tcp recv queue from age… Jul 29, 2014
tcp_conn.stp A stap script for monitor the tcp connection. Mar 12, 2013
tcpdump.stp tcpdump.stp - monitoring tcp packets received by system. Dec 31, 2012
topsys.stp topsys.stp - display top systemcalls in 5s interval. Jan 4, 2014
udpdump.stp udpdump.stp - display udp recv ontime. Jan 4, 2014
viewcache.stp add a script for display buffer/cache, some problem need to resolve. Mar 7, 2013


useful systemtap script. just for study.

setup for ubuntu:

1.install systemtap

$sudo apt-get install systemtap
$sudo apt-get install systemtap-runtime

2.install kernel-debug-info

use source-list:
(1)Install the Linux kernel debug image
Add debug source to the sources list of Ubuntu

Create an /etc/apt/sources.list.d/ddebs.list by running the following line at
a terminal:
echo "deb $(lsb_release -cs) main restricted universe multiverse" | \
sudo tee -a /etc/apt/sources.list.d/ddebs.list

Stable releases (not alphas and betas) require three more lines adding to the
same file, which is done by the following terminal command:
echo "deb $(lsb_release -cs)-updates main restricted universe multiverse
deb $(lsb_release -cs)-security main restricted universe multiverse
deb $(lsb_release -cs)-proposed main restricted universe multiverse" | \
sudo tee -a /etc/apt/sources.list.d/ddebs.list

Import the debug symbol archive signing key:
sudo apt-key adv --keyserver --recv-keys 428D7C01

Then run:
sudo apt-get update

Get Linux kernel debug image
sudo apt-get install linux-image-$(uname -r)-dbgsym

(2)General ddeb repository configuration
# cat > /etc/apt/sources.list.d/ddebs.list << EOF
deb precise main restricted universe multiverse

# apt-key adv --keyserver --recv-keys ECDCAD72428D7C01
# apt-get update

download url:
ubuntu kernel-debug-info:

setup for fedora:

yum install systemtap kernel-devel debuginfo-install kernel

Bitdeli Badge