deepin-kernel/tools/perf
Leo Yan 4613dc7311 perf: build: Setup PKG_CONFIG_LIBDIR for cross compilation
commit 440cf77625 upstream.

On recent Linux distros like Ubuntu Noble and Debian Bookworm, the
'pkg-config-aarch64-linux-gnu' package is missing. As a result, the
aarch64-linux-gnu-pkg-config command is not available, which causes
build failures.

When a build passes the environment variables PKG_CONFIG_LIBDIR or
PKG_CONFIG_PATH, like a user uses make command or a build system
(like Yocto, Buildroot, etc) prepares the variables and passes to the
Perf's Makefile, the commit keeps these variables for package
configuration. Otherwise, this commit sets the PKG_CONFIG_LIBDIR
variable to use the Multiarch libs for the cross compilation.

Signed-off-by: Leo Yan <leo.yan@arm.com>
Tested-by: Ian Rogers <irogers@google.com>
Cc: amadio@gentoo.org
Cc: Thomas Richter <tmricht@linux.ibm.com>
Link: https://lore.kernel.org/r/20240717082211.524826-2-leo.yan@arm.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Cc: Alexis Lothoré <alexis.lothore@bootlin.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit eb952372bf481d52eeeb7ac719f350b38d5d1c31)
2025-07-22 16:16:40 +08:00
..
Documentation perf/traceevent: Support asciidoctor for documentation 2024-12-31 11:42:52 +08:00
arch perf kvm: Add kvm-stat for loongarch64 2025-06-06 14:45:06 +08:00
bench perf bench: Fix perf bench syscall loop count 2025-04-14 15:49:19 +08:00
dlfilters perf dlfilter: Add a test for object_code() 2023-09-30 00:09:06 -07:00
include/perf perf dlfilter: Add al_cleanup() 2023-08-15 16:41:49 -03:00
jvmti
pmu-events perf vendor events: Remove UTF-8 characters from cmn.json 2025-06-02 21:55:41 +08:00
python
scripts perf scripts python: exported-sql-viewer.py: Fix pattern matching with Python 3 2025-06-20 14:39:53 +08:00
tests perf tests switch-tracking: Fix timestamp comparison 2025-06-20 14:39:55 +08:00
trace perf tools changes for v6.6: 2023-09-09 20:06:17 -07:00
ui perf ui browser hists: Set actions->thread before calling do_zoom_thread() 2025-06-20 14:39:48 +08:00
util perf evsel: Missed close() when probing hybrid core PMUs 2025-07-03 11:32:13 +08:00
.gitignore
Build
CREDITS
MANIFEST
Makefile
Makefile.config sw64: perf unwind: Do not put libunwind-sw_64 in FEATURE_TESTS_BASIC 2025-07-08 15:28:32 +08:00
Makefile.perf perf: build: Setup PKG_CONFIG_LIBDIR for cross compilation 2025-07-22 16:16:40 +08:00
builtin-annotate.c perf ui/browser/annotate: Use global annotation_options 2024-12-10 20:41:55 +08:00
builtin-bench.c perf tools changes for v6.6: 2023-09-09 20:06:17 -07:00
builtin-buildid-cache.c
builtin-buildid-list.c
builtin-c2c.c
builtin-config.c
builtin-daemon.c perf daemon: Fix file leak in daemon_session__control 2024-12-10 20:26:11 +08:00
builtin-data.c
builtin-diff.c perf diff: Replaces some ',' as separator with the more usual ';' 2023-07-20 11:43:45 -03:00
builtin-evlist.c
builtin-ftrace.c perf ftrace latency: Fix unit on histogram first entry when using --use-nsec 2024-12-10 20:44:56 +08:00
builtin-help.c
builtin-inject.c perf inject: Fix leader sampling inserting additional samples 2024-12-10 20:41:55 +08:00
builtin-kallsyms.c perf symbol: Remove now unused symbol_conf.sort_by_name 2023-06-23 21:48:49 -07:00
builtin-kmem.c libsubcmd: Don't free the usage string 2024-12-10 20:42:41 +08:00
builtin-kvm.c libsubcmd: Don't free the usage string 2024-12-10 20:42:41 +08:00
builtin-kwork.c libsubcmd: Don't free the usage string 2024-12-10 20:42:41 +08:00
builtin-list.c perf list: Fix topic and pmu_name argument order 2024-12-10 20:44:57 +08:00
builtin-lock.c perf lock: Fix parse_lock_type which only retrieve one lock flag 2025-02-10 01:59:56 +08:00
builtin-mem.c libsubcmd: Don't free the usage string 2024-12-10 20:42:41 +08:00
builtin-probe.c
builtin-record.c perf record: Fix incorrect --user-regs comments 2025-06-20 14:39:55 +08:00
builtin-report.c perf report: Fix misleading help message about --demangle 2025-02-10 01:59:56 +08:00
builtin-sched.c libsubcmd: Don't free the usage string 2024-12-10 20:42:41 +08:00
builtin-script.c perf script: Show also errors for --insn-trace option 2024-12-10 20:29:03 +08:00
builtin-stat.c perf stat: Fix affinity memory leaks on error path 2024-12-10 20:44:55 +08:00
builtin-timechart.c
builtin-top.c perf top: Don't complain about lack of vmlinux when not resolving some kernel samples 2025-02-10 01:59:56 +08:00
builtin-trace.c perf trace: Always print return value for syscalls returning a pid 2025-06-20 14:39:56 +08:00
builtin-version.c
builtin.h
check-headers.sh tools headers UAPI: Copy seccomp.h to be able to build 'perf bench' in older systems 2023-09-13 08:48:48 -03:00
command-list.txt
design.txt
perf-archive.sh
perf-completion.sh
perf-iostat.sh
perf-read-vdso.c
perf-sys.h
perf.c perf parse-events: Remove BPF event support 2023-08-15 16:41:48 -03:00
perf.h