scripts/recordmcount.c: account for .softirqentry.text
PATCH v2 1/1 scripts/recordmcount.c: account for .softirqentry.text
Commit "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.
---
Changes from v1:
- updated recordmcount.pl as well
--- scripts/recordmcount.c | 1 + scripts/recordmcount.pl | 1 + 2 files changed, 2 insertions(+)
scripts/recordmcount.c +1 -0
@@ -363,6 +363,7 @@ is_mcounted_section_name(char const *const txtname)strcmp (".sched.text" , txtname) ==0 ||strcmp (".spinlock.text" , txtname) ==0 ||strcmp (".irqentry.text" , txtname) ==0 || +strcmp (".softirqentry.text" , txtname) ==0 ||strcmp (".kprobes.text" , txtname) ==0 ||strcmp (".text.unlikely" , txtname) ==0 ; }
scripts/recordmcount.pl +1 -0
@@ -134,6 +134,7 @@ my %text_sections = ( ".sched.text" => 1, ".spinlock.text" => 1, ".irqentry.text" => 1, + ".softirqentry.text" => 1, ".kprobes.text" => 1, ".text.unlikely" => 1, );
Signature · 1 line
2.8.0.rc3.226.g39d4020
Quoted 5 lines · Dmitry Vyukov
Commit "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 toscripts/recordmcount.candscripts/recordmcount.pl.
Quoted 7 lines
Fixes be7635e7287e ("arch, ftrace: for KASAN put hard/soft IRQ entries into separate sections")Cc [email protected] # v4.6+Signed-off-by Dmitry Vyukov <[email protected]>Acked-by Steve Rostedt <[email protected]>---
Changes from v1:
- updated recordmcount.pl as well
Andrew,
Steven acked this, but can't take to his tree at the moment. Can you please take this to mm?
Quoted 32 lines
--- scripts/recordmcount.c | 1 + scripts/recordmcount.pl | 1 + 2 files changed, 2 insertions(+)scripts/recordmcount.c +1
-0@@ -363,6 +363,7 @@ is_mcounted_section_name(char const *const txtname)strcmp (".sched.text" , txtname) ==0 ||strcmp (".spinlock.text" , txtname) ==0 ||strcmp (".irqentry.text" , txtname) ==0 || +strcmp (".softirqentry.text" , txtname) ==0 ||strcmp (".kprobes.text" , txtname) ==0 ||strcmp (".text.unlikely" , txtname) ==0 ; }scripts/recordmcount.pl +1
-1@@ -134,6 +134,7 @@ my %text_sections = ( ".sched.text" => 1, ".spinlock.text" => 1, ".irqentry.text" => 1, + ".softirqentry.text" => 1, ".kprobes.text" => 1, ".text.unlikely" => 1, ); --2.8.0.rc3.226.g39d4020