Commit eb2dcde
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]>1 parent d0f2d6e commit eb2dcde
File tree
2 files changed
+34
-13
lines changed- kernel/trace
- tools/testing/selftests/ring-buffer
2 files changed
+34
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6852 | 6852 | | |
6853 | 6853 | | |
6854 | 6854 | | |
6855 | | - | |
6856 | 6855 | | |
6857 | 6856 | | |
6858 | 6857 | | |
| 6858 | + | |
6859 | 6859 | | |
6860 | 6860 | | |
6861 | 6861 | | |
| |||
6949 | 6949 | | |
6950 | 6950 | | |
6951 | 6951 | | |
| 6952 | + | |
| 6953 | + | |
| 6954 | + | |
| 6955 | + | |
| 6956 | + | |
| 6957 | + | |
6952 | 6958 | | |
6953 | 6959 | | |
6954 | 6960 | | |
| |||
6958 | 6964 | | |
6959 | 6965 | | |
6960 | 6966 | | |
6961 | | - | |
6962 | | - | |
6963 | | - | |
6964 | 6967 | | |
6965 | | - | |
| 6968 | + | |
6966 | 6969 | | |
6967 | 6970 | | |
6968 | 6971 | | |
| |||
6975 | 6978 | | |
6976 | 6979 | | |
6977 | 6980 | | |
| 6981 | + | |
| 6982 | + | |
6978 | 6983 | | |
6979 | 6984 | | |
6980 | 6985 | | |
6981 | | - | |
6982 | | - | |
| 6986 | + | |
| 6987 | + | |
6983 | 6988 | | |
6984 | | - | |
6985 | | - | |
6986 | | - | |
| 6989 | + | |
| 6990 | + | |
| 6991 | + | |
| 6992 | + | |
6987 | 6993 | | |
6988 | | - | |
6989 | | - | |
6990 | | - | |
| 6994 | + | |
6991 | 6995 | | |
| 6996 | + | |
| 6997 | + | |
| 6998 | + | |
6992 | 6999 | | |
6993 | 7000 | | |
6994 | 7001 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
228 | 228 | | |
229 | 229 | | |
230 | 230 | | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
231 | 245 | | |
232 | 246 | | |
233 | 247 | | |
| |||
0 commit comments