repo.or.cz
/
ana-net.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Added header comment for needed packets on Debian/Ubuntu
[ana-net.git]
/
opt
/
optop.sh
blob
36c7c0f3236aad23d9539364986c81ddc0f41a8b
1
#!/bin/sh
2
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
=
$@
10
fi
11
opcontrol
--status
12
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
21