Linux Progamming

Linux Kernel Debug

2019-01-31  本文已影响0人  帆子_8c3a

Tracepoint

refer
refer

cat /sys/kernel/debug/tracing/trace
#所有可用的
cat /sys/kernel/debug/tracing/available_events
#设置显示的event
echo sched_wakeup >> /sys/kernel/debug/tracing/set_event
echo '!sched_wakeup' >> /sys/kernel/debug/tracing/set_event

echo 1 > /sys/kernel/debug/tracing/events/enable
echo 1 > /sys/kernel/debug/tracing/events/nfs/enable
echo 1 > /sys/kernel/debug/tracing/events/nfs/nfs_invalidate_mapping_enter/enable
#所有操作都会作用于/sys/kernel/debug/tracing/set_event

NFS

echo 65535 > /proc/sys/sunrpc/nfs_debug
echo 65535 > /proc/sys/sunrpc/rpc_debug
上一篇下一篇

猜你喜欢

热点阅读