[PATCH] perf tools: Add missing util/affinity.c to util/python-ext-sources

From: Xiao Yang
Date: Tue Nov 12 2019 - 06:23:19 EST


util/evlist.c added into perf python extension module uses affinity
functions since commit 54b16df58e65 so we should also add util/affinity.c
into the extension module to fix the following issue:
-----------------------------------------------
./perf test -v python
18: 'import perf' in python :
--- start ---
test child forked, pid 15979
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: python/perf.so: undefined symbol: affinity__cleanup
test child finished with -1
---- end ----
'import perf' in python: FAILED!
-----------------------------------------------

Reported-by: kernel test robot <lkp@xxxxxxxxx>
Signed-off-by: Xiao Yang <ice_yangxiao@xxxxxxx>
---
tools/perf/util/python-ext-sources | 1 +
1 file changed, 1 insertion(+)

diff --git a/tools/perf/util/python-ext-sources b/tools/perf/util/python-ext-sources
index 9af183860fbd..521aaa9928cf 100644
--- a/tools/perf/util/python-ext-sources
+++ b/tools/perf/util/python-ext-sources
@@ -7,6 +7,7 @@

util/python.c
../lib/ctype.c
+util/affinity.c
util/cap.c
util/evlist.c
util/evsel.c
--
2.21.0