History

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 ]

Tim Abbott committed 17 years ago

Commit 31b6e761 parent 41ede231 file · +3 −3Browse files

Showing the changes to scripts (1 of 1 file). Show all

Unified · Split

scripts/recordmcount.pl+3−3
@@ -26,7 +26,7 @@ · 25 unmodified lines
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 @@ · 6 unmodified lines
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 @@ · 5 unmodified lines
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)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t