Skip to content

Commit e436fd6

Browse files
dvyukovtorvalds
authored andcommitted
scripts/recordmcount.c: account for .softirqentry.text
be7635e ("arch, ftrace: for KASAN put hard/soft IRQ entries into separate sections") added .softirqentry.text section, but it was not added to recordmcount. So functions in the section are untracable. Add the section to scripts/recordmcount.c and scripts/recordmcount.pl. Fixes: be7635e ("arch, ftrace: for KASAN put hard/soft IRQ entries into separate sections") Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Dmitry Vyukov <[email protected]> Acked-by: Steve Rostedt <[email protected]> Cc: <[email protected]> [4.6+] Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 2481366 commit e436fd6

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

scripts/recordmcount.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,7 @@ is_mcounted_section_name(char const *const txtname)
363363
strcmp(".sched.text", txtname) == 0 ||
364364
strcmp(".spinlock.text", txtname) == 0 ||
365365
strcmp(".irqentry.text", txtname) == 0 ||
366+
strcmp(".softirqentry.text", txtname) == 0 ||
366367
strcmp(".kprobes.text", txtname) == 0 ||
367368
strcmp(".text.unlikely", txtname) == 0;
368369
}

scripts/recordmcount.pl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@
134134
".sched.text" => 1,
135135
".spinlock.text" => 1,
136136
".irqentry.text" => 1,
137+
".softirqentry.text" => 1,
137138
".kprobes.text" => 1,
138139
".text.unlikely" => 1,
139140
);

0 commit comments

Comments
 (0)