DUNE-DAQ / appfwk

DUNE DAQ Application Framework Repository (implementations that use interfaces in app-framework-base)
5 stars 5 forks source link

How do I use TRACE #110

Closed brettviren closed 4 years ago

brettviren commented 4 years ago

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?

bieryAtFnal commented 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.

brettviren commented 4 years ago

Thanks, @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!

brettviren commented 4 years ago

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