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>
This commit is contained in:
Родитель
10da37a645
Коммит
1274a9c2e9
|
@ -206,7 +206,8 @@ static uint32_t (*w2)(uint16_t);
|
||||||
static int
|
static int
|
||||||
is_mcounted_section_name(char const *const txtname)
|
is_mcounted_section_name(char const *const txtname)
|
||||||
{
|
{
|
||||||
return 0 == strcmp(".text", txtname) ||
|
return 0 == strcmp(".text", txtname) ||
|
||||||
|
0 == strcmp(".ref.text", txtname) ||
|
||||||
0 == strcmp(".sched.text", txtname) ||
|
0 == strcmp(".sched.text", txtname) ||
|
||||||
0 == strcmp(".spinlock.text", txtname) ||
|
0 == strcmp(".spinlock.text", txtname) ||
|
||||||
0 == strcmp(".irqentry.text", txtname) ||
|
0 == strcmp(".irqentry.text", txtname) ||
|
||||||
|
|
|
@ -130,6 +130,7 @@ if ($inputfile =~ m,kernel/trace/ftrace\.o$,) {
|
||||||
# Acceptable sections to record.
|
# Acceptable sections to record.
|
||||||
my %text_sections = (
|
my %text_sections = (
|
||||||
".text" => 1,
|
".text" => 1,
|
||||||
|
".ref.text" => 1,
|
||||||
".sched.text" => 1,
|
".sched.text" => 1,
|
||||||
".spinlock.text" => 1,
|
".spinlock.text" => 1,
|
||||||
".irqentry.text" => 1,
|
".irqentry.text" => 1,
|
||||||
|
|
Загрузка…
Ссылка в новой задаче