From: Mamatha Inamdar <minam...@redhat.com>

redhat/configs: Update powerpc BPF configs

Description: redhat/configs: Update powerpc BPF configs
             BPF trampoline feature support needs 
DYNAMIC_FTRACE_WITH_DIRECT_CALLS.
             DYNAMIC_FTRACE_WITH_DIRECT_CALLS on powerpc is implemented with
             DYNAMIC_FTRACE_WITH_ARGS & DYNAMIC_FTRACE_WITH_CALL_OPS.
             DYNAMIC_FTRACE_WITH_CALL_OPS is based on out of line ftrace
             stubs support (CONFIG_PPC_FTRACE_OUT_OF_LINE), which in turn
             depends on ARCH_USING_PATCHABLE_FUNCITON_ENTRY. Some of the out
             of line ftrace stubs are preallocated with the config option
             CONFIG_PPC_FTRACE_OUT_OF_LINE_NUM_RESERVE. While this option is
             configurable, it defaults to 32768, preallocating as many out of
             line ftrace stubs at the start of .text section while the remaining
             stubs will be allocated at the end of .text section. To set up the
             out of line stubs for ftrace, CONFIG_ARCH_WANTS_PRE_LINK_VMLINUX
             is needed. Additionally, to leverage trampoline support with
             fprobe (fentry/fexit), the kernel needs to be built with
             RETHOOK support. Overall, the below config options are enabled
             for BPF trampoline support on powerpc:

Tested: make dist-configs

Signed-off-by: Mamatha Inamdar <minam...@redhat.com>

diff --git a/CONFIG_HAVE_RETHOOK b/CONFIG_HAVE_RETHOOK
new file mode 100644
index blahblah..blahblah 100644
--- /dev/null
+++ b/CONFIG_HAVE_RETHOOK
@@ -0,0 +1 @@
+CONFIG_HAVE_RETHOOK=y
diff --git 
a/redhat/configs/rhel/generic/powerpc/CONFIG_ARCH_USING_PATCHABLE_FUNCTION_ENTRY
 
b/redhat/configs/rhel/generic/powerpc/CONFIG_ARCH_USING_PATCHABLE_FUNCTION_ENTRY
new file mode 100644
index blahblah..blahblah 100644
--- /dev/null
+++ 
b/redhat/configs/rhel/generic/powerpc/CONFIG_ARCH_USING_PATCHABLE_FUNCTION_ENTRY
@@ -0,0 +1 @@
+CONFIG_ARCH_USING_PATCHABLE_FUNCTION_ENTRY=y
diff --git 
a/redhat/configs/rhel/generic/powerpc/CONFIG_ARCH_WANTS_PRE_LINK_VMLINUX 
b/redhat/configs/rhel/generic/powerpc/CONFIG_ARCH_WANTS_PRE_LINK_VMLINUX
new file mode 100644
index blahblah..blahblah 100644
--- /dev/null
+++ b/redhat/configs/rhel/generic/powerpc/CONFIG_ARCH_WANTS_PRE_LINK_VMLINUX
@@ -0,0 +1 @@
+CONFIG_ARCH_WANTS_PRE_LINK_VMLINUX=y
diff --git 
a/redhat/configs/rhel/generic/powerpc/CONFIG_DYNAMIC_FTRACE_WITH_ARGS 
b/redhat/configs/rhel/generic/powerpc/CONFIG_DYNAMIC_FTRACE_WITH_ARGS
new file mode 100644
index blahblah..blahblah 100644
--- /dev/null
+++ b/redhat/configs/rhel/generic/powerpc/CONFIG_DYNAMIC_FTRACE_WITH_ARGS
@@ -0,0 +1 @@
+CONFIG_DYNAMIC_FTRACE_WITH_ARGS=y
diff --git 
a/redhat/configs/rhel/generic/powerpc/CONFIG_DYNAMIC_FTRACE_WITH_CALL_OPS 
b/redhat/configs/rhel/generic/powerpc/CONFIG_DYNAMIC_FTRACE_WITH_CALL_OPS
new file mode 100644
index blahblah..blahblah 100644
--- /dev/null
+++ b/redhat/configs/rhel/generic/powerpc/CONFIG_DYNAMIC_FTRACE_WITH_CALL_OPS
@@ -0,0 +1 @@
+CONFIG_DYNAMIC_FTRACE_WITH_CALL_OPS=y
diff --git 
a/redhat/configs/rhel/generic/powerpc/CONFIG_DYNAMIC_FTRACE_WITH_DIRECT_CALLS 
b/redhat/configs/rhel/generic/powerpc/CONFIG_DYNAMIC_FTRACE_WITH_DIRECT_CALLS
new file mode 100644
index blahblah..blahblah 100644
--- /dev/null
+++ 
b/redhat/configs/rhel/generic/powerpc/CONFIG_DYNAMIC_FTRACE_WITH_DIRECT_CALLS
@@ -0,0 +1 @@
+CONFIG_DYNAMIC_FTRACE_WITH_DIRECT_CALLS=y
diff --git 
a/redhat/configs/rhel/generic/powerpc/CONFIG_HAVE_DYNAMIC_FTRACE_WITH_ARGS 
b/redhat/configs/rhel/generic/powerpc/CONFIG_HAVE_DYNAMIC_FTRACE_WITH_ARGS
new file mode 100644
index blahblah..blahblah 100644
--- /dev/null
+++ b/redhat/configs/rhel/generic/powerpc/CONFIG_HAVE_DYNAMIC_FTRACE_WITH_ARGS
@@ -0,0 +1 @@
+CONFIG_HAVE_DYNAMIC_FTRACE_WITH_ARGS=y
diff --git 
a/redhat/configs/rhel/generic/powerpc/CONFIG_HAVE_DYNAMIC_FTRACE_WITH_CALL_OPS 
b/redhat/configs/rhel/generic/powerpc/CONFIG_HAVE_DYNAMIC_FTRACE_WITH_CALL_OPS
new file mode 100644
index blahblah..blahblah 100644
--- /dev/null
+++ 
b/redhat/configs/rhel/generic/powerpc/CONFIG_HAVE_DYNAMIC_FTRACE_WITH_CALL_OPS
@@ -0,0 +1 @@
+CONFIG_HAVE_DYNAMIC_FTRACE_WITH_CALL_OPS=y
diff --git 
a/redhat/configs/rhel/generic/powerpc/CONFIG_HAVE_DYNAMIC_FTRACE_WITH_DIRECT_CALLS
 
