projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fe693d9
)
perf maps: Use maps__nr_maps() instead of open coded maps->nr_maps
author
Arnaldo Carvalho de Melo
<acme@redhat.com>
Tue, 18 Apr 2023 20:45:34 +0000
(17:45 -0300)
committer
Arnaldo Carvalho de Melo
<acme@redhat.com>
Wed, 19 Apr 2023 13:52:54 +0000
(10:52 -0300)
To use the existing accessor and be consistent.
Signef-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/machine.c
patch
|
blob
|
history
diff --git
a/tools/perf/util/machine.c
b/tools/perf/util/machine.c
index 25738775834e9e1ef3a02a397344c30f23749ca2..85787672d335e76dada123098c4f8053ff2f2a79 100644
(file)
--- 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);