Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

perf kvm/{x86,s390}: Remove const from kvm_events_tp

This patch removes the "const" qualifier from kvm_events_tp declaration
to account for the fact that some architectures may need to update this
variable dynamically. For instance, powerpc will need to update this
variable dynamically depending on the machine type.

Signed-off-by: Hemant Kumar <hemant@linux.vnet.ibm.com>
Acked-by: David Ahern <dsahern@gmail.com>
Cc: Alexander Yarygin <yarygin@linux.vnet.ibm.com>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Scott Wood <scottwood@freescale.com>
Cc: Srikar Dronamraju <srikar@linux.vnet.ibm.com>
Cc: linuxppc-dev@lists.ozlabs.org
Link: http://lkml.kernel.org/r/1453962787-15376-2-git-send-email-hemant@linux.vnet.ibm.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

authored by

Hemant Kumar and committed by
Arnaldo Carvalho de Melo
48deaa74 162607ea

+3 -3
+1 -1
tools/perf/arch/s390/util/kvm-stat.c
··· 79 79 .name = "VM-EXIT" 80 80 }; 81 81 82 - const char * const kvm_events_tp[] = { 82 + const char *kvm_events_tp[] = { 83 83 "kvm:kvm_s390_sie_enter", 84 84 "kvm:kvm_s390_sie_exit", 85 85 "kvm:kvm_s390_intercept_instruction",
+1 -1
tools/perf/arch/x86/util/kvm-stat.c
··· 129 129 .name = "IO Port Access" 130 130 }; 131 131 132 - const char * const kvm_events_tp[] = { 132 + const char *kvm_events_tp[] = { 133 133 "kvm:kvm_entry", 134 134 "kvm:kvm_exit", 135 135 "kvm:kvm_mmio",
+1 -1
tools/perf/util/kvm-stat.h
··· 133 133 */ 134 134 int cpu_isa_init(struct perf_kvm_stat *kvm, const char *cpuid); 135 135 136 - extern const char * const kvm_events_tp[]; 136 + extern const char *kvm_events_tp[]; 137 137 extern struct kvm_reg_events_ops kvm_reg_events_ops[]; 138 138 extern const char * const kvm_skip_events[]; 139 139 extern const char *vcpu_id_str;