[bootlin/training-materials updates] master: debugging: fix system profiling Makefile (6b914d47)
Alexis Lothoré
alexis.lothore at bootlin.com
Fri Oct 27 15:27:17 CEST 2023
Repository : https://github.com/bootlin/training-materials
On branch : master
Link : https://github.com/bootlin/training-materials/commit/6b914d471a0ace76643aa407c22f2342f32f62bd
>---------------------------------------------------------------
commit 6b914d471a0ace76643aa407c22f2342f32f62bd
Author: Alexis Lothoré <alexis.lothore at bootlin.com>
Date: Fri Oct 27 15:27:06 2023 +0200
debugging: fix system profiling Makefile
Signed-off-by: Alexis Lothoré <alexis.lothore at bootlin.com>
>---------------------------------------------------------------
6b914d471a0ace76643aa407c22f2342f32f62bd
.../debugging-system-wide-profiling.tex | 4 ++--
1 file changed, 2 insertions(+), 2 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 aa17bfa7..1671026c 100644
--- a/labs/debugging-system-wide-profiling/debugging-system-wide-profiling.tex
+++ b/labs/debugging-system-wide-profiling/debugging-system-wide-profiling.tex
@@ -118,13 +118,13 @@ new rule and modifying the existing one to generate the tracepoints files using
\code{lttng-gen-tp}:
\begin{bashinput}
- export CC=${CROSS_COMPILE}gcc
+ CC=${CROSS_COMPILE}gcc
crc_random: crc_random.c crc_random-tp.o
${CC} $^ -g3 -llttng-ust -o $@
crc_random-tp.o: crc_random-tp.tp
- lttng-gen-tp $<
+ CC=${CC} lttng-gen-tp $<
\end{bashinput}
You can then use the new tracepoints in your program to trace specific points
More information about the training-materials-updates
mailing list