ftrace: allow NULL pointers in mcount_loc
authorSteven Rostedt <srostedt@redhat.com>
Sat, 15 Nov 2008 00:21:19 +0000 (16:21 -0800)
committerIngo Molnar <mingo@elte.hu>
Sun, 16 Nov 2008 06:36:42 +0000 (07:36 +0100)
commit20e5227e9f55ae1969934821ccbf581563785bbe
treecac23dc66e00c7667f5c0e7adc72a76bd1041816
parent31e889098a80ceb3e9e3c555d522b2686a6663c6
ftrace: allow NULL pointers in mcount_loc

Impact: make ftrace_convert_nops() more permissive

Due to the way different architecture linkers combine the data sections
of the mcount_loc (the section that lists all the locations that
call mcount), there may be zeros added in that section. This is usually
due to strange alignments that the linker performs, that pads in zeros.

This patch makes the conversion code to nops skip any pointer in
the mcount_loc section that is NULL.

Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/trace/ftrace.c
This page took 0.025784 seconds and 5 git commands to generate.