summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2023-04-18 17:45:34 -0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2023-04-19 10:52:54 -0300
commita07dacad8ac40d1beadb640fe341b5198c1cf097 (patch)
tree96563bb5ad9eb57407263d2f111f49f492fd7f79
parentfe693d951e3c303b4fb6c712f8affecbe9e8b001 (diff)
downloadlinux-stable-a07dacad8ac40d1beadb640fe341b5198c1cf097.tar.gz
linux-stable-a07dacad8ac40d1beadb640fe341b5198c1cf097.tar.bz2
linux-stable-a07dacad8ac40d1beadb640fe341b5198c1cf097.zip
perf maps: Use maps__nr_maps() instead of open coded maps->nr_maps
To use the existing accessor and be consistent. Signef-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
-rw-r--r--tools/perf/util/machine.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/util/machine.c b/tools/perf/util/machine.c
index 25738775834e..85787672d335 100644
--- a/tools/perf/util/machine.c
+++ b/tools/perf/util/machine.c
@@ -435,7 +435,7 @@ static struct thread *findnew_guest_code(struct machine *machine,
return NULL;
/* Assume maps are set up if there are any */
- if (thread->maps->nr_maps)
+ if (maps__nr_maps(thread->maps))
return thread;
host_thread = machine__find_thread(host_machine, -1, pid);