Skip to contentSkip to conversation

perf: unwind: suppress massive unsupported target platform errors

PATCH Applied Changbin Du 2 participants 2 messages Apr 26, 2023 – Apr 29, 2023 perf events

lore
Share & tools
lore
#0 lore raw

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.

---
 tools/perf/util/unwind-libunwind.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/perf/util/unwind-libunwind.c +1 -1
index 509c287ee762..e95adbedf6ed 100644
@@ -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
maintainer Applied
#1 lore raw

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
---
 tools/perf/util/unwind-libunwind.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/perf/util/unwind-libunwind.c +1 -1
index 509c287ee762..e95adbedf6ed 100644
@@ -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