Skip to content

Commit

Permalink
Boot time: remove Oprofile slides
Browse files Browse the repository at this point in the history
- Obsoleted by perf

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
  • Loading branch information
michaelopdenacker authored and tpetazzoni committed Oct 29, 2021
1 parent 120198d commit 5a97ef4
Showing 1 changed file with 0 additions and 84 deletions.
84 changes: 0 additions & 84 deletions slides/boot-time-application/boot-time-application.tex
Expand Up @@ -26,90 +26,6 @@ \section{Optimizing applications}
\input{../common/strace.tex}
\input{../common/ltrace.tex}

\begin{frame}
\frametitle{oprofile}
A system-wide profiler
\begin{itemize}
\item Two ways of working: {\em legacy} mode and {\em
perf\_events} mode
\item {\em legacy} mode:
\begin{itemize}
\item Low accuracy, use a kernel driver to profile
\item \kconfig{CONFIG_OPROFILE}
\item User space tools: \code{opcontrol} and \code{oprofiled}
\end{itemize}
\item {\em perf\_events} mode:
\begin{itemize}
\item Uses hardware performance counters
\item \kconfig{CONFIG_PERF_EVENTS} and \kconfig{CONFIG_HW_PERF_EVENTS}
\item User space tools: \code{operf}
\end{itemize}
\end{itemize}
\end{frame}

\begin{frame}[fragile]
\frametitle{oprofile: usage}
\begin{itemize}
\item {\em legacy} mode:
\begin{block}{}
\begin{verbatim}
opcontrol --vmlinux=/path/to/vmlinux # optional step
opcontrol --start
/my/command
opcontrol --stop
\end{verbatim}
\end{block}
\item {\em perf\_events} mode:
\begin{block}{}
\begin{verbatim}
operf --vmlinux=/path/to/vmlinux /my/command
\end{verbatim}
\end{block}
\item Get the results with:
\begin{block}{}
\begin{verbatim}
opreport
\end{verbatim}
\end{block}
\end{itemize}
\end{frame}

\begin{frame}[fragile]
\frametitle{oprofile}
\begin{block}{}
\tiny
\begin{verbatim}
# opreport
Using /var/lib/oprofile/samples/ for samples directory.
CPU: CPU with timer interrupt, speed 393 MHz (estimated)
Profiling through timer interrupt
TIMER:0|
samples| %|
------------------
1540 78.3715 no-vmlinux
105 5.3435 libQtGui.so.4.8.4
66 3.3588 libc-2.15.so
64 3.2570 libQtCore.so.4.8.4
58 2.9517 ld-2.15.so
45 2.2901 libgobject-2.0.so.0.3000.3
37 1.8830 libgstreamer-0.10.so.0.30.0
13 0.6616 libglib-2.0.so.0.3000.3
9 0.4580 libQtScript.so.4.8.4
6 0.3053 libgcc_s.so.1
4 0.2036 libQtDeclarative.so.4.8.4
4 0.2036 libstdc++.so.6.0.17
3 0.1527 libpthread-2.15.so
2 0.1018 busybox
2 0.1018 libQtSvg.so.4.8.4
2 0.1018 libQtWebKit.so.4.9.3
2 0.1018 libgthread-2.0.so.0.3000.3
1 0.0509 HomeAutomation
1 0.0509 libQtNetwork.so.4.8.4
1 0.0509 libphonon_gstreamer.so
\end{verbatim}
\end{block}
\end{frame}

\begin{frame}[fragile]
\frametitle{perf}
\begin{itemize}
Expand Down

0 comments on commit 5a97ef4

Please sign in to comment.