Files
erofs-linux/tools/perf/util
Masami Hiramatsu 4afc81cd1c perf symbols: Load map before using map->map_ip()
In map_groups__find_symbol() map->map_ip is used without ensuring the
map is loaded. Then the address passed to map->map_ip isn't mapped at
the first time.

E.g. below code always fails to get a symbol at the first call;

	addr = /* Somewhere in the kernel text */
	symbol_conf.try_vmlinux_path = true;
	symbol__init();
	host_machine = machine__new_host();
	sym = machine__find_kernel_function(host_machine,
					 addr, NULL, NULL);
	/* Note that machine__find_kernel_function calls
	   map_groups__find_symbol */

This ensures it by calling map__load before using it in
map_groups__find_symbol().

Signed-off-by: Masami Hiramatsu <[email protected]>
Cc: "David A. Long" <[email protected]>
Cc: David Ahern <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Oleg Nesterov <[email protected]>
Cc: Srikar Dronamraju <[email protected]>
Cc: "Steven Rostedt (Red Hat)" <[email protected]>
Cc: [email protected]
Link: http://lkml.kernel.org/r/20140123022950.7206.17357.stgit@kbuild-fedora.yrl.intra.hitachi.co.jp
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
2014-01-23 15:48:12 -03:00
..
…
2013-12-27 15:17:00 -03:00
…
…
2014-01-13 11:37:17 -03:00
2014-01-13 11:37:17 -03:00
…
…
2013-12-27 15:17:00 -03:00
2013-11-05 15:15:07 -03:00
2013-11-05 15:15:07 -03:00
…
2013-12-19 11:34:27 -03:00
…
…
…
…
…
…
…
2013-12-18 14:43:04 -03:00
2013-11-07 11:51:19 -03:00
2013-08-07 17:35:26 -03:00
2013-08-07 17:35:26 -03:00
…
…
2013-09-11 10:09:32 -03:00
…
…
2013-12-27 15:17:00 -03:00
…
…
…
…
…