[lttng-dev] Instrumenting a module?

Thibault, Daniel Daniel.Thibault at drdc-rddc.gc.ca
Wed Feb 12 12:55:08 EST 2014


   Update.  I finally figured it out: in the mainline, in the special case of dynamic arrays (and hence strings), you cannot use '__entry->fieldname' but must instead write 'memcpy(__get_dynamic_array(fieldname)...' (or ' __assign_str(fieldname, arg)') because there is no direct struct member created.  Problem solved!

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/>



More information about the lttng-dev mailing list