[lttng-dev] sdt.h tracepoints with unicode data and/or structs

Milian Wolff milian.wolff at kdab.com
Tue Sep 6 19:00:38 UTC 2016


Hey all,

where can I find more documentation on how to use sdt.h to add static 
tracepoints to user-land applications? If this is not the right place to ask, 
please refer to to elsewhere.

I plan to upstream a collection of tracepoints to Qt, and possibly elsewhere. 
One problem I'm having right now is figuring out how to "design" the 
tracepoints such that they have minimal overhead.

So my questions:

What data types can I use for trace point arguments?

Can I pass UTF16 strings? Do they need to be null-terminated?

Can I pass structs? Or do I need to pass each member as an individual 
argument?

Thanks

-- 
Milian Wolff | milian.wolff at kdab.com | Software Engineer
KDAB (Deutschland) GmbH&Co KG, a KDAB Group company
Tel: +49-30-521325470
KDAB - The Qt Experts
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5903 bytes
Desc: not available
URL: <https://lists.lttng.org/pipermail/lttng-dev/attachments/20160906/340742e6/attachment.bin>


More information about the lttng-dev mailing list