aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorSam Lunt <[email protected]>2020-01-31 18:11:23 +0000
committerArnaldo Carvalho de Melo <[email protected]>2020-04-03 13:03:44 +0000
commitb9c9ce4e598e012ca7c1813fae2f4d02395807de (patch)
tree20227fbcb18ce52fe33e139b74763c2e25e5caf6 /tools/perf/util/scripting-engines/trace-event-python.c
parentperf script: Fix invalid read of directory entry after closedir() (diff)
downloadkernel-b9c9ce4e598e012ca7c1813fae2f4d02395807de.tar.gz
kernel-b9c9ce4e598e012ca7c1813fae2f4d02395807de.zip
perf tools: Support Python 3.8+ in Makefile
Python 3.8 changed the output of 'python-config --ldflags' to no longer include the '-lpythonX.Y' flag (this apparently fixed an issue loading modules with a statically linked Python executable). The libpython feature check in linux/build/feature fails if the Python library is not included in FEATURE_CHECK_LDFLAGS-libpython variable. This adds a check in the Makefile to determine if PYTHON_CONFIG accepts the '--embed' flag and passes that flag alongside '--ldflags' if so. tools/perf is the only place the libpython feature check is used. Signed-off-by: Sam Lunt <[email protected]> Tested-by: He Zhe <[email protected]> Link: http://lore.kernel.org/lkml/[email protected] Acked-by: Jiri Olsa <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: Mark Rutland <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: [email protected] Cc: [email protected] Link: http://lore.kernel.org/lkml/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions