[lttng-dev] lttng snapshots and running traces

Julien Desfossez julien.desfossez at polymtl.ca
Thu Sep 26 15:03:33 EDT 2013



On 13-09-26 02:20 PM, Thibault, Daniel wrote:
> Date: Thu, 26 Sep 2013 12:16:29 -0400
> From: Julien Desfossez <jdesfossez at efficios.com>
> 
>> When the consumer needs to read a subbuffer, it performs a get_subbuf operation. If this operation succeeds, 
>> the consumer has exclusive access to this subbuffer and so it can read it safely. If it fails, it means the tracer is 
>> currently using it and in the case of snapshots, the consumer will just skip to the next one (up to the end 
>> position it defined at the beginning of the snapshot).
>>
>> Julien
> 
>    Presumably the tracers also use get_subbuf, so what happens if they are refused access because the consumer 
> got the sub-buffer first?  Do they wait for the consumer to relinquish the sub-buffer, or do they skip ahead?
They skip ahead.

Julien

> 
> Daniel U. Thibault
> Protection des systèmes et contremesures (PSC) | Systems Protection & Countermeasures (SPC)
> Cyber sécurité pour les missions essentielles (CME) | Mission Critical Cyber Security (MCCS)
> R & D pour la défense Canada - Valcartier (RDDC Valcartier) | Defence R&D Canada - Valcartier (DRDC Valcartier)
> 2459 route de la Bravoure
> Québec QC  G3J 1X5
> CANADA
> Vox : (418) 844-4000 x4245
> Fax : (418) 844-4538
> NAC : 918V QSDJ <http://www.travelgis.com/map.asp?addr=918V%20QSDJ>
> Gouvernement du Canada | Government of Canada
> <http://www.valcartier.drdc-rddc.gc.ca/>
> 
> _______________________________________________
> lttng-dev mailing list
> lttng-dev at lists.lttng.org
> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
> 



More information about the lttng-dev mailing list