Skip to content

Commit 1274a9c

Browse files
Steven Rostedtrostedt
authored andcommitted
ftrace: Add .ref.text as one of the safe areas to trace
The section .ref.text will not go away unexpectedly and is safe to trace. Add it to the safe list of sections to allow tracing. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
1 parent 10da37a commit 1274a9c

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

‎scripts/recordmcount.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,8 @@ static uint32_t (*w2)(uint16_t);
206206
static int
207207
is_mcounted_section_name(char const *const txtname)
208208
{
209-
return 0 == strcmp(".text", txtname) ||
209+
return 0 == strcmp(".text", txtname) ||
210+
0 == strcmp(".ref.text", txtname) ||
210211
0 == strcmp(".sched.text", txtname) ||
211212
0 == strcmp(".spinlock.text", txtname) ||
212213
0 == strcmp(".irqentry.text", txtname) ||

‎scripts/recordmcount.pl‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@
130130
# Acceptable sections to record.
131131
my %text_sections = (
132132
".text" => 1,
133+
".ref.text" => 1,
133134
".sched.text" => 1,
134135
".spinlock.text" => 1,
135136
".irqentry.text" => 1,

0 commit comments

Comments
 (0)