Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung |
programming:start [2022/12/04 17:26] – [DTC] frank | programming:start [2023/10/25 14:18] (aktuell) – [Linux] frank |
---|
| |
=== debugging === | === debugging === |
| |
| == Using dynamic debug == |
| |
| Add options: |
| |
| CONFIG_DYNAMIC_DEBUG=y |
| CONFIG_DEBUG_FS=y |
| |
| And enable it from userspace (here all for network drivers): |
| |
| echo "file drivers/net/* +p"> /sys/kernel/debug/dynamic_debug/control |
| |
| == Manual by adding new messages == |
| |
printk(KERN_ALERT "DEBUG: Passed %s %d val:0x%0x\n",__FUNCTION__,__LINE__,(unsigned int)val); | printk(KERN_ALERT "DEBUG: Passed %s %d val:0x%0x\n",__FUNCTION__,__LINE__,(unsigned int)val); |
* [[https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/refs/|stable]] [[https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/log/|torvalds]] [[https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/log/|linux-next]] | * [[https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/refs/|stable]] [[https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/log/|torvalds]] [[https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/log/|linux-next]] |
* [[https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/log/|net]] [[https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git/log/|net-next]] | * [[https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/log/|net]] [[https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git/log/|net-next]] |
* [[https://git.kernel.org/pub/scm/linux/kernel/git/chunkuang.hu/linux.git/log/?h=mediatek-drm-next|drm mtk next]][[https://cgit.freedesktop.org/drm/drm/log/|drm]] [[https://git.kernel.org/pub/scm/linux/kernel/git/matthias.bgg/linux.git/log/?h=for-next|mtk dts next]] | * [[https://git.kernel.org/pub/scm/linux/kernel/git/chunkuang.hu/linux.git/log/?h=mediatek-drm-next|drm mtk next]][[https://cgit.freedesktop.org/drm/drm/log/|drm]] |
| * [[https://git.kernel.org/pub/scm/linux/kernel/git/mediatek/linux.git|neues mediatek repo]] ([[https://git.kernel.org/pub/scm/linux/kernel/git/matthias.bgg/linux.git/log/?h=for-next|altes mtk dts next]]) |
* [[https://git.kernel.org/pub/scm/linux/kernel/git/mmind/linux-rockchip.git|Rockchip SoC/DTS]] | * [[https://git.kernel.org/pub/scm/linux/kernel/git/mmind/linux-rockchip.git|Rockchip SoC/DTS]] |
* [[https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git|dt-bindings]] | * [[https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git|dt-bindings]] |