Skip to contentSkip to conversation

selftests/ftrace: Add CONFIG_SAMPLE_FTRACE_DIRECT=m kconfig

PATCH In review Xiao Yang 3 participants 4 messages Apr 5, 2020 – Apr 30, 2020

Subsystems (2)
lore
Share & tools
lore

Xiao Yang

author
#0 lore raw

PATCH 1/1 selftests/ftrace: Add CONFIG_SAMPLE_FTRACE_DIRECT=m kconfig

ftrace-direct.tc and kprobe-direct.tc require CONFIG_SAMPLE_FTRACE_DIRECT=m so add it to config file which is used by merge_config.sh.

---
 tools/testing/selftests/ftrace/config | 1 +
 1 file changed, 1 insertion(+)
tools/testing/selftests/ftrace/config +1 -0
index c2c8de4fafff..e59d985eeff0 100644
@@ -11,5 +11,6 @@ CONFIG_PREEMPTIRQ_DELAY_TEST=m
 CONFIG_MODULES=y
 CONFIG_MODULE_UNLOAD=y
 CONFIG_SAMPLES=y
+CONFIG_SAMPLE_FTRACE_DIRECT=m
 CONFIG_SAMPLE_TRACE_PRINTK=m
 CONFIG_KALLSYMS_ALL=y
Signature · 1 line
2.25.1
maintainer Acked-by on v1 1/1
#1 lore raw
Quoted 2 lines · On Sun, 5 Apr 2020 09:44:57 +0800 Xiao Yang <[email protected]> wrote:

ftrace-direct.tc and kprobe-direct.tc require CONFIG_SAMPLE_FTRACE_DIRECT=m so add it to config file which is used by merge_config.sh.

Shuah,

Care to take this in your tree?

-- Steve

Quoted 17 lines
---
 tools/testing/selftests/ftrace/config | 1 +
 1 file changed, 1 insertion(+)
tools/testing/selftests/ftrace/config +1 -0
index c2c8de4fafff..e59d985eeff0 100644
@@ -11,5 +11,6 @@ CONFIG_PREEMPTIRQ_DELAY_TEST=m
 CONFIG_MODULES=y
 CONFIG_MODULE_UNLOAD=y
 CONFIG_SAMPLES=y
+CONFIG_SAMPLE_FTRACE_DIRECT=m
 CONFIG_SAMPLE_TRACE_PRINTK=m
 CONFIG_KALLSYMS_ALL=y
maintainer
#2 lore raw
Quoted 7 lines · Steven Rostedt
Quoted 2 lines · On Sun, 5 Apr 2020 09:44:57 +0800 Xiao Yang <[email protected]> wrote:

ftrace-direct.tc and kprobe-direct.tc require CONFIG_SAMPLE_FTRACE_DIRECT=m so add it to config file which is used by merge_config.sh.

Quoted 6 lines

Shuah,

Care to take this in your tree?

Yes. I will apply this for next rc.

thanks,
-- Shuah

maintainer
#3 lore raw

Hi Xiao Yang,

Quoted 8 lines · Shuah Khan
Quoted 7 lines · Steven Rostedt
Quoted 2 lines · On Sun, 5 Apr 2020 09:44:57 +0800 Xiao Yang <[email protected]> wrote:

ftrace-direct.tc and kprobe-direct.tc require CONFIG_SAMPLE_FTRACE_DIRECT=m so add it to config file which is used by merge_config.sh.

Quoted 7 lines
Quoted 6 lines

Shuah,

Care to take this in your tree?

I took this patch and sending it in my pull request. Please make sure your commit logs don't wrap in your future patches. It makes it easier to read commit logs.

"Without CONFIG_DYNAMIC_FTRACE, some tests get failure because required
filter
files(set_ftrace_filter/available_filter_functions/stack_trace_filter)
are missing. So implement check_filter_file() and make all related
tests
check required filter files by it.

BTW: set_ftrace_filter and available_filter_functions are
introduced together
so just check either of them."

thanks,
-- Shuah