2012-02-12 18:45:24 +08:00
|
|
|
#
|
2012-07-18 00:20:59 +08:00
|
|
|
# List of files needed by perf python extension
|
2012-02-12 18:45:24 +08:00
|
|
|
#
|
|
|
|
# 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
|
tools perf: Move from sane_ctype.h obtained from git to the Linux's original
We got the sane_ctype.h headers from git and kept using it so far, but
since that code originally came from the kernel sources to the git
sources, perhaps its better to just use the one in the kernel, so that
we can leverage tools/perf/check_headers.sh to be notified when our copy
gets out of sync, i.e. when fixes or goodies are added to the code we've
copied.
This will help with things like tools/lib/string.c where we want to have
more things in common with the kernel, such as strim(), skip_spaces(),
etc so as to go on removing the things that we have in tools/perf/util/
and instead using the code in the kernel, indirectly and removing things
like EXPORT_SYMBOL(), etc, getting notified when fixes and improvements
are made to the original code.
Hopefully this also should help with reducing the difference of code
hosted in tools/ to the one in the kernel proper.
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: https://lkml.kernel.org/n/tip-7k9868l713wqtgo01xxygn12@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2019-06-26 04:27:31 +08:00
|
|
|
../lib/ctype.c
|
2019-08-07 22:44:14 +08:00
|
|
|
util/cap.c
|
2012-02-12 18:45:24 +08:00
|
|
|
util/evlist.c
|
|
|
|
util/evsel.c
|
2019-09-25 02:41:51 +08:00
|
|
|
util/perf_event_attr_fprintf.c
|
2012-02-12 18:45:24 +08:00
|
|
|
util/cpumap.c
|
2017-11-30 02:43:46 +08:00
|
|
|
util/memswap.c
|
2017-10-06 21:31:47 +08:00
|
|
|
util/mmap.c
|
2017-07-06 09:48:11 +08:00
|
|
|
util/namespaces.c
|
2016-01-08 23:33:37 +08:00
|
|
|
../lib/bitmap.c
|
2016-01-08 21:46:52 +08:00
|
|
|
../lib/find_bit.c
|
2015-07-10 03:27:25 +08:00
|
|
|
../lib/hweight.c
|
2019-06-26 23:13:13 +08:00
|
|
|
../lib/string.c
|
2016-07-08 02:42:33 +08:00
|
|
|
../lib/vsprintf.c
|
2012-02-12 18:45:24 +08:00
|
|
|
util/thread_map.c
|
|
|
|
util/util.c
|
|
|
|
util/cgroup.c
|
perf tools: Add missing object file to the python binding linkage list
In ac12f6764c50 ("perf tools: Implement branch_type event parameter") we
started using the parse_branch_str() function from one of the files used
in the python binding, which caused this entry in 'perf test' to fail:
# perf test -v python
16: Try 'import perf' in python, checking link problems :
--- start ---
test child forked, pid 16667
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: /tmp/build/perf/python/perf.so: undefined symbol:
parse_branch_str
test child finished with -1
---- end ----
Try 'import perf' in python, checking link problems: FAILED!
#
I must've commited some mistake when running 'perf test' to send the
pull request for the perf-core-for-mingo-20161024 tag, to have let this
regression to pass, sigh.
Just add tools/perf/util/parse-branch-options.c and switch from using
ui__warning(), that is not available in the python binding, use
pr_warning() instead, which is good enough for this case.
Now:
# perf test python
16: Try 'import perf' in python, checking link problems : Ok
#
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Cc: Andi Kleen <ak@linux.intel.com>
Fixes: ac12f6764c50 ("perf tools: Implement branch_type event parameter")
Link: http://lkml.kernel.org/n/tip-9kn1ct1cx9ppwqlmzl6z0xhs@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2016-10-27 05:02:35 +08:00
|
|
|
util/parse-branch-options.c
|
perf tools: Add missing files to build the python binding
Changeset 0f6a3015:
"perf tools: Support user regs and stack in sample parsing"
uses hweight_long in evsel.c, so we need to drag util/hweight.c
to the python binding.
Ditto for ee8dd3c:
"perf tools: Change strlist to use the new rblist"
where we need to add util/rblist.c.
Now twatch.py works again:
# export PYTHONPATH=~acme/git/build/perf/python/
# ~acme/git/linux/tools/perf/python/twatch.py
cpu: 4, pid: 23639, tid: 23639 { type: fork, pid: 30659, ppid: 23639, tid: 30659, ptid: 23639, time: 36287872076780}
cpu: 5, pid: 30659, tid: 30659 { type: comm, pid: 30659, tid: 30659, comm: ls }
cpu: 5, pid: 30659, tid: 30659 { type: exit, pid: 30659, ppid: 30659, tid: 30659, ptid: 30659, time: 36287873681539}
cpu: 4, pid: 23639, tid: 23639 { type: fork, pid: 30660, ppid: 23639, tid: 30660, ptid: 23639, time: 36291720420480}
cpu: 5, pid: 30659, tid: 30659 { type: exit, pid: 30659, ppid: 30659, tid: 30659, ptid: 30659, time: 36287873685714}
cpu: 5, pid: 30660, tid: 30660 { type: comm, pid: 30660, tid: 30660, comm: git }
^C
KeyboardInterrupt
Reported-by: Jérôme Carretero <cJ-ko@zougloub.eu>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Namhyung Kim <namhyung@gmail.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/n/tip-gmq82zp5blin9aml9g5tzokr@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2012-08-15 01:17:30 +08:00
|
|
|
util/rblist.c
|
2015-08-07 18:51:03 +08:00
|
|
|
util/counts.c
|
2017-04-18 03:23:22 +08:00
|
|
|
util/print_binary.c
|
2012-02-09 00:32:52 +08:00
|
|
|
util/strlist.c
|
2013-12-03 21:09:23 +08:00
|
|
|
util/trace-event.c
|
2015-07-10 03:23:57 +08:00
|
|
|
../lib/rbtree.c
|
2015-06-26 17:29:07 +08:00
|
|
|
util/string.c
|
2016-04-15 02:54:36 +08:00
|
|
|
util/symbol_fprintf.c
|
2017-04-20 03:05:56 +08:00
|
|
|
util/units.c
|
2019-11-21 08:15:12 +08:00
|
|
|
util/affinity.c
|
2020-04-03 20:29:52 +08:00
|
|
|
util/rwsem.c
|