[bootlin/training-materials updates] master: debugging: labs: lttng: fix Makefile (f0252d71)
Luca Ceresoli
luca.ceresoli at bootlin.com
Fri Mar 24 17:05:33 CET 2023
Repository : https://github.com/bootlin/training-materials
On branch : master
Link : https://github.com/bootlin/training-materials/commit/f0252d71e93fd24c785ec4832f1d1994e1d07baf
>---------------------------------------------------------------
commit f0252d71e93fd24c785ec4832f1d1994e1d07baf
Author: Luca Ceresoli <luca.ceresoli at bootlin.com>
Date: Fri Mar 24 17:05:33 2023 +0100
debugging: labs: lttng: fix Makefile
Fix two issues with the Makefile:
* lttng-gen-tp needs CC in the environment
* the default target should be the final program, thus move it before the
other rule
Signed-off-by: Luca Ceresoli <luca.ceresoli at bootlin.com>
>---------------------------------------------------------------
f0252d71e93fd24c785ec4832f1d1994e1d07baf
.../debugging-system-wide-profiling.tex | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/labs/debugging-system-wide-profiling/debugging-system-wide-profiling.tex b/labs/debugging-system-wide-profiling/debugging-system-wide-profiling.tex
index 99cf0e97..e97c4728 100644
--- a/labs/debugging-system-wide-profiling/debugging-system-wide-profiling.tex
+++ b/labs/debugging-system-wide-profiling/debugging-system-wide-profiling.tex
@@ -112,12 +112,12 @@ new rule and modifying the existing one to generate the tracepoints files using
\code{lttng-gen-tp}:
\begin{bashinput}
- crc_random-tp.o: crc_random-tp.tp
- lttng-gen-tp $<
-
crc_random: crc_random.c crc_random-tp.o
${CC} $^ -g3 -I. -llttng-ust -o $@
- \end{bashinput}
+
+ crc_random-tp.o: crc_random-tp.tp
+ CC=${CC} lttng-gen-tp $<
+\end{bashinput}
You can then use the new tracepoints in your program to trace specific points
of execution as requested.
More information about the training-materials-updates
mailing list