Skip to content

Commit

Permalink
ftrace: Remove duplicate code for 64 and 32 bit in recordmcount.c
Browse files Browse the repository at this point in the history
The elf reader for recordmcount.c had duplicate functions for both
32 bit and 64 bit elf handling. This was due to the need of using
the 32 and 64 bit elf structures.

This patch consolidates the two by using macros to define the 32
and 64 bit names in a recordmcount.h file, and then by just defining
a RECORD_MCOUNT_64 macro and including recordmcount.h twice we
create the funtions for both the 32 bit version as well as the
64 bit version using one code source.

Cc: John Reiser <[email protected]>
Signed-off-by: Steven Rostedt <[email protected]>
  • Loading branch information
Steven Rostedt authored and rostedt committed Oct 14, 2010
1 parent 72441cb commit c28d507
Show file tree
Hide file tree
Showing 2 changed files with 370 additions and 544 deletions.
Loading

0 comments on commit c28d507

Please sign in to comment.