Starting and stopping trace point logging

You can use the log command to start and stop the logging of all cached tuples to a file.

The first parameter to the log command is the probe point ID of the previously defined trace point. The second parameter to the log command is either start or stop.

(sdb) log 1 start
Started logging Tracepoint CountOneLine 1 0 to file ./data/
StandaloneApp_CountOneLine.o.0.log
(sdb)

The tuples and punctuation for the CountOneLine trace point are now being logged. The command responds by indicating the name of the file to be used for logging. All tuples and punctuation added to the cache for the trace point is also written to the file in comma-separated value format. The first two lines in the output file contain comments with the tuple field names and field types.

Here is an example of the log file format:
# lines,wcs
# int32,tuple<int32 words,int32 chars>
1,{words=2,chars=68}
1,{words=1,chars=68}
1,{words=8,chars=68}
1,{words=8,chars=68}
1,{words=2,chars=68}
... # output truncated for brevity