HI,
I have used the mechanism to calculate the Thread/TSK load, given in the URL http://processors.wiki.ti.com/index.php/Getting_CPU_Load_on_a_per_task_basis.
The sample code is running fine, where I have used one of the function hooked in HOOK module (myHOOK) and that is to be called during context switching of Tasks.
Now, since our system is real time, I need to toggle this profiling at runtime. I have seen the BIOS API doc, which specify that there is one Boolean Flag "callSwitchFxn"
which is used to toggle the function call during context switching.
But when I used C code line "extern HOOK_Obj myHook" in our code, it simply shows "Identifier HOOK_Obj is not found". Is the HOOK_Obj only accessible at compile time? How can I export the variable at run time. I have already included hook,h
Please help.
Thanks
Akash Bhatnagar