Skip to content

Commit

Permalink
Improve strace slide
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
  • Loading branch information
michaelopdenacker committed Aug 5, 2020
1 parent b540d1b commit 3d966d6
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 10 deletions.
Binary file added common/strace-mascot.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 15 additions & 10 deletions common/strace.tex
@@ -1,22 +1,27 @@
\begin{frame}
\begin{frame}[fragile]
\frametitle{strace}
System call tracer\\
\url{https://sourceforge.net/projects/strace/}
\begin{columns}
\column{0.75\textwidth}
\small
System call tracer - \url{https://strace.io}
\begin{itemize}
\item Available on all GNU/Linux systems\\
Can be built by your cross-compiling toolchain generator.
Can be built by your cross-compiling toolchain generator.
\item Even easier: drop a ready-made static binary for your
architecture, just when you need it. See
\url{https://github.com/bootlin/static-binaries/tree/master/strace}
\item Allows to see what any of your processes is doing:\\
accessing files, allocating memory...\\
Often sufficient to find simple bugs.
\url{https://frama.link/q5WcWayh}
\item Allows to see what any of your processes is doing: accessing files, allocating memory...
Often sufficient to find simple bugs.
\item Usage:\\
\code{strace <command>} (starting a new process)\\
\code{strace -p <pid>} (tracing an existing process)
\code{strace -p <pid>} (tracing an existing process)\\
\code{strace -c <command>} (statistics of system calls taking most time)
\end{itemize}
See \code{man strace} for details.
See \href{https://man7.org/linux/man-pages/man1/strace.1.html}{the strace manual} for details.
\column{0.25\textwidth}
\includegraphics[height=0.7\textheight]{common/strace-mascot.png}\\
\tiny Image credits: \url{https://strace.io/}
\end{columns}
\end{frame}

\begin{frame}[fragile]
Expand Down

0 comments on commit 3d966d6

Please sign in to comment.