perf symbols: Introduce 'for' method to iterate over the symbols with a given name
authorArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 16 Jan 2015 19:40:25 +0000 (16:40 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 21 Jan 2015 13:06:15 +0000 (10:06 -0300)
commit0a3873a8e2709ebc759361e2d872d9f71541806c
tree735b7be4757a8af9f4b5fd8363440c9cdeb980fc
parent564c62a4d7f9a4b60920ee0b02cfe890471d87f4
perf symbols: Introduce 'for' method to iterate over the symbols with a given name

Removing boilerplate from two places, where one would have to find the
first entry, then iterate using symbol__next_by_name + strcmp to see if
the next member had the same name.

Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Link: http://lkml.kernel.org/n/tip-eh73z8gthv20yowirmx2yk38@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/map.h
tools/perf/util/probe-event.c