[lttng-dev] Odd behaviour of lttng 2.0 kernel event listing

David Goulet dgoulet at efficios.com
Tue Jan 24 10:03:13 EST 2012


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Daniel,

Yes, in any case, we block so this flag is our best option for now to handle all
the data.

Good catch by the way! Thanks for the help and report! I'll put in the patch for
the release candidate 1.

Thanks!
David

On 12-01-24 09:37 AM, Thibault, Daniel wrote:
> -----Message d'origine-----
> De : David Goulet [mailto:david.goulet at polymtl.ca] 
> Envoyé : 23 janvier 2012 17:43
> 
>> That's very interesting.
>>
>> Quick fix, let see if it works:
>>
>> diff --git a/src/common/sessiond-comm/sessiond-comm.c b/src/common/sessiond-comm/sessiond-comm.c
>> index 03e8931..106041f 100644
>> - --- a/src/common/sessiond-comm/sessiond-comm.c
>> +++ b/src/common/sessiond-comm/sessiond-comm.c
>> @@ -257,7 +257,7 @@ ssize_t lttcomm_recv_unix_sock(int sock, void *buf, size_t len)
>>        msg.msg_iovlen = 1;
>>
>> --     ret = recvmsg(sock, &msg, 0);
>> +      ret = recvmsg(sock, &msg, MSG_WAITALL);
>>        if (ret < 0) {
> 
>    Yup, that fixed it.  The bytes expected and received now match.  I presume it is OK to make sessiond-comm.lttcomm_recv_unix_sock() blocking in this way?
> 
> Daniel U. Thibault
> R & D pour la défense Canada - Valcartier (RDDC Valcartier) / Defence R&D Canada - Valcartier (DRDC Valcartier)
> Système de systèmes (SdS) / System of Systems (SoS)
> Solutions informatiques et expérimentations (SIE) / Computing Solutions and Experimentations (CSE)
> 2459 Boul. Pie XI Nord
> Québec, QC  G3J 1X5
> CANADA
> Vox : (418) 844-4000 x4245
> Fax : (418) 844-4538
> NAC: 918V QSDJ
> Gouvernement du Canada / Government of Canada
> <http://www.valcartier.drdc-rddc.gc.ca/>
> 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iQEcBAEBAgAGBQJPHsgxAAoJEELoaioR9I02fs8IAIfI8YXfiTeNAeB34ONUDB08
GFK8AcF95yfPNI6+OB1lRnD/7/WnUk2k5IkzYIRBej/k0PJ8P0KpE0vvgLypG//u
CzwG//GS0NkL6g16Ove1T2qrrLKiZv8sEfEYMRDKtup0slT0zDcN4GFgF98A5CiI
A30vwNtE5H9bxQtZRUVgzhmWs2E404cgFzsGFdqSdv3XM+FX6ModiULzhM99GF9V
Qv6YzXbzwspRMLpRYC2Fem42sk3T3/80GzBXlStHzCf5UaLRrZK2m3CRm5xIRjwY
aauIQMi+89HR+g0wrSUppPSEGaBzmjB3iAH/dJqOWMDdW0b9CYrnvStx04ep48I=
=3/h+
-----END PGP SIGNATURE-----



More information about the lttng-dev mailing list