Skip to contentSkip to conversation

profile-manual, Chapter 1, aesthetic cleanups

PATCH In review [email protected] 2 participants 2 messages Oct 14, 2023 – Oct 17, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 profile-manual, Chapter 1, aesthetic cleanups

Various aesthetic cleanups of section 1 of that manual, including:

* replace 'HOWTO' with manual
* add more examples of sdk-related images
* font fixes

---

documentation/profile-manual/intro.rst +1 -1
index 93f8429ee..9d286b8fd 100644
@@ -7,39 +7,41 @@ Yocto Project Profiling and Tracing Manual
 Introduction
 ============
 
-Yocto bundles a number of tracing and profiling tools --- this 'HOWTO'
+Yocto Project bundles a number of tracing and profiling tools --- this manual
 describes their basic usage and shows by example how to make use of 

them
-to examine application and system behavior.
+to analyze application and system behavior.

-The tools presented are for the most part completely open-ended and have +The tools presented are, for the most part, completely open-ended and have
quite good and/or extensive documentation of their own which can be
used
to solve just about any problem you might come across in Linux. Each section that describes a particular tool has links to that tool's documentation and website.

-The purpose of this 'HOWTO' is to present a set of common and generally +The purpose of this manual is to present a set of common and generally
useful tracing and profiling idioms along with their application (as appropriate) to each tool, in the context of a general-purpose 'drill-down' methodology that can be applied to solving a large number
-(90%?) of problems. For help with more advanced usages and problems, -please see the documentation and/or websites listed for each tool. +of problems. For help with more advanced usages and problems, +refer to the documentation and/or websites provided for each tool.

-The final section of this 'HOWTO' is a collection of real-world examples -which we'll be continually adding to as we solve more problems using the -tools --- feel free to add your own examples to the list! +The final section of this manual is a collection of real-world examples +which we'll be continually updating as we solve more problems using the +tools --- feel free to suggest additions to what you read here.

General Setup
=============

Most of the tools are available only in 'sdk' images or in images built
-after adding 'tools-profile' to your local.conf. So, in order to be able -to access all of the tools described here, please first build and boot -an 'sdk' image e.g. ::
+after adding 'tools-profile' to your ``local.conf`` file. So, in order to be able +to access all of the tools described here, you can build and boot +an 'sdk' image, perhaps one of: ::

    $ bitbake core-image-sato-sdk
+   $ bitbake core-image-weston-sdk
+   $ bitbake core-image-rt-sdk

-or alternatively by adding 'tools-profile' to the :term:EXTRA_IMAGE_FEATURES line in -your local.conf::
+Alternatively, you can add 'tools-profile' to the :term:EXTRA_IMAGE_FEATURES line in +your ``local.conf`` file::

EXTRA_IMAGE_FEATURES = "debug-tweaks tools-profile"

@@ -64,8 +66,8 @@ the tracing and profiling tools will be included in non-sdk images as well e.g.:
If you've already built a stripped image, you can generate debug
packages (xxx-dbg) which you can manually install as needed.

-To generate debug info for packages, you can add dbg-pkgs to -:term:EXTRA_IMAGE_FEATURES in local.conf. For example::
+To generate debug info for packages, you can add 'dbg-pkgs' to +:term:EXTRA_IMAGE_FEATURES in ``local.conf``. For example::

EXTRA_IMAGE_FEATURES = "debug-tweaks tools-profile dbg-pkgs"

Reviewed-by on v1 1/1
#1 lore raw

Hi Robert

Many thanks for this patch!

I completely agree with your changes which definitely make sense. In particular, the style improvements are welcome!

See my comments below...

Review

Quoted 10 lines · Robert P. J. Day

 Most of the tools are available only in 'sdk' images or in images built

(quoted diff) +1 -3
-after adding 'tools-profile' to your local.conf. So, in order to be able
-to access all of the tools described here, please first build and boot
-an 'sdk' image e.g. ::
+after adding 'tools-profile' to your ``local.conf`` file. So, in 

order to be able

(quoted diff) +2 -0
+to access all of the tools described here, you can build and boot
+an 'sdk' image, perhaps one of: ::

I know this is the original text, but I'm also changing "tools-profile" to "``tools-profile``", and "sdk" to "``sdk``".

I also replaced ": ::" by "::".

Review

Quoted 10 lines
(quoted diff) +0 -0
@@ -64,8 +66,8 @@ the tracing and profiling tools will be included in 

non-sdk images as well e.g.:
 If you've already built a stripped image, you can generate debug packages (xxx-dbg) which you can manually install as needed.

(quoted diff) +2 -2
-To generate debug info for packages, you can add dbg-pkgs to
-:term:`EXTRA_IMAGE_FEATURES` in local.conf. For example::
+To generate debug info for packages, you can add 'dbg-pkgs' to
+:term:`EXTRA_IMAGE_FEATURES` in ``local.conf``. For example::

Same here, using ``dbg-pkgs``.

After my minor changes:

... and merged into master-next.

Don't hesitate to send us more :)

Thanks again,
Michael.

Signature · 3 lines
Michael Opdenacker, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com