How to hook up my own trace function?

Hello everyone, I want to modify the built-in trace feature. I’d like to have a more accurate time-stamp using a free running hardware counter. In order to do so, I found no other way but to override the vWriteTraceToBuffer definition. The API doc says: "The ports could easily be modified to provide a higher resolution time stamp by making use of a free running timer." Is there a way to do so, without having to modify the task.c file? Or is there another way? - Lukasz

How to hook up my own trace function?

You have to edit the file.