Skip to contentSkip to conversation

Fix:Change the type of enabled in lttng_event to a signed int

Fix:lttng-tools-PATCH David Goulet 2 participants 2 messages Jun 11, 2012 2 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

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

Hey,

Merged upstream!

I'm still considering if I "can" put it in the stable-2.0 branch since this basically change the lttng.h ABI ...

Thanks!
David

Quoted 11 lines · Danny Serres

include/lttng/lttng.h | 2 +- 1 file changed, 1 insertion(+), 1
deletion(-)

include/lttng/lttng.h index renamed from include/lttng/lttng.h +0 -0

3b1be61..c80e282 100644 --- a/include/lttng/lttng.h +++ b/include/lttng/lttng.h @@ -214,7 +214,7 @@ struct lttng_event { enum lttng_loglevel_type loglevel_type; int loglevel;

include/lttng/lttng.h index renamed from include/lttng/lttng.h +0 -1
-	uint32_t enabled; +	int32_t enabled;	/* Does not apply: -1 */ pid_t pid;
Quoted 1 line

char padding[LTTNG_EVENT_PADDING1];

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iQEcBAEBAgAGBQJP1jiwAAoJEELoaioR9I02DmgIAI5JS3wQCwoBOIxKJz4GkA2+ QC7AEtCRKfG6AGPi3MN7EGav+hCTHAxfGK3CWr3CDi/Vo7uE3ofZ6wI3HgTdF1aH rEZPho96hhvsdu5p33HGg1BHuKhteYKa/TukzURBRPlu0+ruDol0rFsJn/SXblTe WczjFTRku+EAmF55V+gXOwhZ0wazZ47lcKIIg5EZMuSQo5PsRh/OD+w5j+15+2QP nHCFzEWEevnKmfmlhSfi0voyvNlxLzmc9ppv0AWUYX5mbppL6aCjHVu+RUphAAL4 R2D+C6ApRQOWnn+pFj3SALxas3sWuDHDCDCXSesjCWYT5wRoM6wY/ykgETC3Q+U= =sPTt
-----END PGP SIGNATURE-----

A message that is not in the archive (sent off-list or not yet received): [email protected]

#3 lore raw
Quoted 9 lines · * David Goulet ([email protected]) wrote:

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

Hey,

Merged upstream!

I'm still considering if I "can" put it in the stable-2.0 branch since this basically change the lttng.h ABI ...

The "enabled" field is almost never used, and having "-1" in a uint32_t is not really nice, and it is shown to the API user in the list tracepoints API. So I think it needs fixing in stable-2.0, and it should not cause any problem, just maybe fix some odd pretty-printing issue of "-1" some might have.

Thanks,

Mathieu

Quoted 33 lines

Thanks!
David

Quoted 11 lines · Danny Serres

include/lttng/lttng.h | 2 +- 1 file changed, 1 insertion(+), 1
deletion(-)

include/lttng/lttng.h index renamed from include/lttng/lttng.h +0 -0

3b1be61..c80e282 100644 --- a/include/lttng/lttng.h +++ b/include/lttng/lttng.h @@ -214,7 +214,7 @@ struct lttng_event { enum lttng_loglevel_type loglevel_type; int loglevel;

include/lttng/lttng.h index renamed from include/lttng/lttng.h +0 -1
-	uint32_t enabled; +	int32_t enabled;	/* Does not apply: -1 */ pid_t pid;
Quoted 1 line

char padding[LTTNG_EVENT_PADDING1];

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iQEcBAEBAgAGBQJP1jiwAAoJEELoaioR9I02DmgIAI5JS3wQCwoBOIxKJz4GkA2+ QC7AEtCRKfG6AGPi3MN7EGav+hCTHAxfGK3CWr3CDi/Vo7uE3ofZ6wI3HgTdF1aH rEZPho96hhvsdu5p33HGg1BHuKhteYKa/TukzURBRPlu0+ruDol0rFsJn/SXblTe WczjFTRku+EAmF55V+gXOwhZ0wazZ47lcKIIg5EZMuSQo5PsRh/OD+w5j+15+2QP nHCFzEWEevnKmfmlhSfi0voyvNlxLzmc9ppv0AWUYX5mbppL6aCjHVu+RUphAAL4 R2D+C6ApRQOWnn+pFj3SALxas3sWuDHDCDCXSesjCWYT5wRoM6wY/ykgETC3Q+U= =sPTt
-----END PGP SIGNATURE-----

_______________________________________________
lttng-dev mailing list
[email protected]
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

Signature · 4 lines
Mathieu Desnoyers
Operating System Efficiency R&D Consultant
EfficiOS Inc.
http://www.efficios.com