b/redhat/configs/rhel/generic/powerpc/CONFIG_HAVE_DYNAMIC_FTRACE_WITH_DIRECT_CALLS
new file mode 100644
index blahblah..blahblah 100644
--- /dev/null
+++ 
b/redhat/configs/rhel/generic/powerpc/CONFIG_HAVE_DYNAMIC_FTRACE_WITH_DIRECT_CALLS
@@ -0,0 +1 @@
+CONFIG_HAVE_DYNAMIC_FTRACE_WITH_DIRECT_CALLS=y
diff --git a/redhat/configs/rhel/generic/powerpc/CONFIG_HAVE_RETHOOK 
b/redhat/configs/rhel/generic/powerpc/CONFIG_HAVE_RETHOOK
new file mode 100644
index blahblah..blahblah 100644
--- /dev/null
+++ b/redhat/configs/rhel/generic/powerpc/CONFIG_HAVE_RETHOOK
@@ -0,0 +1 @@
+CONFIG_HAVE_RETHOOK=y
diff --git a/redhat/configs/rhel/generic/powerpc/CONFIG_KRETPROBE_ON_RETHOOK 
b/redhat/configs/rhel/generic/powerpc/CONFIG_KRETPROBE_ON_RETHOOK
new file mode 100644
index blahblah..blahblah 100644
--- /dev/null
+++ b/redhat/configs/rhel/generic/powerpc/CONFIG_KRETPROBE_ON_RETHOOK
@@ -0,0 +1 @@
+CONFIG_KRETPROBE_ON_RETHOOK=y
diff --git a/redhat/configs/rhel/generic/powerpc/CONFIG_PPC_FTRACE_OUT_OF_LINE 
b/redhat/configs/rhel/generic/powerpc/CONFIG_PPC_FTRACE_OUT_OF_LINE
new file mode 100644
index blahblah..blahblah 100644
--- /dev/null
+++ b/redhat/configs/rhel/generic/powerpc/CONFIG_PPC_FTRACE_OUT_OF_LINE
@@ -0,0 +1 @@
+CONFIG_PPC_FTRACE_OUT_OF_LINE=y
diff --git a/redhat/configs/rhel/generic/powerpc/CONFIG_RETHOOK 
b/redhat/configs/rhel/generic/powerpc/CONFIG_RETHOOK
new file mode 100644
index blahblah..blahblah 100644
--- /dev/null
+++ b/redhat/configs/rhel/generic/powerpc/CONFIG_RETHOOK
@@ -0,0 +1 @@
+CONFIG_RETHOOK=y

--
https://gitlab.com/cki-project/kernel-ark/-/merge_requests/3964

-- 
_______________________________________________
kernel mailing list -- kernel@lists.fedoraproject.org
To unsubscribe send an email to kernel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/kernel@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to