-
- Downloads
tracing/user_events: Use bits vs bytes for enabled status page data
User processes may require many events and when they do the cache performance of a byte index status check is less ideal than a bit index. The previous event limit per-page was 4096, the new limit is 32,768. This change adds a bitwise index to the user_reg struct. Programs check that the bit at status_bit has a bit set within the status page(s). Link: https://lkml.kernel.org/r/20220728233309.1896-6-beaub@linux.microsoft.com Link: https://lore.kernel.org/all/2059213643.196683.1648499088753.JavaMail.zimbra@efficios.com/ Suggested-by:Mathieu Desnoyers <mathieu.desnoyers@efficios.com> Signed-off-by:
Beau Belgrave <beaub@linux.microsoft.com> Signed-off-by:
Steven Rostedt (Google) <rostedt@goodmis.org>
Showing
- include/linux/user_events.h 3 additions, 12 deletionsinclude/linux/user_events.h
- kernel/trace/trace_events_user.c 67 additions, 8 deletionskernel/trace/trace_events_user.c
- samples/user_events/example.c 18 additions, 7 deletionssamples/user_events/example.c
- tools/testing/selftests/user_events/ftrace_test.c 39 additions, 8 deletionstools/testing/selftests/user_events/ftrace_test.c
- tools/testing/selftests/user_events/perf_test.c 8 additions, 3 deletionstools/testing/selftests/user_events/perf_test.c
Loading
Please register or sign in to comment