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
|
|
|
|
util/ctype.c
|
|
|
|
util/evlist.c
|
|
|
|
util/evsel.c
|
|
|
|
util/cpumap.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
|
tools: Introduce str_error_r()
The tools so far have been using the strerror_r() GNU variant, that
returns a string, be it the buffer passed or something else.
But that, besides being tricky in cases where we expect that the
function using strerror_r() returns the error formatted in a provided
buffer (we have to check if it returned something else and copy that
instead), breaks the build on systems not using glibc, like Alpine
Linux, where musl libc is used.
So, introduce yet another wrapper, str_error_r(), that has the GNU
interface, but uses the portable XSI variant of strerror_r(), so that
users rest asured that the provided buffer is used and it is what is
returned.
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>
Link: http://lkml.kernel.org/n/tip-d4t42fnf48ytlk8rjxs822tf@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2016-07-06 22:56:20 +08:00
|
|
|
../lib/str_error_r.c
|
2012-02-12 18:45:24 +08:00
|
|
|
util/thread_map.c
|
|
|
|
util/util.c
|
|
|
|
util/xyarray.c
|
|
|
|
util/cgroup.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
|
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
|