mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-11-06 09:33:20 +01:00
Architectures can detect availability of extra registers at runtime so
use this more complete set for unwinding. This will include the VG
register on arm64 in a later commit.
If the function isn't implemented then PERF_REGS_MASK is returned and
there is no change.
Committer notes:
Added util/perf_regs.c to tools/perf/util/python-ext-sources so that
'perf test python' passes, i.e. the perf python binding has all the
symbols it needs, addressing:
$ perf test -v python
19: 'import perf' in python :
--- start ---
test child forked, pid 2037817
python usage test: "echo "import sys ; sys.path.append('/tmp/build/perf/python'); import perf" | '/usr/bin/python3' "
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: /tmp/build/perf/python/perf.cpython-310-x86_64-linux-gnu.so: undefined symbol: arch__user_reg_mask
test child finished with -1
---- end ----
'import perf' in python: FAILED!
$
Reviewed-by: Leo Yan <[email protected]>
Signed-off-by: James Clark <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Cc: German Gomez <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: John Garry <[email protected]>
Cc: Mark Brown <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: Mathieu Poirier <[email protected]>
Cc: Mike Leach <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Will Deacon <[email protected]>
Cc: [email protected]
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
44 lines
773 B
Plaintext
44 lines
773 B
Plaintext
#
|
|
# List of files needed by perf python extension
|
|
#
|
|
# Each source file must be placed on its own line so that it can be
|
|
# processed by Makefile and util/setup.py accordingly.
|
|
#
|
|
|
|
util/python.c
|
|
../lib/ctype.c
|
|
util/cap.c
|
|
util/evlist.c
|
|
util/evsel.c
|
|
util/evsel_fprintf.c
|
|
util/perf_event_attr_fprintf.c
|
|
util/cpumap.c
|
|
util/memswap.c
|
|
util/mmap.c
|
|
util/namespaces.c
|
|
../lib/bitmap.c
|
|
../lib/find_bit.c
|
|
../lib/list_sort.c
|
|
../lib/hweight.c
|
|
../lib/string.c
|
|
../lib/vsprintf.c
|
|
util/thread_map.c
|
|
util/util.c
|
|
util/cgroup.c
|
|
util/parse-branch-options.c
|
|
util/rblist.c
|
|
util/counts.c
|
|
util/print_binary.c
|
|
util/strlist.c
|
|
util/trace-event.c
|
|
../lib/rbtree.c
|
|
util/string.c
|
|
util/symbol_fprintf.c
|
|
util/units.c
|
|
util/affinity.c
|
|
util/rwsem.c
|
|
util/hashmap.c
|
|
util/perf_regs.c
|
|
util/pmu-hybrid.c
|
|
util/fncache.c
|