Created
March 1, 2018 00:53
-
-
Save ricardo-martincoski/7c3319ce4b3ed52172d0130fe0dc09f1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ mount -t debugfs none /sys/kernel/debug | |
$ echo h > /proc/sysrq-trigger | |
$ echo 8 > /proc/sysrq-trigger | |
$ echo 'file ping.c line 994 +p' >/sys/kernel/debug/dynamic_debug/control | |
$ dmesg -c | |
$ ping -c 1 localhost | |
no socket, dropping | |
$ echo 'file ping.c +p' >/sys/kernel/debug/dynamic_debug/control | |
$ dmesg -c | |
$ ping -c 1 localhost | |
ping_rcv(skb=c7ba5540,id=8e00,seq=0000) | |
hash(36352) = 50 | |
try to find: num = 36352, daddr = 127.0.0.1, dif = 1 | |
no socket, dropping | |
$ echo 'file ping.c +pflmt' >/sys/kernel/debug/dynamic_debug/control | |
$ dmesg -c | |
$ ping -c 1 localhost | |
ping:ping_rcv:979: ping_rcv(skb=c7ba5600,id=a000,seq=0000) | |
ping:ping_hashfn:71: hash(40960) = 50 | |
ping:ping_lookup:184: try to find: num = 40960, daddr = 127.0.0.1, dif = 1 | |
ping:ping_rcv:994: no socket, dropping | |
cmdline: | |
pc87360.dyndbg="func pc87360_init_device +p; func pc87360_find +p" | |
echo '-p' >/sys/kernel/debug/dynamic_debug/control | |
echo 'file serial_core.c +p' >/sys/kernel/debug/dynamic_debug/control |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment