diff options
| author | 2025-08-17 16:47:25 +0800 | |
|---|---|---|
| committer | 2025-09-23 09:31:58 -0400 | |
| commit | 09da59344a5a2abb5b2f209cf149421d7d105ebc (patch) | |
| tree | cf9b98d0145af1e76a73eb216f7a18ef58a5b6af /scripts/bpf_doc.py | |
| parent | tracing: Have syscall trace events show "0x" for values greater than 10 (diff) | |
| download | linux-rng-09da59344a5a2abb5b2f209cf149421d7d105ebc.tar.xz linux-rng-09da59344a5a2abb5b2f209cf149421d7d105ebc.zip | |
tracing: Use vmalloc_array() to improve code
Remove array_size() calls and replace vmalloc() with vmalloc_array() in
tracing_map_sort_entries(). vmalloc_array() is optimized better, uses
fewer instructions, and handles overflow more concisely[1].
[1]: https://lore.kernel.org/lkml/abc66ec5-85a4-47e1-9759-2f60ab111971@vivo.com/
Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Link: https://lore.kernel.org/20250817084725.59477-1-rongqianfeng@vivo.com
Signed-off-by: Qianfeng Rong <rongqianfeng@vivo.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Diffstat (limited to 'scripts/bpf_doc.py')
0 files changed, 0 insertions, 0 deletions
