Lines Matching full:perf
8 HOMEPAGE = "https://perf.wiki.kernel.org/index.php/Main_Page"
45 PROVIDES = "virtual/perf"
49 # needed for building the tools/perf Python bindings
59 # needed for building the tools/perf Perl binding
60 include ${@bb.utils.contains('PACKAGECONFIG', 'scripting', 'perf-perl.inc', '', d)}
65 SPDX_S = "${S}/tools/perf"
74 -C ${S}/tools/perf \
99 'perfexecdir=${libexecdir}/perf-core' \
110 # perf's build system by default ignores any -j argument, but does
120 tools/perf \
144 # we are checking for this make target to be compatible with older perf versions
145 …G', 'scripting', 'true', 'false', d)} && grep -q install-python_ext ${S}/tools/perf/Makefile*; then
147 if [ -e ${D}${libdir}/python*/site-packages/perf-*/SOURCES.txt ]; then
148 sed -i -e 's#${WORKDIR}##g' ${D}${libdir}/python*/site-packages/perf-*/SOURCES.txt
174 # If building a multlib based perf, the incorrect library path will be
175 # detected by perf, since it triggers via: ifeq ($(ARCH),x86_64). In a 32 bit
183 # as two builds (e.g. perf and lib32-perf from mutlilib can conflict
186 if [ -e "${S}/tools/perf/config/Makefile" ]; then
187 perfconfig="${S}/tools/perf/config/Makefile"
189 if [ -e "${S}/tools/perf/Makefile.config" ]; then
190 perfconfig="${S}/tools/perf/Makefile.config"
200 # in ${S}/tools/perf/Documentation/Makefile, if the mandir set to '?=', it
203 if [ -e "${S}/tools/perf/Documentation/Makefile" ]; then
204 sed -i 's,^mandir?=,mandir:=,' ${S}/tools/perf/Documentation/Makefile
206 if [ -e "${S}/tools/perf/Makefile.perf" ]; then
208 ${S}/tools/perf/Makefile.perf
210 ${S}/tools/perf/Makefile.perf
213 ${S}/tools/perf/Makefile.perf
216 ${S}/tools/perf/Makefile*
224 if [ -e "${S}/tools/perf/Makefile.config" ]; then
232 ${S}/tools/perf/Makefile.config
235 ${S}/tools/perf/Makefile.config
238 # [perf tools: Use Python devtools for version autodetection rather than runtime]
241 ${S}/tools/perf/Makefile.config
244 # srcdir_SQ = $(patsubst %tools/perf,tools/perf,$(subst ','\'',$(srcdir))),
245 # Captures the full src path of perf, which of course makes it not
246 # reproducible. We really only need the relative location 'tools/perf', so we
247 # change the Makefile line to remove everything before 'tools/perf'
248 …r_SQ = \$(subst ','\\\'',\$(srcdir))%srcdir_SQ = \$(patsubst \%tools/perf,tools/perf,\$(subst ','\…
249 ${S}/tools/perf/Makefile.config
252 ${S}/tools/perf/Makefile.config
254 if [ -e "${S}/tools/perf/tests/Build" ]; then
256 # definition. This is captured in the perf binary, so breaks reproducibility
258 ${S}/tools/perf/tests/Build
260 if [ -e "${S}/tools/perf/util/Build" ]; then
263 sed -i -e 's,$(BISON),$(BISON) $(YFLAGS),g' ${S}/tools/perf/util/Build
270 if [ -e "${S}/tools/perf/pmu-events/Build" ]; then
276 "${S}/tools/perf/pmu-events/Build"
281 if [ -e "${S}/tools/perf/Makefile.perf" ]; then
282 sed -i 's,CC = $(CROSS_COMPILE)gcc,#CC,' ${S}/tools/perf/Makefile.perf
283 sed -i 's,AR = $(CROSS_COMPILE)ar,#AR,' ${S}/tools/perf/Makefile.perf
284 sed -i 's,LD = $(CROSS_COMPILE)ld,#LD,' ${S}/tools/perf/Makefile.perf
295 if [ -e "${S}/tools/perf/config/feature-checks/Makefile" ]; then
296 … sed -i 's,CC := $(CROSS_COMPILE)gcc -MD,CC += -MD,' ${S}/tools/perf/config/feature-checks/Makefile
303 if [ -e "${S}/tools/perf/arch/$ARCH/util/skip-callchain-idx.c" ]; then
304 …hain.h",#include "util/callchain.h"\n#include "util/debug.h",' ${S}/tools/perf/arch/$ARCH/util/ski…
306 …if [ -e "${S}/tools/perf/arch/arm/util/unwind-libunwind.c" ] && [ -e "${S}/tools/perf/arch/arm/tes…
307 …s/tests.h",#include "tests/tests.h"\n#include "util/debug.h",' ${S}/tools/perf/arch/arm/tests/dwar…
308 …perf_regs.h",#include "perf_regs.h"\n#include "util/debug.h",' ${S}/tools/perf/arch/arm/util/unwin…
312 … for s in `find ${S}/tools/perf/ -name '*.py'` `find ${S}/scripts/ -name 'bpf_helpers_doc.py'`; do
316 # unistd.h can be out of sync between libc-headers and the captured version in the perf source
317 # so we copy it from the sysroot unistd.h to the perf unistd.h
349 FILES:${PN} += "${libexecdir}/perf-core ${exec_prefix}/libexec/perf-core ${libdir}/traceevent ${lib…
350 FILES:${PN}-archive = "${libdir}/perf/perf-core/perf-archive"
351 FILES:${PN}-tests = "${libdir}/perf/perf-core/tests ${libexecdir}/perf-core/tests"
354 ${libexecdir}/perf-core/scripts/python \
356 FILES:${PN}-perl = "${libexecdir}/perf-core/scripts/perl"