Skip to content

Commit

Permalink
slides: common/gdb: add minicoredumper
Browse files Browse the repository at this point in the history
Also, in the slide about core dumps, mention the core dump is an ELF file,
which helps understanding how minicoredumpre can work.

Signed-off-by: Luca Ceresoli <[email protected]>
  • Loading branch information
lucaceresoli committed Dec 15, 2023
1 parent 650de6b commit 31137cd
Showing 1 changed file with 32 additions and 2 deletions.
34 changes: 32 additions & 2 deletions common/gdb.tex
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,8 @@ \subsection{Remote debugging}
information about the crash
\item Fortunately, Linux can generate a \code{core} file that
contains the image of the application memory at the moment of the
crash, and gdb can use this \code{core} file to let us analyze the
state of the crashed application
crash in the ELF format. gdb can use this \code{core} file to let
us analyze the state of the crashed application
\item On the target
\begin{itemize}
\item Use \code{ulimit -c unlimited} in the shell starting the
Expand All @@ -222,3 +222,33 @@ \subsection{Remote debugging}
\end{itemize}
\end{itemize}
\end{frame}
\begin{frame}
\frametitle{minicoredumper}
\begin{itemize}
\item Coredumps can be huge for complex applications
\item minicoredumper is a userspace tool based on the standard core dump
feature
\begin{itemize}
\item Based on the possibility to redirect the core dump output to a
user space program via a pipe
\end{itemize}
\item Based on a JSON configuration file, it can:
\begin{itemize}
\item save only the relevant sections (stack, heap, selected ELF
sections)
\item compress the output file
\item save additional information from \code{/proc}
\end{itemize}
\item \url{https://github.com/diamon/minicoredumper}
\item ``Efficient and Practical Capturing of Crash Data on Embedded
Systems''
\begin{itemize}
\item Presentation by minicoredumper author John Ogness
\item Video: \url{https://www.youtube.com/watch?v=q2zmwrgLJGs}
\item Slides:
\href{https://elinux.org/images/8/81/Eoss2023_ogness_minicoredumper.pdf}
{elinux.org/images/8/81/Eoss2023\_ogness\_minicoredumper.pdf}
\end{itemize}
\end{itemize}
\end{frame}

0 comments on commit 31137cd

Please sign in to comment.