How can I get the value of "%d" variables in dynamic_debug info of Linux kernel? -
i enabled config_dynamic_debug=y in linux kernel customized myself, , following dynamic_debug documentation shipped kernel source code, run following command enable output of debug information in bluetooth subsystem:
echo -n 'file net/bluetooth/bnep/core.c line 722 +p' > /sys/kernel/debug/dynamic_debug/control which means debug info in line 772 of file net/bluetooth/bnep/core.c logged.
after bnep.ko module loaded, checked output of /sys/kernel/debug/dynamic_debug/control, debug information there.
but of them like:
> net/bluetooth/bnep/core.c:422 [bnep]bnep_tx_frame - "skb %p dev %p type %d\012" i want know value represented %p or %d, don't know how it.
thank much!
you have enabled debug statement, reading /sys/kernel/debug/dynamic_debug/control tells you.
from on, debug message sent normal kernel log, can view dmesg and/or syslog daemon (which log /var/log/messages or /var/log/everything/, or similar path).
Comments
Post a Comment