采点 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