Vincent Donnefort
b6f9cd83c6
selftests/ring-buffer: Add test for out-of-bound pgoff mapping
...
Extend the ring-buffer mapping test coverage by checking an out-of-bound
pgoff which has proven to be problematic in the past.
Link: https://lore.kernel.org/r/[email protected]
Cc: Shuah Khan <[email protected] >
Cc: [email protected]
Signed-off-by: Vincent Donnefort <[email protected] >
Signed-off-by: Shuah Khan <[email protected] >
2025-01-14 17:06:32 -07:00
Vincent Donnefort
75d7ff9aa0
selftests/ring-buffer: Handle meta-page bigger than the system
...
Handle the case where the meta-page content is bigger than the system
page-size. This prepares the ground for extending features covered by
the meta-page.
Cc: Shuah Khan <[email protected] >
Cc: [email protected]
Link: https://lore.kernel.org/[email protected]
Acked-by: Shuah Khan <[email protected] >
Signed-off-by: Vincent Donnefort <[email protected] >
Signed-off-by: Steven Rostedt (Google) <[email protected] >
2024-09-11 12:25:12 -04:00
Vincent Donnefort
21ff365b5c
selftests/ring-buffer: Verify the entire meta-page padding
...
Improve the ring-buffer meta-page test coverage by checking for the
entire padding region to be 0 instead of just looking at the first 4
bytes.
Cc: [email protected]
Link: https://lore.kernel.org/[email protected]
Acked-by: Shuah Khan <[email protected] >
Signed-off-by: Vincent Donnefort <[email protected] >
Signed-off-by: Steven Rostedt (Google) <[email protected] >
2024-09-11 12:25:02 -04:00
Vincent Donnefort
eb2dcde9f9
ring-buffer: Align meta-page to sub-buffers for improved TLB usage
...
Previously, the mapped ring-buffer layout caused misalignment between
the meta-page and sub-buffers when the sub-buffer size was not a
multiple of PAGE_SIZE. This prevented hardware with larger TLB entries
from utilizing them effectively.
Add a padding with the zero-page between the meta-page and sub-buffers.
Also update the ring-buffer map_test to verify that padding.
Link: https://lore.kernel.org/[email protected]
Signed-off-by: Vincent Donnefort <[email protected] >
Signed-off-by: Steven Rostedt (Google) <[email protected] >
2024-08-26 13:42:23 -04:00
Vincent Donnefort
75961e5541
ring-buffer/selftest: Add ring-buffer mapping test
...
Map a ring-buffer, validate the meta-page before and after emitting few
events. Also check ring-buffer mapping boundaries and finally ensure the
tracing snapshot is mutually exclusive.
Link: https://lore.kernel.org/linux-trace-kernel/[email protected]
Cc: Shuah Khan <[email protected] >
Cc: Shuah Khan <[email protected] >
Cc: [email protected]
Acked-by: Muhammad Usama Anjum <[email protected] >
Signed-off-by: Vincent Donnefort <[email protected] >
Signed-off-by: Steven Rostedt (Google) <[email protected] >
2024-05-13 18:09:56 -04:00