Added header comment for needed packets on Debian/Ubuntu
[ana-net.git] / opt / optop.sh
blob36c7c0f3236aad23d9539364986c81ddc0f41a8b
1 #!/bin/sh
3 opcontrol --reset
4 opcontrol --shutdown
5 opcontrol --init
6 if [ $# -eq 0 ] ; then
7 opcontrol --setup --vmlinux=../../linux-2.6/vmlinux --separate=cpu
8 else
9 opcontrol --setup --vmlinux=../../linux-2.6/vmlinux --separate=cpu --event=$@
11 opcontrol --status
13 opcontrol --start
14 while true; do
15 sleep 1
16 opcontrol --dump
17 clear
18 opreport -l -p ./ 2> /dev/zero | head -40
19 opcontrol --reset
20 done