All of lore.kernel.org
 help / color / mirror / Atom feed
* Remote streaming of traces recorded during system bootup
       [not found] <CY4PR1001MB2246FCAF7E68E10D57E07176D0630@CY4PR1001MB2246.namprd10.prod.outlook.com>
@ 2018-06-02 16:03 ` Ramith Shetty
       [not found] ` <CY4PR1001MB2246A06EFCA14C8207AD479BD0610@CY4PR1001MB2246.namprd10.prod.outlook.com>
  1 sibling, 0 replies; 2+ messages in thread
From: Ramith Shetty @ 2018-06-02 16:03 UTC (permalink / raw)
  To: lttng-dev


[-- Attachment #1.1: Type: text/plain, Size: 505 bytes --]

Hi,

We are intending to capture the traces from the bootup time on an embedded linux system.

The traces are generated at the bootup time, and there is no network connectivity at this point of time.

Later when the network connectivity is up , we are in need of a mechanism to stream this traces to a remote session. [The traces streamed is expected to even have the traces which are captured during the bootup]

The bootup traces are captured using a local mode session

Regards,
Ramith



[-- Attachment #1.2: Type: text/html, Size: 3563 bytes --]

[-- Attachment #2: Type: text/plain, Size: 156 bytes --]

_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Remote streaming of traces recorded during system bootup
       [not found] ` <CY4PR1001MB2246A06EFCA14C8207AD479BD0610@CY4PR1001MB2246.namprd10.prod.outlook.com>
@ 2018-06-03 22:58   ` Jonathan Rajotte-Julien
  0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Rajotte-Julien @ 2018-06-03 22:58 UTC (permalink / raw)
  To: Ramith Shetty; +Cc: lttng-dev

Hi Ramith,

On Sat, Jun 02, 2018 at 04:03:38PM +0000, Ramith Shetty wrote:
> Hi,
> 
> We are intending to capture the traces from the bootup time on an embedded linux system.

Interesting!

> 
> The traces are generated at the bootup time, and there is no network connectivity at this point of time.
> 
> Later when the network connectivity is up , we are in need of a mechanism to stream this traces to a remote session. [The traces streamed is expected to even have the traces which are captured during the bootup]

Not sure what you mean by "remote session"?

Do you plan on using the lttng "live mode" or only network streaming of traces
to lttng-relayd?

If streaming only, A session in network-backed snapshot mode could achieve something close to what you
need. This would require that the buffers for the session be big enough to
keep events until network is live. As soon as the network go live you take a
snapshot. The snapshot will be streamed over the network to a lttng-relayd.

Once the network is setup, you can setup a new session in network streaming
mode. When performing analysis on the trace you will need to correlate the
snapshot from the first session to the trace data from the second session.
Babeltrace should handle this relatively easily.

You could also skip the creation of the second session and do time based
snapshots of the first session once the network is up. When reading from
Babeltrace you will need to point it to a collection of snapshots.

Using a session in snapshot mode works since no network communication is needed
with the relayd until a snapshot is actually taken.

For the streaming mode and live mode, there is no "delayed" mode for network
communication. LTTng expects to be able to send data over the network directly.
Communications also occurs at channel initialization when in streaming or live
mode preventing their use when network is not up.

Hope this will give you some ideas.

Others might want to chip in.

Cheers

> 
> The bootup traces are captured using a local mode session
> 
> Regards,
> Ramith
> 
> 

> _______________________________________________
> lttng-dev mailing list
> lttng-dev@lists.lttng.org
> https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev


-- 
Jonathan Rajotte-Julien
EfficiOS
_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-06-03 22:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <CY4PR1001MB2246FCAF7E68E10D57E07176D0630@CY4PR1001MB2246.namprd10.prod.outlook.com>
2018-06-02 16:03 ` Remote streaming of traces recorded during system bootup Ramith Shetty
     [not found] ` <CY4PR1001MB2246A06EFCA14C8207AD479BD0610@CY4PR1001MB2246.namprd10.prod.outlook.com>
2018-06-03 22:58   ` Jonathan Rajotte-Julien

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.