OSDN Git Service

perf map_groups: Pass the object to map_groups__find_ams()
authorArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 4 Nov 2019 13:14:05 +0000 (10:14 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 12 Nov 2019 11:20:53 +0000 (08:20 -0300)
commit9d355b381b35be1ac4e77600d6b9b27c674c5d5f
tree1ed88276ceb00e7e320b8892846ae72f6af32599
parentf2baa060cd766f4e585339423891e0063179d702
perf map_groups: Pass the object to map_groups__find_ams()

We were just passing a map to look for and reuse its map->groups member,
but the idea is that this is going away, as a map can be in multiple
rb_trees when being reused via a map_node, so do as all the other
map_groups methods and pass as its first arg the object being operated
on.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: https://lkml.kernel.org/n/tip-nmi2pbggqloogwl6vxrvex5a@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/arch/s390/annotate/instructions.c
tools/perf/util/annotate.c
tools/perf/util/map.c
tools/perf/util/map_groups.h