Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Debug logging on a driver durring bootup

Debug logging on a driver durring bootup

Scheduled Pinned Locked Moved C / C++ / MFC
c++comdebuggingquestion
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Axter
    wrote on last edited by
    #1

    Is there any way to capture the debug logging on a driver during bootup? I know it can be done if you’re connected via serial port to another machine, but I’m looking for a method that is standalone. The DebugView program from sysinternals only seems to work to capture bootup logging if you can successfully logon on open DebugView. If the machine crashes before then, it seems you loose the logging. I'm trying to debug a driver that gives me the blue screen of death as soon as I logon. Top ten member of C++ Expert Exchange. http://www.experts-exchange.com/Cplusplus

    _ 1 Reply Last reply
    0
    • A Axter

      Is there any way to capture the debug logging on a driver during bootup? I know it can be done if you’re connected via serial port to another machine, but I’m looking for a method that is standalone. The DebugView program from sysinternals only seems to work to capture bootup logging if you can successfully logon on open DebugView. If the machine crashes before then, it seems you loose the logging. I'm trying to debug a driver that gives me the blue screen of death as soon as I logon. Top ten member of C++ Expert Exchange. http://www.experts-exchange.com/Cplusplus

      _ Offline
      _ Offline
      __yb
      wrote on last edited by
      #2

      I could think of few ways. But first I'd try to communicate with something existing: - DbgView - they have some new mode - something to do with bootup logging. - The event log service - softice Now, if u crash during logon, the machine is already up with all the services and stuff, so u can use lots of ways, it just depends on your kernel mode arsenal. Anyway, all the ways that don't include DbgView/event log/softice involves a bit of work in writing the logger service.. U could comunicate with your logger using sockets/pipes, like OutputDebugString - with shared mem and event, or, u could just log it to a file yourself.

      T 1 Reply Last reply
      0
      • _ __yb

        I could think of few ways. But first I'd try to communicate with something existing: - DbgView - they have some new mode - something to do with bootup logging. - The event log service - softice Now, if u crash during logon, the machine is already up with all the services and stuff, so u can use lots of ways, it just depends on your kernel mode arsenal. Anyway, all the ways that don't include DbgView/event log/softice involves a bit of work in writing the logger service.. U could comunicate with your logger using sockets/pipes, like OutputDebugString - with shared mem and event, or, u could just log it to a file yourself.

        T Offline
        T Offline
        Toby Opferman
        wrote on last edited by
        #3

        Yes, depends on what services and crap is up such as you can't log to disk if the disk driver isn't loaded yet! However that's one place to go. You could also attempt to allocate a large chunk of memory and log to it and wait for services come up before dumping it to disk. You could also attempt to take over the screen yourself and dump your stuff to the screen. 8bc7c0ec02c0e404c0cc0680f7018827ebee

        _ 1 Reply Last reply
        0
        • T Toby Opferman

          Yes, depends on what services and crap is up such as you can't log to disk if the disk driver isn't loaded yet! However that's one place to go. You could also attempt to allocate a large chunk of memory and log to it and wait for services come up before dumping it to disk. You could also attempt to take over the screen yourself and dump your stuff to the screen. 8bc7c0ec02c0e404c0cc0680f7018827ebee

          _ Offline
          _ Offline
          __yb
          wrote on last edited by
          #4

          the disk driver must be up, or else, wher did *this* driver load from???

          T 1 Reply Last reply
          0
          • _ __yb

            the disk driver must be up, or else, wher did *this* driver load from???

            T Offline
            T Offline
            Toby Opferman
            wrote on last edited by
            #5

            That was just an example that any service you use you should ensure it comes up before your driver. In anycase, there are OS services which do come up before the disk driver, most likely very few and I haven't looked at the order of loading in a while. In anycase, the disk driver itself is on disk so how is it loaded if the disk driver isn't loaded? :) Most likely your driver comes up afterwards but it's just the point to ensure your driver is properly dependent on services it uses. 8bc7c0ec02c0e404c0cc0680f7018827ebee

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups