[yocto] OPerf support in Yocto

Amit Tomer amittomer25 at gmail.com
Thu Oct 31 03:35:47 PDT 2013


We are using OProfle as a profiling tool adn but have to requirment to
move Operf tool
As of now our build infrastructure is generating Oprofile binaries but
there is no Operf
Bianry is generated after build.

We found some pathces realted to PPC architecture which enable OPerf for PPC
But as we are on ARM ,how do we enable Operf for ARM.

Below is our source of OProf

/poky/meta/recipes-kernel/oprofile/oprofile_0.9.8.bb

require oprofile.inc

PR = "${INC_PR}.3"

DEPENDS += "virtual/kernel"
DEPENDS_append_powerpc64 = " libpfm4"

SRC_URI += "${SOURCEFORGE_MIRROR}/${BPN}/${BPN}-${PV}.tar.gz \
            file://0001-Add-rmb-definition-for-AArch64-architecture.patch \
            file://0001-OProfile-doesn-t-build-for-32-bit-ppc-the-operf_util.patch
\
            file://0001-Handle-early-perf_events-kernel-without-PERF_RECORD_.patch
\
            file://0001-Fix-up-configure-to-handle-architectures-that-do-not.patch
\
            file://0001-Change-configure-to-look-for-libpfm4-function-first-.patch
\
            file://0001-ophelp-lists-events-Fix-doc-URL-for-ppc64-arch.patch \
            file://0001-Allow-ppc64-events-to-be-specified-with-or-without-_.patch
\
            file://0001-Fix-PPC64-specific-libpfm-usage-so-it-doesn-t-break-.patch"

SRC_URI[md5sum] = "6d127023af1dd1cf24e15411229f3cc8"
SRC_URI[sha256sum] =
"ab45900fa1a23e5d5badf3c0a55f26c17efe6e184efcf00b371433751fa761bc"

S = "${WORKDIR}/oprofile-${PV}"

Thanks
Amit



More information about the yocto mailing list