[bootlin/training-materials updates] master: debugging: labs: rename tracepoints and add more informations (d4cc9c9c)

Clément Léger clement.leger at bootlin.com
Fri Nov 25 11:40:23 CET 2022


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

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

commit d4cc9c9ca95c01863ef02ed0c0e14bf1d107bd39
Author: Clément Léger <clement.leger at bootlin.com>
Date:   Fri Nov 25 11:40:23 2022 +0100

    debugging: labs: rename tracepoints and add more informations
    
    Signed-off-by: Clément Léger <clement.leger at bootlin.com>


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

d4cc9c9ca95c01863ef02ed0c0e14bf1d107bd39
 .../debugging-system-wide-profiling.tex                        | 10 ++++++----
 1 file changed, 6 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 aa7d90e6..affa6fb5 100644
--- a/labs/debugging-system-wide-profiling/debugging-system-wide-profiling.tex
+++ b/labs/debugging-system-wide-profiling/debugging-system-wide-profiling.tex
@@ -101,8 +101,10 @@ In order to do so, add tracepoints to your program which will allows to measure
 this. We'll add 2 tracepoints:
 
 \begin{itemize}
-  \item One for the start of crc32 computation (\code{compute_crc_entry})
-  \item Another for the end of crc32 computation (\code{compute_crc_exit})
+  \item One for the start of crc32 computation (\code{compute_crc_start})
+    without any arguments.
+  \item Another for the end of crc32 computation (\code{compute_crc_end}) with
+      a crc argument that will be displayed as an hexadecimal integer.
 \end{itemize}
 
 For that, create a tracepoint provider header file template named
@@ -132,8 +134,8 @@ Then on the target, start the trace acquisition using:
 \begin{bashinput}
 $ lttng-sessiond --daemonize
 $ lttng create crc_session --set-url=net://192.168.0.1
-$ lttng enable-event --userspace crc_random:compute_crc_entry
-$ lttng enable-event --userspace crc_random:compute_crc_exit
+$ lttng enable-event --userspace crc_random:compute_crc_start
+$ lttng enable-event --userspace crc_random:compute_crc_end
 $ lttng enable-event --kernel sched_switch
 $ lttng start
 $ ./crc_random




More information about the training-materials-updates mailing list