Skip to contentSkip to conversation

perf kvm: Fix subcommands on s390

PATCH Applied Thomas Richter 5 participants 5 messages Jul 12, 2018 – Jul 25, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 perf kvm: Fix subcommands on s390

With commit eca0fa28cd0d ("perf record: Provide detailed information on s390 CPU") s390 platform provides detailed type/model/capacitiy information
in the CPU indentifier string instead of just "IBM/S390".

This breaks perf kvm support which uses hard coded string IBM/S390 to compare with the CPU identifier string. Fix this by changing the comparison.

Fixes eca0fa28cd0d ("perf record: Provide detailed information on s390 CPU")
Cc Stefan Raspl <[email protected]>
Cc <[email protected]> # 4.17
---
 tools/perf/arch/s390/util/kvm-stat.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/perf/arch/s390/util/kvm-stat.c +1 -1
index d233e2eb9592..aaabab5e2830 100644
@@ -102,7 +102,7 @@ const char * const kvm_skip_events[] = {
 
 int cpu_isa_init(struct perf_kvm_stat *kvm, const char *cpuid)
 {
-	if (strstr(cpuid, "IBM/S390")) {
+	if (strstr(cpuid, "IBM")) {
 		kvm->exit_reasons = sie_exit_reasons;
 		kvm->exit_reasons_isa = "SIE";
 	} else
Signature · 1 line
2.14.3
Acked-by on v1 1/1
#1 lore raw
Quoted 7 lines · Thomas Richter

With commit eca0fa28cd0d ("perf record: Provide detailed information on s390 CPU") s390 platform provides detailed type/model/capacitiy information
in the CPU indentifier string instead of just "IBM/S390".

This breaks perf kvm support which uses hard coded string IBM/S390 to compare with the CPU identifier string. Fix this by changing the comparison.

Quoted 6 lines
Fixes eca0fa28cd0d ("perf record: Provide detailed information on s390 CPU")
Cc Stefan Raspl <[email protected]>
Cc <[email protected]> # 4.17
Quoted 18 lines
---
 tools/perf/arch/s390/util/kvm-stat.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/perf/arch/s390/util/kvm-stat.c +1 -1
index d233e2eb9592..aaabab5e2830 100644
@@ -102,7 +102,7 @@ const char * const kvm_skip_events[] = {
 
 int cpu_isa_init(struct perf_kvm_stat *kvm, const char *cpuid)
 {
-	if (strstr(cpuid, "IBM/S390")) {
+	if (strstr(cpuid, "IBM")) {
 		kvm->exit_reasons = sie_exit_reasons;
 		kvm->exit_reasons_isa = "SIE";
 	} else
#2 lore raw
In reply to Thomas Richter
Quoted 7 lines · Thomas Richter

With commit eca0fa28cd0d ("perf record: Provide detailed information on s390 CPU") s390 platform provides detailed type/model/capacitiy information
in the CPU indentifier string instead of just "IBM/S390".

This breaks perf kvm support which uses hard coded string IBM/S390 to compare with the CPU identifier string. Fix this by changing the comparison.

Quoted 6 lines
Fixes eca0fa28cd0d ("perf record: Provide detailed information on s390 CPU")
Cc Stefan Raspl <[email protected]>
Cc <[email protected]> # 4.17
Reported-and-tested-by Stefan Raspl <[email protected]>
maintainer Applied
#3 lore raw

Em Thu, Jul 12, 2018 at 04:17:14PM +0200, Stefan Raspl escreveu:

Quoted 8 lines · Thomas Richter
Quoted 6 lines

With commit eca0fa28cd0d ("perf record: Provide detailed information on s390 CPU") s390 platform provides detailed type/model/capacitiy information
in the CPU indentifier string instead of just "IBM/S390".

This breaks perf kvm support which uses hard coded string IBM/S390 to compare with the CPU identifier string. Fix this by changing the comparison.

Quoted 8 lines
Quoted 6 lines
Fixes eca0fa28cd0d ("perf record: Provide detailed information on s390 CPU")
Cc Stefan Raspl <[email protected]>
Cc <[email protected]> # 4.17
Reported-and-tested-by Stefan Raspl <[email protected]>

Thanks, applied together with Christian's Acked-by,

- Arnaldo

#4 lore raw
In reply to Thomas Richter
perf kvm: Fix subcommands on s390
Commit-ID:  8a95c8994509c55abf1e38c0cc037b1205725e21
Gitweb:     https://git.kernel.org/tip/8a95c8994509c55abf1e38c0cc037b1205725e21
Author:     Thomas Richter <[email protected]>
AuthorDate: Thu, 12 Jul 2018 09:09:36 +0200
Committer:  Arnaldo Carvalho de Melo <[email protected]>
CommitDate: Tue, 24 Jul 2018 14:49:49 -0300

perf kvm: Fix subcommands on s390

With commit eca0fa28cd0d ("perf record: Provide detailed information on s390 CPU") s390 platform provides detailed type/model/capacity information in the CPU identifier string instead of just "IBM/S390".

This breaks 'perf kvm' support which uses hard coded string IBM/S390 to compare with the CPU identifier string. Fix this by changing the comparison.

---
 tools/perf/arch/s390/util/kvm-stat.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/perf/arch/s390/util/kvm-stat.c +1 -1
index d233e2eb9592..aaabab5e2830 100644
@@ -102,7 +102,7 @@ const char * const kvm_skip_events[] = {
 
 int cpu_isa_init(struct perf_kvm_stat *kvm, const char *cpuid)
 {
-	if (strstr(cpuid, "IBM/S390")) {
+	if (strstr(cpuid, "IBM")) {
 		kvm->exit_reasons = sie_exit_reasons;
 		kvm->exit_reasons_isa = "SIE";
 	} else