Bug 9263 - oprofile not available in tools-profile anymore
Summary: oprofile not available in tools-profile anymore
Status: RESOLVED NOTABUG
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 2.0.1
Hardware: x86 Multiple
: Undecided normal
Target Milestone: ---
Assignee: Ross Burton
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2016-03-15 15:43 UTC by Robert Berger
Modified: 2016-03-15 16:20 UTC (History)
2 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Yes (doc changes required)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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