Re: [PATCH v9 1/4] perf, kvm/{x86, s390}: Remove dependency on uapi/kvm_perf.h

2015-10-28 Thread Alexander Yarygin
s extern. But if people are strongly against it, as an alternative I can suggest to move the 'char *decode' variable to the perf_kvm_stat structure, allocate it once e.g. in kvm_events_report() and just write to it via decode_key(). If I'm not mistaken, we always write \0 trimmed stri

Re: [PATCH v8 1/4] perf, kvm/{x86, s390}: Remove dependency on uapi/kvm_perf.h

2015-09-28 Thread Alexander Yarygin
Hemant Kumar writes: > Its better to remove the dependency on uapi/kvm_perf.h to allow dynamic > discovery of kvm events (if its needed). To do this, some extern > variables have been introduced with which we can keep the generic > functions generic. > > Signed-off-by: Hemant Kumar > --- > Chang