OrangePi_CM5/tools/perf
James Clark 5a768c9770 perf python: Fix build when PYTHON_CONFIG is user supplied
commit bc9e7fe313d5e56d4d5f34bcc04d1165f94f86fb upstream.

The previous change to Python autodetection had a small mistake where
the auto value was used to determine the Python binary, rather than the
user supplied value. The Python binary is only used for one part of the
build process, rather than the final linking, so it was producing
correct builds in most scenarios, especially when the auto detected
value matched what the user wanted, or the system only had a valid set
of Pythons.

Change it so that the Python binary path is derived from either the
PYTHON_CONFIG value or PYTHON value, depending on what is specified by
the user. This was the original intention.

This error was spotted in a build failure an odd cross compilation
environment after commit 4c41cb46a732fe82 ("perf python: Prefer
python3") was merged.

Fixes: 630af16eee495f58 ("perf tools: Use Python devtools for version autodetection rather than runtime")
Signed-off-by: James Clark <james.clark@arm.com>
Acked-by: Ian Rogers <irogers@google.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: James Clark <james.clark@arm.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: https://lore.kernel.org/r/20220728093946.1337642-1-james.clark@arm.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-08-31 17:15:24 +02:00
..
Documentation
…
arch perf symbol: Remove arch__symbols__fixup_end() 2022-05-09 09:05:09 +02:00
bench perf bench numa: Address compiler error on s390 2022-05-25 09:18:00 +02:00
examples/bpf
…
include/bpf
…
jvmti
…
pmu-events perf jevents: Fix event syntax error caused by ExtSel 2022-06-09 10:21:21 +02:00
python
…
scripts
…
tests perf tests: Remove bash construct from record+zstd_comp_decomp.sh 2021-11-26 10:39:13 +01:00
trace
…
ui perf hist: Fix memory leak of a perf_hpp_fmt 2021-12-08 09:03:20 +01:00
util perf probe: Fix an error handling path in 'parse_perf_probe_command()' 2022-08-25 11:38:02 +02:00
.gitignore
…
Build
…
CREDITS
…
MANIFEST
…
Makefile
…
Makefile.config perf python: Fix build when PYTHON_CONFIG is user supplied 2022-08-31 17:15:24 +02:00
Makefile.perf
…
builtin-annotate.c
…
builtin-bench.c
…
builtin-buildid-cache.c
…
builtin-buildid-list.c
…
builtin-c2c.c perf c2c: Fix sorting in percent_rmt_hitm_cmp() 2022-06-14 18:32:37 +02:00
builtin-config.c
…
builtin-data.c
…
builtin-diff.c
…
builtin-evlist.c
…
builtin-ftrace.c
…
builtin-help.c
…
builtin-inject.c perf inject: Fix itrace space allowed for new attributes 2021-12-17 10:14:41 +01:00
builtin-kallsyms.c
…
builtin-kmem.c
…
builtin-kvm.c
…
builtin-list.c
…
builtin-lock.c
…
builtin-mem.c
…
builtin-probe.c
…
builtin-record.c
…
builtin-report.c perf report: Set PERF_SAMPLE_DATA_SRC bit for Arm SPE event 2022-04-27 13:53:56 +02:00
builtin-sched.c
…
builtin-script.c perf script: Fix CPU filtering of a script's switch events 2022-01-05 12:40:34 +01:00
builtin-stat.c
…
builtin-timechart.c
…
builtin-top.c
…
builtin-trace.c
…
builtin-version.c
…
builtin.h
…
check-headers.sh x86/insn: Add a __ignore_sync_check__ marker 2022-07-25 11:26:11 +02:00
command-list.txt
…
design.txt
…
perf-archive.sh
…
perf-completion.sh
…
perf-read-vdso.c
…
perf-sys.h
…
perf-with-kcore.sh
…
perf.c perf tools: Fix perf's libperf_print callback 2022-04-13 21:01:07 +02:00
perf.h
…