Trying to get an embedded C function to use file I/O

Frank Ch. Eigler fche@redhat.com
Mon Aug 19 22:02:00 GMT 2013


jjohnstn wrote:

> [...]  The LTTng kernel side of the trace ends up with multiple CTF
> format files: a metadata file which describes the data format and a
> number of binary files (essentially a permutation of CPUs and
> channels (usually just channel 0). [...]

Is lttng restricted to having only a single 'channel' or dataset per
file?  If not, why not 

(a) have one monster CTF file that includes cross-cpu cross-channel
    cross-everything data?
or
(b) use stap -b (bulk) mode to produce per-cpu files, each of which
    could be converted to CTF in userspace (perhaps requiring nothing
    but removal of the stap timestamping/framing metadata in those
    bulk-mode files; see stap-merge.c).

- FChE



More information about the Systemtap mailing list