mirror of
https://github.com/torvalds/linux.git
synced 2026-11-27 00:43:12 +00:00
perf tools: Fix session init on non-modular kernels
perf top and perf record refuses to initialize on non-modular kernels: refuse to initialize: $ perf top -v map_groups__set_modules_path_dir: cannot open /lib/modules/2.6.33-rc6-tip-00586-g398dde3-dirty/ Cc: Arnaldo Carvalho de Melo <[email protected]> Cc: Frédéric Weisbecker <[email protected]> Cc: Mike Galbraith <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Paul Mackerras <[email protected]> LKML-Reference: <[email protected]> Signed-off-by: Ingo Molnar <[email protected]>
This commit is contained in:
@@ -1937,7 +1937,7 @@ int map_groups__create_kernel_maps(struct map_groups *self,
|
||||
return -1;
|
||||
|
||||
if (symbol_conf.use_modules && map_groups__create_modules(self) < 0)
|
||||
return -1;
|
||||
return 0;
|
||||
/*
|
||||
* Now that we have all the maps created, just set the ->end of them:
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user