Files
rockchip-kernel/scripts
AKASHI Takahiro 79f5851bc3 UPSTREAM: ftrace: Add arm64 support to recordmcount
Recordmcount utility under scripts is run, after compiling each object,
to find out all the locations of calling _mcount() and put them into
specific seciton named __mcount_loc.
Then linker collects all such information into a table in the kernel image
(between __start_mcount_loc and __stop_mcount_loc) for later use by ftrace.

This patch adds arm64 specific definitions to identify such locations.
There are two types of implementation, C and Perl. On arm64, only C version
is used to build the kernel now that CONFIG_HAVE_C_RECORDMCOUNT is on.
But Perl version is also maintained.

This patch also contains a workaround just in case where a header file,
elf.h, on host machine doesn't have definitions of EM_AARCH64 nor
R_AARCH64_ABS64. Without them, compiling C version of recordmcount will
fail.

Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
(cherry picked from commit af64d2aa87)
Signed-off-by: David Riley <davidriley@chromium.org>

Change-Id: I29f5d20de6fe3e79eadf2ba4da879203f87a9093
Reviewed-on: https://chromium-review.googlesource.com/206233
Reviewed-by: Olof Johansson <olofj@chromium.org>
Tested-by: David Riley <davidriley@chromium.org>
2014-07-04 04:16:48 +00:00
..
2011-03-31 11:26:23 -03:00
2011-05-19 15:59:38 -07:00
2011-08-31 16:12:17 +02:00
2012-10-03 09:03:24 +02:00
2012-06-27 12:44:29 -07:00
2010-03-23 12:26:38 +01:00
2013-04-08 11:47:41 +02:00
2012-07-20 10:36:05 +02:00
2009-06-09 22:37:54 +02:00