[lttng-dev] The problem with compiling multiple tracepoint sources with app directly

Thibault, Daniel Daniel.Thibault at drdc-rddc.gc.ca
Tue Oct 29 13:38:36 EDT 2013


-----Message d'origine-----
> First create:
>
> sample_tracepoint.c
>
> #define TRACEPOINT_CREATE_PROBES
> #include "sample_tracepoint.h"
>
> $ gcc -I. -c -o sample_tracepoint.o sample_tracepoint.c

   You can do without sample_tracepoint.c completely by using:

$ gcc -I. -c -D TRACEPOINT_CREATE_PROBES -x c -o sample_tracepoint.o sample_tracepoint.h

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