采点 kvm perf 数据

1 #!/bin/bash
2 echo 1 > /sys/kernel/debug/tracing/events/kvm/enable
3 ./exit.sh 20 $$ &
4 echo $$
5 cat /sys/kernel/debug/tracing/trace_pipe > trace.txt
1 #!/bin/bash
2 echo $1
3 sleep $1
4 echo 0 > /sys/kernel/debug/tracing/events/kvm/enable
5 kill -SIGINT $(pidof cat)
6 echo exit ok
7 echo $2

posted @ 2021-07-07 16:19  maojun1998  阅读(95)  评论(0编辑  收藏  举报