Quantcast
Channel: Windows Performance Toolkit (WPT) v5 forum
Viewing all articles
Browse latest Browse all 275

Migration from Debug Print Statements (DbgPrint / DEBUGP) to RUN_WPP -func:

$
0
0

Hi,

In the book "Developing Drivers with the Windows Driver Framework" by Penny Orwick and Guy Smith (Microsoft Press) at chapter 11 (Driver Tracing and Diagnosability) there is a paragraph which states an "Easy Migration from Debug Print Statements" [to WPP software tracing] by instructing WPP to convert the old DbgPrint calls.

But i found no further notice on how to reach this goal.

I tried the obvious:

RUN_WPP= $(SOURCES) -km -func:DbgPrint(MSG)

but this only gets me a lot of compiler errors like "1>my_driver.c(61): error C4013: 'WPP_CALL_my_driver_c61' undefined; assuming extern returning int" (after a clean build)

So how exactly can i use this parameter (if it is to be achieved by this parameter) to get my old DbgPrints in a WPP fashion?

For your convenience i added the whole pragraph here: (on page 413) somewhere after "Advantages of WPP Software Tracing"

"Easy Migration from Debug Print Statements      If a driver currently uses debug print statements for tracing, WPP can be instructed to convert your existing trace instrumentation to a more efficient form without requiring you to rewrite the code."


Viewing all articles
Browse latest Browse all 275

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>