Bug 9263

Summary: oprofile not available in tools-profile anymore
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Robert Berger <pokylinux>
Component: coreAssignee: Ross Burton <ross.burton>
Status: RESOLVED NOTABUG QA Contact:
Severity: normal    
Priority: Undecided CC: meta.mr.watcher, meta.watcher
Version: 2.0.1   
Target Milestone: ---   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Yes (doc changes required)

Description Robert Berger 2016-03-15 15:43:38 UTC
In the meantime I just added a packagegroup-core-tools-profile.bbappend:


# add oprofile, which got lost in jethro

RRECOMMENDS_${PN}_append = "\
    kernel-module-oprofile \
    "

PROFILETOOLS_append = "\
    oprofile \
    "
Comment 1 Ross Burton 2016-03-15 15:53:28 UTC
This was intentional:

commit 949734502f9daf56a7ca5e294df762d0e583e4f1
Author: Philip Balister <philip@balister.org>
Date:   Mon Jun 1 16:17:22 2015 -0400

    packagegroup-core-tools-profile.bb: Remove oprofile.

    Oprofile functions duplicate perf. Since perf is easier to use drop oprofile
    from the core-tools-profile package.

    Also, the oprofile-ui package opens a port on the device. removing this
    package reduces a possible security issue for devices with profiling tools.

    (From OE-Core rev: 17b3e8ec13a51442416a4065638e7636916fb804)
Comment 2 Robert Berger 2016-03-15 16:20:59 UTC
OK - thanks Philip.

So I guess we'll need to update the manual.

I just saw what you said mentioned as well in the manual[1], but there is still the oprofile example here[2] and various references to tools-profile, which claim the oprofile is still part of it like:

"tools-profile: Installs profiling tools such as oprofile, exmap, and LTTng. For general information on user-space tools, see the "User-Space Tools" section in the Yocto Project Application Developer's Guide."

and 

"To use OProfile, you need an image that has OProfile installed. The easiest way to do this is with "tools-profile" in the IMAGE_FEATURES variable."

""tools-profile" - Adds profiling tools such as oprofile,
                  exmap, lttng and valgrind (x86 only)."

just search for tools-profile in the latest mega-manual

[1] http://www.yoctoproject.org/docs/latest/mega-manual/mega-manual.html#migration-2.0-miscellaneous

[2] http://www.yoctoproject.org/docs/latest/mega-manual/mega-manual.html#profile-manual-oprofile