Skip to contentSkip to conversation

bpf: selftests: Specify CONFIG_DYNAMIC_FTRACE in the testing config

PATCH In review Martin KaFai Lau 2 participants 2 messages Apr 3, 2021

Subsystems (5)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bpf: selftests: Specify CONFIG_DYNAMIC_FTRACE in the testing config

The tracing test and the recent kfunc call test require CONFIG_DYNAMIC_FTRACE. This patch adds it to the config file.

---
 tools/testing/selftests/bpf/config | 1 +
 1 file changed, 1 insertion(+)
tools/testing/selftests/bpf/config +1 -0
index 37e1f303fc11..528af74e0c8f 100644
@@ -44,3 +44,4 @@ CONFIG_SECURITYFS=y
 CONFIG_IMA_WRITE_POLICY=y
 CONFIG_IMA_READ_POLICY=y
 CONFIG_BLK_DEV_LOOP=y
+CONFIG_DYNAMIC_FTRACE=y
Signature · 1 line
2.30.2
#1 lore raw
Quoted 14 lines · Martin KaFai Lau

The tracing test and the recent kfunc call test require CONFIG_DYNAMIC_FTRACE. This patch adds it to the config file.

---
 tools/testing/selftests/bpf/config | 1 +
 1 file changed, 1 insertion(+)
tools/testing/selftests/bpf/config +0 -0
index 37e1f303fc11..528af74e0c8f 100644

tools/testing/selftests/bpf/config CONFIG_SECURITYFS=y · line 47

Quoted 4 lines
tools/testing/selftests/bpf/config +1 -0
@@ -44,3 +44,4 @@ CONFIG_SECURITYFS=y
 CONFIG_IMA_WRITE_POLICY=y
 CONFIG_IMA_READ_POLICY=y
 CONFIG_BLK_DEV_LOOP=y
+CONFIG_DYNAMIC_FTRACE=y

I've also added CONFIG_FUNCTION_TRACER=y, which seems to be a dependency of DYNAMIC_FTRACE. Applied to bpf-next, thanks!

Quoted 3 lines

--
2.30.2