[bootlin/training-materials updates] master: labs: debugging: add extra env var for all commands that needs that (a99948e7)

Clément Léger clement.leger at bootlin.com
Thu Mar 23 11:14:46 CET 2023


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

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

commit a99948e70d910aa381aa43a1772f12595eb81014
Author: Clément Léger <clement.leger at bootlin.com>
Date:   Thu Mar 23 11:12:17 2023 +0100

    labs: debugging: add extra env var for all commands that needs that
    
    Sometimes, people are doing labs independently rather than as a whole.
    
    Signed-off-by: Clément Léger <clement.leger at bootlin.com>


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

a99948e70d910aa381aa43a1772f12595eb81014
 .../debugging-application-profiling.tex                             | 2 ++
 labs/debugging-kernel-debugging/debugging-kernel-debugging.tex      | 6 ++++++
 2 files changed, 8 insertions(+)

diff --git a/labs/debugging-application-profiling/debugging-application-profiling.tex b/labs/debugging-application-profiling/debugging-application-profiling.tex
index eef51efe..ccf963ab 100644
--- a/labs/debugging-application-profiling/debugging-application-profiling.tex
+++ b/labs/debugging-application-profiling/debugging-application-profiling.tex
@@ -136,6 +136,7 @@ contain the traces that have been recorded. These traces can be analyzed using
 
 \begin{bashinput}
 $ sudo chown $USER:$USER perf.data
+$ export CROSS_COMPILE=/home/$USER/debugging-labs/buildroot/output/host/bin/arm-linux-
 $ perf report --symfs=/home/$USER/debugging-labs/buildroot/output/staging/
     -k /home/$USER/debugging-labs/buildroot/output/build/linux-5.13/vmlinux
 \end{bashinput}
@@ -157,6 +158,7 @@ with callgrind ones on your development platform:
 
 \begin{bashinput}
 $ sudo chown $USER:$USER perf.data
+$ export CROSS_COMPILE=/home/$USER/debugging-labs/buildroot/output/host/bin/arm-linux-
 $ perf report --symfs=/home/$USER/debugging-labs/buildroot/output/staging/
    -k /home/$USER/debugging-labs/buildroot/output/build/linux-5.13/vmlinux
 \end{bashinput}
diff --git a/labs/debugging-kernel-debugging/debugging-kernel-debugging.tex b/labs/debugging-kernel-debugging/debugging-kernel-debugging.tex
index 126735d2..78118718 100644
--- a/labs/debugging-kernel-debugging/debugging-kernel-debugging.tex
+++ b/labs/debugging-kernel-debugging/debugging-kernel-debugging.tex
@@ -51,6 +51,9 @@ Then compile the kmemleak test module:
 
 \begin{bashinput}
 $ cd /home/$USER/debugging-labs/nfsroot/root/kmemleak
+$ export CROSS_COMPILE=/home/$USER/debugging-labs/buildroot/output/host/bin/arm-linux-
+$ export ARCH=arm
+$ export KDIR=/home/$USER/debugging-labs/buildroot/output/build/linux-5.13/
 $ make
 \end{bashinput}
 
@@ -250,6 +253,9 @@ it.
 
 \begin{bashinput}
 $ cd /root/kgdb
+$ export CROSS_COMPILE=/home/$USER/debugging-labs/buildroot/output/host/bin/arm-linux-
+$ export ARCH=arm
+$ export KDIR=/home/$USER/debugging-labs/buildroot/output/build/linux-5.13/
 $ make
 \end{bashinput}
 




More information about the training-materials-updates mailing list