Trace and List Facility

nobody wrote on Thursday, October 27, 2005:

Can the trace and list facility list to the same buffer or do
they need to have separate buffers?

Thanks.

nobody wrote on Thursday, October 27, 2005:

They can be the same buffer (but obviously not used at the same time :-).

nobody wrote on Friday, October 28, 2005:

Can you use vTaskList() without running vTaskStartTrace()?
(as long as everything else is enabled?)

nobody wrote on Friday, October 28, 2005:

The WEB server demos do exactly this to generate a page that shows the current tasks and their states - so the answer is yes.

There is a caveat in that listing the tasks leaves interrupts disabled for longer than would normally be advisable so this is good for getting debug information and demonstration but is not good for production systems.  I think this is to capture a snapshot of the state the state cannot change while the sprintf’s are being called so interrupts have to be disabled while the whole table is generated.