diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2015-05-29 11:31:12 -0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2015-05-29 12:43:44 -0300 |
commit | aa7cc2ae5ae69aff555793fbfcff514141bb23f3 (patch) | |
tree | 2920c2fb1a8209b5216899cdd1491c53c5fcdd5d /tools/perf/tests | |
parent | 3d39ac538629e4f00a6e1c38d46346f1b8e69505 (diff) | |
download | op-kernel-dev-aa7cc2ae5ae69aff555793fbfcff514141bb23f3.zip op-kernel-dev-aa7cc2ae5ae69aff555793fbfcff514141bb23f3.tar.gz |
perf machine: Introduce machine__findnew_dso() method
Similar to machine__findnew_thread(), also prepping for refcounting and
locking, this time for struct dso instances.
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: http://lkml.kernel.org/n/tip-fv3tshv5o1413coh147lszjc@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/tests')
-rw-r--r-- | tools/perf/tests/hists_common.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/perf/tests/hists_common.c b/tools/perf/tests/hists_common.c index bcde1d2..915f60a 100644 --- a/tools/perf/tests/hists_common.c +++ b/tools/perf/tests/hists_common.c @@ -121,8 +121,7 @@ struct machine *setup_fake_machine(struct machines *machines) size_t k; struct dso *dso; - dso = __dsos__findnew(&machine->dsos, - fake_symbols[i].dso_name); + dso = machine__findnew_dso(machine, fake_symbols[i].dso_name); if (dso == NULL) goto out; |