diff options
Diffstat (limited to 'scripts/recordmcount.c')
-rw-r--r-- | scripts/recordmcount.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/recordmcount.c b/scripts/recordmcount.c index 16e086dcc567..69a769904da7 100644 --- a/scripts/recordmcount.c +++ b/scripts/recordmcount.c @@ -420,7 +420,8 @@ is_mcounted_section_name(char const *const txtname) strcmp(".softirqentry.text", txtname) == 0 || strcmp(".kprobes.text", txtname) == 0 || strcmp(".cpuidle.text", txtname) == 0 || - strcmp(".text.unlikely", txtname) == 0; + (strncmp(".text.", txtname, 6) == 0 && + strcmp(".text..ftrace", txtname) != 0); } /* 32 bit and 64 bit are very similar */ |