diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2023-04-18 17:45:34 -0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2023-04-19 10:52:54 -0300 |
commit | a07dacad8ac40d1beadb640fe341b5198c1cf097 (patch) | |
tree | 96563bb5ad9eb57407263d2f111f49f492fd7f79 /tools | |
parent | fe693d951e3c303b4fb6c712f8affecbe9e8b001 (diff) | |
download | linux-a07dacad8ac40d1beadb640fe341b5198c1cf097.tar.gz linux-a07dacad8ac40d1beadb640fe341b5198c1cf097.tar.bz2 linux-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>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/perf/util/machine.c | 2 |
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); |