提交 6faaf126 编写于 作者: A Andrew Kilroy 提交者: Zheng Zengkai

perf arm-spe: Print size using consistent format

mainline inclusion
from mainline-v5.16-rc1
commit 09e9afac
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I4NGPV
CVE: NA

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

Since the size is already printed earlier in hex, print the same data
using the same format, in hex.
Reviewed-by: NJames Clark <james.clark@arm.com>
Reviewed-by: NLeo Yan <leo.yan@linaro.org>
Signed-off-by: NAndrew Kilroy <andrew.kilroy@arm.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: John Garry <john.garry@huawei.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Mathieu Poirier <mathieu.poirier@linaro.org>
Cc: Mike Leach <mike.leach@linaro.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Will Deacon <will@kernel.org>
Cc: coresight@lists.linaro.org
Cc: linux-arm-kernel@lists.infradead.org
Link: https://lore.kernel.org/r/20211109142153.56546-3-german.gomez@arm.comSigned-off-by: NGerman Gomez <german.gomez@arm.com>
Signed-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: NWei Li <liwei391@huawei.com>
Reviewed-by: NYang Jihong <yangjihong1@huawei.com>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 a2e01741
...@@ -100,7 +100,7 @@ static void arm_spe_dump(struct arm_spe *spe __maybe_unused, ...@@ -100,7 +100,7 @@ static void arm_spe_dump(struct arm_spe *spe __maybe_unused,
const char *color = PERF_COLOR_BLUE; const char *color = PERF_COLOR_BLUE;
color_fprintf(stdout, color, color_fprintf(stdout, color,
". ... ARM SPE data: size %zu bytes\n", ". ... ARM SPE data: size %#zx bytes\n",
len); len);
while (len) { while (len) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册