[bootlin/training-materials updates] master: debugging: labs: add makefile for heap_profile (fc8ba412)

Clément Léger clement.leger at bootlin.com
Wed Nov 23 10:48:14 CET 2022


Repository : https://github.com/bootlin/training-materials
On branch  : master
Link       : https://github.com/bootlin/training-materials/commit/fc8ba412f363b1ce94373e464687174f57dd4698

>---------------------------------------------------------------

commit fc8ba412f363b1ce94373e464687174f57dd4698
Author: Clément Léger <clement.leger at bootlin.com>
Date:   Wed Nov 23 10:48:14 2022 +0100

    debugging: labs: add makefile for heap_profile
    
    Signed-off-by: Clément Léger <clement.leger at bootlin.com>


>---------------------------------------------------------------

fc8ba412f363b1ce94373e464687174f57dd4698
 lab-data/debugging/nfsroot/root/heap_profile/Makefile                 | 4 ++++
 .../debugging-application-profiling.tex                               | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/lab-data/debugging/nfsroot/root/heap_profile/Makefile b/lab-data/debugging/nfsroot/root/heap_profile/Makefile
new file mode 100644
index 00000000..452ce0d8
--- /dev/null
+++ b/lab-data/debugging/nfsroot/root/heap_profile/Makefile
@@ -0,0 +1,4 @@
+CC=${CROSS_COMPILE}gcc
+
+heap_profile: heap_profile.c
+	${CC} $< -g3 -o $@
\ No newline at end of file
diff --git a/labs/debugging-application-profiling/debugging-application-profiling.tex b/labs/debugging-application-profiling/debugging-application-profiling.tex
index 5aaea70c..e87f2b5b 100644
--- a/labs/debugging-application-profiling/debugging-application-profiling.tex
+++ b/labs/debugging-application-profiling/debugging-application-profiling.tex
@@ -17,7 +17,7 @@ using the following command:
 
 \begin{bashinput}
 $ cd /home/<user>/debugging-labs/nfsroot/root/heap_profile
-$ ${CROSS_COMPILE}-gcc -g3 heap_profile.c -o heap_profile
+$ make
 \end{bashinput}
 
 Once compile, on the target run it under massif using the following command:




More information about the training-materials-updates mailing list