X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;ds=sidebyside;f=contents%2Fusing-lttng%2Finstrumenting%2Fc-application%2Fprobing-the-application-source-code.md;h=95830a309f0a5d215393f75441eb569b1d9de611;hb=cd41f97c42df5747599d1c8d107d7afc3968ee32;hp=89cf26781453d0b5f6bda97fc6052affa45739ef;hpb=0cc0308005e95e4a03a60b4eb3b29e8a00065b0f;p=lttng-docs.git diff --git a/contents/using-lttng/instrumenting/c-application/probing-the-application-source-code.md b/contents/using-lttng/instrumenting/c-application/probing-the-application-source-code.md index 89cf267..95830a3 100644 --- a/contents/using-lttng/instrumenting/c-application/probing-the-application-source-code.md +++ b/contents/using-lttng/instrumenting/c-application/probing-the-application-source-code.md @@ -55,9 +55,12 @@ int main(int argc, char* argv[]) } ~~~ -`TRACEPOINT_DEFINE` must be defined into exactly one translation unit (C -source file) of the user application, before including the tracepoint provider -header file. `TRACEPOINT_DEFINE` is discussed further in +For each tracepoint provider, `TRACEPOINT_DEFINE` must be defined into +exactly one translation unit (C source file) of the user application, +before including the tracepoint provider header file. In other words, +for a given tracepoint provider, you cannot define `TRACEPOINT_DEFINE`, +and then include its header file in two separate C source files of +the same application. `TRACEPOINT_DEFINE` is discussed further in [Building/linking tracepoint providers and the user application](#doc-building-tracepoint-providers-and-user-application). As another example, remember this definition we wrote in a previous