summaryrefslogtreecommitdiffstats
path: root/lib/assoc_array.c
diff options
context:
space:
mode:
authorYun Zhou <yun.zhou@windriver.com>2021-06-26 05:21:56 +0200
committerSteven Rostedt (VMware) <rostedt@goodmis.org>2021-06-26 15:19:16 +0200
commit6a2cbc58d6c9d90cd74288cc497c2b45815bc064 (patch)
tree9d63849121552177318f26887699da1feedcc902 /lib/assoc_array.c
parentseq_buf: Fix overflow in seq_buf_putmem_hex() (diff)
downloadlinux-6a2cbc58d6c9d90cd74288cc497c2b45815bc064.tar.xz
linux-6a2cbc58d6c9d90cd74288cc497c2b45815bc064.zip
seq_buf: Make trace_seq_putmem_hex() support data longer than 8
Since the raw memory 'data' does not go forward, it will dump repeated data if the data length is more than 8. If we want to dump longer data blocks, we need to repeatedly call macro SEQ_PUT_HEX_FIELD. I think it is a bit redundant, and multiple function calls also affect the performance. Link: https://lore.kernel.org/lkml/20210625122453.5e2fe304@oasis.local.home/ Link: https://lkml.kernel.org/r/20210626032156.47889-2-yun.zhou@windriver.com Cc: stable@vger.kernel.org Fixes: 6d2289f3faa7 ("tracing: Make trace_seq_putmem_hex() more robust") Signed-off-by: Yun Zhou <yun.zhou@windriver.com> Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'lib/assoc_array.c')
0 files changed, 0 insertions, 0 deletions