From: Namhyung Kim Date: Fri, 16 Jan 2015 18:31:28 +0000 (-0300) Subject: perf symbols: Return the first entry with a given name in find_by_name method X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~204^2^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=de4809999dac44c51e1f9ad892deb0336296dc4e;p=pandora-kernel.git perf symbols: Return the first entry with a given name in find_by_name method When a dso contains multiple symbols which have same name, current dso__find_symbol_by_name() only finds an one of them and there's no way to get the all symbols without going through the rbtree. So make symbols__find_by_name() return the first entry with the given name and the next patch in this series will provide a way to iterate from there, by the name ordered rb_tree, till a suitable symbol is found. Signed-off-by: Namhyung Kim Cc: David Ahern Cc: Jiri Olsa Cc: Masami Hiramatsu Link: http://lkml.kernel.org/r/1421234288-22758-2-git-send-email-namhyung@kernel.org [ Yanked this independent hunk, without changes, from a larger patch ] Signed-off-by: Arnaldo Carvalho de Melo --- Reading git-diff-tree failed