Skip to content

Commit

Permalink
ftrace: use .sched.text, not .text.sched in recordmcount.pl
Browse files Browse the repository at this point in the history
The only references in the kernel to the .text.sched section are in
recordmcount.pl.  Since the code it has is intended to be example code
it should refer to real kernel sections.  So change it to .sched.text
instead.

[ Impact: consistency in comments ]

Signed-off-by: Tim Abbott <tabbott@mit.edu>
LKML-Reference: <1241136371-10768-1-git-send-email-tabbott@mit.edu>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
  • Loading branch information
Tim Abbott authored and Steven Rostedt committed May 5, 2009
1 parent 41ede23 commit 31b6e76
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/recordmcount.pl
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
# which will also be the location of that section after final link.
# e.g.
#
# .section ".text.sched"
# .section ".sched.text", "ax"
# .globl my_func
# my_func:
# [...]
Expand All @@ -39,7 +39,7 @@
# [...]
#
# Both relocation offsets for the mcounts in the above example will be
# offset from .text.sched. If we make another file called tmp.s with:
# offset from .sched.text. If we make another file called tmp.s with:
#
# .section __mcount_loc
# .quad my_func + 0x5
Expand All @@ -51,7 +51,7 @@
# But this gets hard if my_func is not globl (a static function).
# In such a case we have:
#
# .section ".text.sched"
# .section ".sched.text", "ax"
# my_func:
# [...]
# call mcount (offset: 0x5)
Expand Down

0 comments on commit 31b6e76

Please sign in to comment.