Jump to ID:
QNX Operating System

Project Home




Project Info
Forum Topic - TraceEvent API - dynamic filter question: Page 1 of 9 (9 Items)
TraceEvent API - dynamic filter question  

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,