WPP tracing

Discussion in 'Windows Vista Drivers' started by needhelp, Dec 22, 2005.

  1. needhelp

    needhelp Guest

    I am writing a file system filter driver. This is one binary driver build in
    windows 2000 enviorment and supports XP as well as 2003. This driver does lot
    of initialization activity in DriverEntry routine including creating device
    object. I was trying to use WPP tracing method, I refered the following
    article at OSR website http://www.osronline.com/article.cfm?article=376 . I
    could make tracing work but I would never get tracing messages in driver
    entry Is this a limit for windows 2000 driver.

    needhelp, Dec 22, 2005
    1. Advertisements

  2. yes, this is a limitation on win2k. the actual WPP listener which logs the
    traces does not start at boot.

    Doron Holan [MS], Dec 22, 2005
    1. Advertisements

  3. I don't think that's the issue. On Win2K, you have to create a device object
    and use that to register with WPP as a provider. After you register
    yourself, it takes a little while for the WPP-ETW system to query your
    device (in a worker thread) and finish the registration. Until that happens,
    your trace messages wouldn't be logged.

    Not that I recommend but if you put a little delay after the call to
    WPP_INIT_TRACING in your DriverEntry, you will see your trace messages on
    Eliyas Yakub [MSFT], Dec 22, 2005
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.