| 7ab6fe66 | 07-Sep-2023 |
Naresh Kamboju <[email protected]> |
selftests: user_events: create test-specific Kconfig fragments
Create the config file in user_events directory of testcase which need more kernel configuration than the default defconfig. User could
selftests: user_events: create test-specific Kconfig fragments
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 <[email protected]> Cc: Shuah Khan <[email protected]> Cc: [email protected] Signed-off-by: Naresh Kamboju <[email protected]> Signed-off-by: Shuah Khan <[email protected]>
show more ...
|
| d34a271a | 26-Jun-2023 |
sunliming <[email protected]> |
selftests/user_events: Add test cases when event is disabled
When user_events are disabled, it's write operation should return -EBADF. Add this test cases.
Link: https://lkml.kernel.org/r/202306261
selftests/user_events: Add test cases when event is disabled
When user_events are disabled, it's write operation should return -EBADF. Add this test cases.
Link: https://lkml.kernel.org/r/[email protected]
Acked-by: Beau Belgrave <[email protected]> Signed-off-by: sunliming <[email protected]> Signed-off-by: Steven Rostedt (Google) <[email protected]>
show more ...
|
| c27b40cf | 26-Jun-2023 |
sunliming <[email protected]> |
selftests/user_events: Enable the event before write_fault test in ftrace self-test
The user_event has not be enabled in write_fault test in ftrace self-test, Just enable it.
Link: https://lkml.ker
selftests/user_events: Enable the event before write_fault test in ftrace self-test
The user_event has not be enabled in write_fault test in ftrace self-test, Just enable it.
Link: https://lkml.kernel.org/r/[email protected]
Acked-by: Beau Belgrave <[email protected]> Signed-off-by: sunliming <[email protected]> Signed-off-by: Steven Rostedt (Google) <[email protected]>
show more ...
|
| 61701242 | 14-Jun-2023 |
Beau Belgrave <[email protected]> |
selftests/user_events: Adapt dyn_test to non-persist events
Now that user_events does not honor persist events the dynamic_events file cannot be easily used to test parsing and matching cases.
Upda
selftests/user_events: Adapt dyn_test to non-persist events
Now that user_events does not honor persist events the dynamic_events file cannot be easily used to test parsing and matching cases.
Update dyn_test to use the direct ABI file instead of dynamic_events so that we still have testing coverage until persist events and dynamic_events file integration has been decided.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Beau Belgrave <[email protected]> Signed-off-by: Steven Rostedt (Google) <[email protected]>
show more ...
|
| 4b56c21b | 06-Jun-2023 |
sunliming <[email protected]> |
selftests/user_events: Clear the events after perf self-test
When the self test is completed, perf self-test left the user events not to be cleared. Clear the events by unregister and delete the eve
selftests/user_events: Clear the events after perf self-test
When the self test is completed, perf self-test left the user events not to be cleared. Clear the events by unregister and delete the event.
Link: https://lkml.kernel.org/r/[email protected]
Acked-by: Beau Belgrave <[email protected]> Acked-by: Masami Hiramatsu (Google) <[email protected]> Signed-off-by: sunliming <[email protected]> Signed-off-by: Steven Rostedt (Google) <[email protected]>
show more ...
|
| 97bbce89 | 25-Apr-2023 |
Beau Belgrave <[email protected]> |
tracing/user_events: Prevent same address and bit per process
User processes register an address and bit pair for events. If the same address and bit pair are registered multiple times in the same p
tracing/user_events: Prevent same address and bit per process
User processes register an address and bit pair for events. If the same address and bit pair are registered multiple times in the same process, it can cause undefined behavior when events are enabled/disabled. When more than one are used, the bit could be turned off by another event being disabled, while the original event is still enabled.
Prevent undefined behavior by checking the current mm to see if any event has already been registered for the address and bit pair. Return EADDRINUSE back to the user process if it's already being used.
Update ftrace self-test to ensure this occurs properly.
Link: https://lkml.kernel.org/r/[email protected]
Suggested-by: Doug Cook <[email protected]> Signed-off-by: Beau Belgrave <[email protected]> Signed-off-by: Steven Rostedt (Google) <[email protected]>
show more ...
|
| 17b439db | 25-Apr-2023 |
Beau Belgrave <[email protected]> |
tracing/user_events: Ensure bit is cleared on unregister
If an event is enabled and a user process unregisters user_events, the bit is left set. Fix this by always clearing the bit in the user proce
tracing/user_events: Ensure bit is cleared on unregister
If an event is enabled and a user process unregisters user_events, the bit is left set. Fix this by always clearing the bit in the user process if unregister is successful.
Update abi self-test to ensure this occurs properly.
Link: https://lkml.kernel.org/r/[email protected]
Suggested-by: Doug Cook <[email protected]> Signed-off-by: Beau Belgrave <[email protected]> Signed-off-by: Steven Rostedt (Google) <[email protected]>
show more ...
|
| 60b1af8d | 28-Mar-2023 |
Beau Belgrave <[email protected]> |
tracing/user_events: Add ABI self-test
Add ABI specific self-test to ensure enablements work in various scenarios such as fork, VM_CLONE, and basic event enable/disable. Ensure ABI contracts/limits
tracing/user_events: Add ABI self-test
Add ABI specific self-test to ensure enablements work in various scenarios such as fork, VM_CLONE, and basic event enable/disable. Ensure ABI contracts/limits are also being upheld, such as bit limits and data size limits.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Beau Belgrave <[email protected]> Signed-off-by: Steven Rostedt (Google) <[email protected]>
show more ...
|