[bootlin/training-materials updates] master: debugging: LTTng: add information about remote tracing and fix typos (0f24c920)

Clément Léger clement.leger at bootlin.com
Tue Nov 15 18:17:05 CET 2022


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

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

commit 0f24c9204590d43e85226655fb59f03bf66c20f2
Author: Clément Léger <clement.leger at bootlin.com>
Date:   Tue Nov 15 14:44:53 2022 +0100

    debugging: LTTng: add information about remote tracing and fix typos
    
    Signed-off-by: Clément Léger <clement.leger at bootlin.com>


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

0f24c9204590d43e85226655fb59f03bf66c20f2
 .../debugging-system-wide-profiling.tex            | 32 ++++++++++++++++++++--
 1 file changed, 29 insertions(+), 3 deletions(-)

diff --git a/slides/debugging-system-wide-profiling/debugging-system-wide-profiling.tex b/slides/debugging-system-wide-profiling/debugging-system-wide-profiling.tex
index 5f01fd25..dc57fe81 100644
--- a/slides/debugging-system-wide-profiling/debugging-system-wide-profiling.tex
+++ b/slides/debugging-system-wide-profiling/debugging-system-wide-profiling.tex
@@ -974,11 +974,9 @@ Attaching 1 probe...
         \item Also expose a \code{/dev/lttng-logger} that can be used from any
               application.
       \end{itemize}
-      \item Tracepoints are associated with a payload (data associated to it).
+      \item Tracepoints are associated with a payload (data).
       \item LTTng is focused on low-overhead tracing.
       \item LTTng provides a unified logging of all events (kernel/user).
-      \item Uses the \url{https://diamon.org/ctf/}{CTF} trace format (Common
-            Trace Format).
     \end{itemize}
     \column{0.35\textwidth}
     \includegraphics[height=0.3\textheight]{slides/debugging-system-wide-profiling/lttng-logo.jpg}
@@ -988,6 +986,8 @@ Attaching 1 probe...
 \begin{frame}
   \frametitle{{\em LTTng} (2/2)}
   \begin{itemize}
+    \item Uses the \url{https://diamon.org/ctf/}{CTF} trace format (Common
+          Trace Format).
     \item LTTng is made of multiple components:
     \begin{itemize}
       \item LTTng-tools: Libraries and command-line interface to control tracing.
@@ -1135,6 +1135,32 @@ $ babeltrace2 ./my_traces
   \end{block}
 \end{frame}
 
+\begin{frame}[fragile]
+  \frametitle{Remote tracing with {\em LTTng}}
+  \begin{itemize}
+    \item LTTng allows to record traces over network.
+    \item Useful for embedded systems that do not have a lot of storage
+          immediatly available.
+    \item On the remote computer, run \code{lttng-relayd} command
+  \end{itemize}
+  \begin{block}{}
+    \begin{minted}[fontsize=\small]{console}
+$ lttng-relayd --output=${PWD}/traces
+   \end{minted}
+  \end{block}
+  \begin{itemize}
+    \item Then on the target, at session creation, use the \code{--set-url}
+  \end{itemize}
+  \begin{block}{}
+    \begin{minted}[fontsize=\small]{console}
+$ lttng create my-session --set-url=net://remote-system
+   \end{minted}
+  \end{block}
+  \begin{itemize}
+    \item Traces will then be recorded directly on the remote computer.
+  \end{itemize}
+\end{frame}
+
 \begin{frame}[fragile]
   \frametitle{Choosing the right tool}
   \begin{itemize}




More information about the training-materials-updates mailing list