|
Martin Duvanel
|
TraceEvent API - dynamic filter question
|
|
Martin Duvanel
12/01/2011 12:16 PM
post90382
|
TraceEvent API - dynamic filter question
Hello,
I have been trying to use the dynamic filter to be able to measure with microsecond precision how much time is used by
several threads in my system.
I am able to make it work and I have pretty accurate results with limited impact on my system (1-2% of CPU activity).
My only problem is that if for any reason my program exits in an abnormal way and does not call the code to remove the
dynamic filter callback, then the kernel crashes and I can just make a power cycle on my board...
I understand why this happens (kernel attempts to call a callback that does not exist anymore), but I wonder if there is
any way to avoid that crash in case TraceEvent(_NTO_TRACE_DELEVENTHANDLER) is not called properly?
Thank you,
Martin
|
|
|
|
|