Skip to contentSkip to conversation

LTTng logger ABI

PATCH Karim Yaghmour 2 participants 4 messages Feb 18, 2014 – Mar 11, 2014 4 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
Quoted 8 lines · Mathieu Desnoyers

Add a user-space ABI (new file /proc/lttng-logger) to lttng-modules which can be written into by any user on the system. The content is saved into the kernel trace stream into the "lttng_logger" kernel event.

The content of a single write is written into an lttng_logger event. The write count is truncated to 1024 bytes (if larger), which is much smaller than the smallest subbuffer size available (4096 bytes). This ensures all written data makes it into the active tracing buffers.

Very nice. Let me know when this is in so that I can schedule giving it a try on Android.

Signature · 3 lines
Karim Yaghmour
CEO - Opersys inc. / www.opersys.com
http://twitter.com/karimyaghmour

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

#3 lore raw

----- Original Message -----

Quoted 12 lines

From: "Karim Yaghmour" <[email protected]>
To: "Mathieu Desnoyers" <[email protected]>
Cc: [email protected]
Sent: Monday, February 17, 2014 7:06:09 PM
Subject: Re: [PATCH] LTTng logger ABI

Quoted 4 lines · Mathieu Desnoyers

Add a user-space ABI (new file /proc/lttng-logger) to lttng-modules which can be written into by any user on the system. The content is saved into the kernel trace stream into the "lttng_logger" kernel event.

Quoted 7 lines
Quoted 4 lines

The content of a single write is written into an lttng_logger event. The write count is truncated to 1024 bytes (if larger), which is much smaller than the smallest subbuffer size available (4096 bytes). This ensures all written data makes it into the active tracing buffers.

Very nice. Let me know when this is in so that I can schedule giving it a try on Android.

I plan to merge it into master right after LTTng 2.4 final is released, which should be in a matter of days. Stay tuned! :)

Thanks,

Mathieu

Quoted 7 lines

--
Karim Yaghmour
CEO - Opersys inc. / www.opersys.com
http://twitter.com/karimyaghmour

Signature · 3 lines
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com

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

#5 lore raw

----- Original Message -----

Quoted 24 lines

From: "Mathieu Desnoyers" <[email protected]>
To: "Karim Yaghmour" <[email protected]>
Cc: [email protected]
Sent: Monday, February 17, 2014 7:22:39 PM
Subject: Re: [lttng-dev] [PATCH] LTTng logger ABI

----- Original Message -----

Quoted 17 lines

From: "Karim Yaghmour" <[email protected]>
To: "Mathieu Desnoyers" <[email protected]>
Cc: [email protected]
Sent: Monday, February 17, 2014 7:06:09 PM
Subject: Re: [PATCH] LTTng logger ABI

Quoted 8 lines · Mathieu Desnoyers

Add a user-space ABI (new file /proc/lttng-logger) to lttng-modules which can be written into by any user on the system. The content is saved into the kernel trace stream into the "lttng_logger" kernel event.

The content of a single write is written into an lttng_logger event. The write count is truncated to 1024 bytes (if larger), which is much smaller than the smallest subbuffer size available (4096 bytes). This ensures all written data makes it into the active tracing buffers.

Quoted 5 lines
Quoted 2 lines

Very nice. Let me know when this is in so that I can schedule giving it a try on Android.

I plan to merge it into master right after LTTng 2.4 final is released, which should be in a matter of days. Stay tuned! :)

The feature is now pushed into the master branch:

commit 0c95667685cf8612eb0d231883874c173b7bb5a1

Author: Mathieu Desnoyers <[email protected]>
Date:   Sat Feb 15 16:59:09 2014 -0500

LTTng logger ABI

Thanks,

Mathieu

Quoted 23 lines

Thanks,

Mathieu

Quoted 7 lines

--
Karim Yaghmour
CEO - Opersys inc. / www.opersys.com
http://twitter.com/karimyaghmour

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

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

Signature · 3 lines
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com

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

#7 lore raw
Quoted 7 lines · Mathieu Desnoyers

The feature is now pushed into the master branch:

commit 0c95667685cf8612eb0d231883874c173b7bb5a1

Author: Mathieu Desnoyers <[email protected]>
Date:   Sat Feb 15 16:59:09 2014 -0500

LTTng logger ABI

Awesome. Thanks!

Signature · 3 lines
Karim Yaghmour
CEO - Opersys inc. / www.opersys.com
http://twitter.com/karimyaghmour