perf: unwind: suppress massive unsupported target platform errors
PATCH 1/1 perf: unwind: suppress massive unsupported target platform errors
When cross-analyzing perf data recorded on an another platform, massive unsupported target platform errors are printed. So let's show this message as warning and only once.
Signed-off-by Changbin Du <[email protected]>
--- tools/perf/util/unwind-libunwind.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tools/perf/util/unwind-libunwind.c +1 -1
@@ -54,7 +54,7 @@ int unwind__prepare_access(struct maps *maps, struct map *map, bool *initialized }if (!ops) { -pr_err ("unwind: target platform=%s is not supported\n" , arch); +pr_warning_once ("unwind: target platform=%s is not supported\n" , arch);return 0 ; } out_register:
Signature · 1 line
2.25.1
Em Wed, Apr 26, 2023 at 11:22:46AM +0800, Changbin Du escreveu:
Quoted 3 lines
When cross-analyzing perf data recorded on an another platform, massive unsupported target platform errors are printed. So let's show this message as warning and only once.
Thanks, applied.
- Arnaldo
Quoted 21 lines
Signed-off-by Changbin Du <[email protected]>--- tools/perf/util/unwind-libunwind.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)tools/perf/util/unwind-libunwind.c +1
-1@@ -54,7 +54,7 @@ int unwind__prepare_access(struct maps *maps, struct map *map, bool *initialized }if (!ops) { -pr_err ("unwind: target platform=%s is not supported\n" , arch); +pr_warning_once ("unwind: target platform=%s is not supported\n" , arch);return 0 ; } out_register:Signature · 1 line
2.25.1
Signature · 1 line
- Arnaldo