Re: stream based live time synchronized tracing?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



----- On Aug 15, 2022, at 9:28 AM, Alexander Aring aahringo@xxxxxxxxxx wrote:

> Hi,
> 
> I am curious if there is any way of getting time synchronized traces
> in a kind of stream based communication like pipes, sockets, etc. and
> get high level event representation as ?libtraceevent? provides. I
> would like to get all "merged" events from all machines provided by -A
> parameters. I think it isn't required to get them in order, but the
> timestamp should be synchronized.
> 
> I could probably build something like that with libtracecmd to have it
> directly implemented in an application, but I am curious if there
> exists any interest in having such a feature upstream? E.g. having
> additional parameters like '--tsync-interval'.
> 
> A use-case would be live capturing of time synchronized events or what
> I have in my mind to collect stats and doing kernel runtime
> optimizations.

You may want to have a look at babeltrace2 [1]. It allows merging multiple
traces together as they are read. Using the "lttng-live" source, you can read
traces as they are produced.

Thanks,

Mathieu

[1] https://babeltrace.org


-- 
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com



[Index of Archives]     [Linux USB Development]     [Linux USB Development]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux