Topic

Kernel Logging

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #13924
    cjw94022
    Participant

    Does the kernel module provide any logging? If not, would it be easy to add logging into the kernel if the source code license is purchased?

    #13925
    Vadim Smirnov
    Keymaster

    The driver shares a substantial amount of code across various Windows versions, so currently, the only available tracing method is through DbgPrint, which is enabled only in debug builds. If you’re specifically asking about ETW traces, this type of logging hasn’t been implemented yet. However, it can certainly be added for driver builds on Windows 7 and later versions if needed.

    #14494
    iricah21
    Participant

    I’d be interested in this too. Even basic kernel-level logging would make troubleshooting a lot easier, especially when trying to figure out what’s happening without constantly attaching a debugger. If the source code is available under a suitable license, adding logging with printk() or the kernel’s pr_debug() macros should be possible, depending on how the module is structured. The main thing would be making the logs configurable so they don’t flood the kernel log during normal use!

    • This reply was modified 1 month, 2 weeks ago by iricah21.
    #14604
    gilshehbaz9
    Participant

    I think having a built-in logging option would make debugging much easier, especially when trying to track down issues that don’t show up consistently. Even basic logging of important events, errors, and driver initialization steps could be quite useful. If the source code is available under the appropriate license, adding a configurable logging mechanism sounds like a reasonable approach. Ideally, it would also allow users to enable more detailed output when troubleshooting and keep it minimal during normal operation. That way, logging would be useful without creating unnecessary overhead.

    • This reply was modified 3 days, 21 hours ago by gilshehbaz9.
    • This reply was modified 3 days, 21 hours ago by gilshehbaz9.
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.