diff --git a/tools/perf/util/cputopo.c b/tools/perf/util/cputopo.c
index 84ca106a3246aadb3051d4af0a7eb2c47ad0dd79..e20b835a11943aebe2c20e7f31c1c0f243a03a73 100644
--- a/tools/perf/util/cputopo.c
+++ b/tools/perf/util/cputopo.c
@@ -165,7 +165,8 @@ static bool has_die_topology(void)
 	if (uname(&uts) < 0)
 		return false;
 
-	if (strncmp(uts.machine, "x86_64", 6))
+	if (strncmp(uts.machine, "x86_64", 6) &&
+	    strncmp(uts.machine, "s390x", 5))
 		return false;
 
 	scnprintf(filename, MAXPATHLEN, DIE_CPUS_FMT,