Closed brettviren closed 4 years ago
Hi Brett, There is a small section on how to use TRACE in the Step-by-Step instructions for starting out with the appfwk. Please use this link and then scroll down to the end of that section (or search for TRACE_FILE in that Wiki page).
I think that your suggestion of a dedicated Wiki page on how to get started with TRACE is a good idea.
In the meantime, here are some simple instructions. These assume that you want all TRACE messages to go to the console and that you aren't interested (at this time) in making use of the TRACE memory buffer for storing and reading back the TRACE messages.
export TRACE_NAME=<path to file which will be used for memory-mapped messages
(e.g. export TRACE_NAME=${PWD}/log/${USER}_dunedaq.trace
tlvlSg 0xffffffff
(this turns on console messages)
tlvls
tlvls
again to see the different TRACE_NAMES that were assiccated with the messagesThanks, @bieryAtFnal I used GH's search but didn't find this info. Looks like the wiki search is just on titles. I do find it now if I go through the full search.
Setting TRACE_NAME
and running daq_application
gives me a small file which does seem to have some binary stuff. So that part seems to be working.
The tlv*
programs seem not to be available from the Spack build of the appfwk stack but that's not a problem for here.
I'll push forward, thanks!
I'm able to get some action with
TRACE_FILE=junk.trace trace_cntl lvlmskSg 0xffffffff
TRACE_FILE=junk.trace ./build/apps/daq_application --commandFacility file://schema/fdpc-job.json
TRACE_FILE=junk.trace trace_cntl tids
What do I have to do to fill up my screen with a nice mess of trace messages?
Maybe something can be added to the wiki?