Debugging..
Jul. 18th, 2018 11:12 amDebugging linux kernel is fun. There are special tools, and they help a lot. For example, when I use /sys/kernel/debug/tracing, I can see all the traces, but the bug never manifests when tracing is on.
Of course, there is a usermode part. If I run it under gdb, the bug is not reproducible either :)
So printf and printk are both my best friends..
Of course, there is a usermode part. If I run it under gdb, the bug is not reproducible either :)
So printf and printk are both my best friends..
no subject
Date: 2018-07-18 03:12 pm (UTC)А когда-то было дело, между real mode и protected mode перебрасывал данные, так единственный способ что-то показать из real mode был - в память монитора заносить какие-то тексты, напрямую - тогда видно. А так хз, что там творится.
no subject
Date: 2018-07-18 03:27 pm (UTC)Это мы, низкоуровневые программиста, байтики гоняем, железо не всегда предсказуемо, ну и вот.
Но в итоге у всего всегда есть объяснение, даже у чертовщины. Бывало, вплоть до electrical interference между контроллером памяти на cpu и DRAM чипом.
no subject
Date: 2018-07-18 05:54 pm (UTC)