Archived
14
0
Fork 0
This repository has been archived on 2022-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
linux-2.6/tools/perf
Ian Munsie b38aa89600 perf makefile: Allow strong and weak functions in LIB_OBJS
When we build perf we place all of the .o files from the library files
(util, arch/x/util, etc) into libperf.a which is then linked into perf.

The problem is that the linker will by default only consider .o files
within the .a archive if they are necessary to satisfy an unresolved
symbol. As weak functions are not unresolved, it will not consider a .o
file from the archive containing the strong versions of weak functions
unless it requires it for another reason.

This patch adds the --whole-archive flags to the linker when passing in
the libperf.a file to ensure that it will consider every .o file in the
archive, not just what it believes that it needs. The end result is that
weak functions can now be overridden by strong variants of them in the
libperf.a file.

Cc: "tom.leiming" <tom.leiming@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <1290991642-sup-5890@au1.ibm.com>
Signed-off-by: Ian Munsie <imunsie@au1.ibm.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2010-12-07 11:58:50 -02:00
..
arch Merge branch 'perf-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip 2010-08-06 09:30:52 -07:00
bench perf bench: Add feature that measures the performance of the arch/x86/lib/memcpy_64.S memcpy routines via 'perf bench mem' 2010-11-26 08:15:57 +01:00
Documentation perf tools: Ask for ID PERF_SAMPLE_ info on all PERF_RECORD_ events 2010-12-04 23:08:40 -02:00
scripts perf: Rename 'perf trace' to 'perf script' 2010-11-16 19:37:44 +01:00
util perf tools: Catch a few uncheck calloc/malloc's 2010-12-06 12:52:35 -02:00
.gitignore
builtin-annotate.c perf session: Parse sample earlier 2010-12-04 23:05:19 -02:00
builtin-bench.c
builtin-buildid-cache.c
builtin-buildid-list.c
builtin-diff.c perf session: Parse sample earlier 2010-12-04 23:05:19 -02:00
builtin-help.c
builtin-inject.c perf session: Parse sample earlier 2010-12-04 23:05:19 -02:00
builtin-kmem.c perf tools: Catch a few uncheck calloc/malloc's 2010-12-06 12:52:35 -02:00
builtin-kvm.c
builtin-list.c
builtin-lock.c perf tools: Catch a few uncheck calloc/malloc's 2010-12-06 12:52:35 -02:00
builtin-probe.c perf probe: Add basic module support 2010-10-21 16:11:44 -02:00
builtin-record.c perf tools: Ask for ID PERF_SAMPLE_ info on all PERF_RECORD_ events 2010-12-04 23:08:40 -02:00
builtin-report.c perf session: Parse sample earlier 2010-12-04 23:05:19 -02:00
builtin-sched.c perf tools: Catch a few uncheck calloc/malloc's 2010-12-06 12:52:35 -02:00
builtin-script.c perf script: Fix compiler warning in builtin_script.c:is_top_script() 2010-12-06 12:44:27 -02:00
builtin-stat.c perf stat: Add csv-style output 2010-12-01 19:47:41 -02:00
builtin-test.c
builtin-timechart.c perf tools: Catch a few uncheck calloc/malloc's 2010-12-06 12:52:35 -02:00
builtin-top.c perf tools: Ask for ID PERF_SAMPLE_ info on all PERF_RECORD_ events 2010-12-04 23:08:40 -02:00
builtin.h perf: Rename 'perf trace' to 'perf script' 2010-11-16 19:37:44 +01:00
command-list.txt Merge branch 'perf/rename' into perf/core 2010-12-01 09:22:19 +01:00
CREDITS
design.txt
feature-tests.mak perf tools: Remove hardcoded include paths for elfutils 2010-11-19 16:38:04 -02:00
Makefile perf makefile: Allow strong and weak functions in LIB_OBJS 2010-12-07 11:58:50 -02:00
MANIFEST perf packaging: add memcpy to perf MANIFEST 2010-11-30 23:00:10 -02:00
perf-archive.sh
perf.c perf: Rename 'perf trace' to 'perf script' 2010-11-16 19:37:44 +01:00
perf.h perf, MIPS: Support cross compiling of tools/perf for MIPS 2010-10-12 13:34:37 +02:00