Commit 545ce8e1 authored by Yun Zhou's avatar Yun Zhou Committed by Yang Yingliang
Browse files

seq_buf: Make trace_seq_putmem_hex() support data longer than 8

stable inclusion
from linux-4.19.198
commit c2e99a8d37b90b35d7d904c86fd125375ebec2b4

--------------------------------

commit 6a2cbc58 upstream.

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: 6d2289f3 ("tracing: Make trace_seq_putmem_hex() more robust")
Signed-off-by: default avatarYun Zhou <yun.zhou@windriver.com>
Signed-off-by: default avatarSteven Rostedt (VMware) <rostedt@goodmis.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent f6941be9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment