Skip to content

Commit 31b6e76

Browse files
timabbottrostedt
authored andcommitted
ftrace: use .sched.text, not .text.sched in recordmcount.pl
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>
1 parent 41ede23 commit 31b6e76

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎scripts/recordmcount.pl‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
# which will also be the location of that section after final link.
2727
# e.g.
2828
#
29-
# .section ".text.sched"
29+
# .section ".sched.text", "ax"
3030
# .globl my_func
3131
# my_func:
3232
# [...]
@@ -39,7 +39,7 @@
3939
# [...]
4040
#
4141
# Both relocation offsets for the mcounts in the above example will be
42-
# offset from .text.sched. If we make another file called tmp.s with:
42+
# offset from .sched.text. If we make another file called tmp.s with:
4343
#
4444
# .section __mcount_loc
4545
# .quad my_func + 0x5
@@ -51,7 +51,7 @@
5151
# But this gets hard if my_func is not globl (a static function).
5252
# In such a case we have:
5353
#
54-
# .section ".text.sched"
54+
# .section ".sched.text", "ax"
5555
# my_func:
5656
# [...]
5757
# call mcount (offset: 0x5)

0 commit comments

Comments
 (0)