]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commiteb2837068cccfcc9890cdb6171d7056244f4ed88
tree1ed88276ceb00e7e320b8892846ae72f6af32599
parent1a195ea3fa9cfe6c0e53a68b68bd19cee3212bd9
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