diff mbox series

selftests: user_events: create test-specific Kconfig fragments

Message ID 20230907080209.223478-1-naresh.kamboju@linaro.org
State Accepted
Commit 7ab6fe6625c9bdcb8fa5f61c8f8e30e13f689284
Headers show
Series selftests: user_events: create test-specific Kconfig fragments | expand

Commit Message

Naresh Kamboju Sept. 7, 2023, 8:02 a.m. UTC
Create the config file in user_events directory of testcase which
need more kernel configuration than the default defconfig. User
could use these configs with merge_config.sh script:

The Kconfig CONFIG_USER_EVENTS=y is needed for the test to read
data from the following files,
  - "/sys/kernel/tracing/user_events_data"
  - "/sys/kernel/tracing/user_events_status"
  - "/sys/kernel/tracing/events/user_events/*"

Enable config for specific testcase:
(export ARCH=xxx #for cross compiling)
./scripts/kconfig/merge_config.sh .config \
                tools/testing/selftests/user_events/config

Enable configs for all testcases:
(export ARCH=xxx #for cross compiling)
./scripts/kconfig/merge_config.sh .config \
                tools/testing/selftests/*/config

Cc: Beau Belgrave <beaub@linux.microsoft.com>
Cc: Shuah Khan <skhan@linuxfoundation.org>
Cc: linux-kselftest@vger.kernel.org
Signed-off-by: Naresh Kamboju <naresh.kamboju@linaro.org>
---
 tools/testing/selftests/user_events/config | 1 +
 1 file changed, 1 insertion(+)
 create mode 100644 tools/testing/selftests/user_events/config
diff mbox series

Patch

diff --git a/tools/testing/selftests/user_events/config b/tools/testing/selftests/user_events/config
new file mode 100644
index 0000000000000..64f7a9a90cec4
--- /dev/null
+++ b/tools/testing/selftests/user_events/config
@@ -0,0 +1 @@ 
+CONFIG_USER_EVENTS=y