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

perf kvm: Use thread_{,_set}_priv helpers

This is mechanical changes only for accounting access to thread->priv
properly in the source level.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung.kim@lge.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1412556363-26229-5-git-send-email-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

authored by

Namhyung Kim and committed by
Arnaldo Carvalho de Melo
69e865c3 66f066d8

+3 -3
+3 -3
tools/perf/builtin-kvm.c
··· 376 376 struct perf_sample *sample) 377 377 { 378 378 /* Only kvm_entry records vcpu id. */ 379 - if (!thread->priv && kvm_entry_event(evsel)) { 379 + if (!thread__priv(thread) && kvm_entry_event(evsel)) { 380 380 struct vcpu_event_record *vcpu_record; 381 381 382 382 vcpu_record = zalloc(sizeof(*vcpu_record)); ··· 386 386 } 387 387 388 388 vcpu_record->vcpu_id = perf_evsel__intval(evsel, sample, VCPU_ID); 389 - thread->priv = vcpu_record; 389 + thread__set_priv(thread, vcpu_record); 390 390 } 391 391 392 - return thread->priv; 392 + return thread__priv(thread); 393 393 } 394 394 395 395 static bool handle_kvm_event(struct perf_kvm_stat *kvm,