|
@@ -1830,8 +1830,8 @@ static int dso__load_kernel_sym(struct dso *self, struct map *map,
|
|
const char *kallsyms_filename = NULL;
|
|
const char *kallsyms_filename = NULL;
|
|
char *kallsyms_allocated_filename = NULL;
|
|
char *kallsyms_allocated_filename = NULL;
|
|
/*
|
|
/*
|
|
- * Step 1: if the user specified a vmlinux filename, use it and only
|
|
|
|
- * it, reporting errors to the user if it cannot be used.
|
|
|
|
|
|
+ * Step 1: if the user specified a kallsyms or vmlinux filename, use
|
|
|
|
+ * it and only it, reporting errors to the user if it cannot be used.
|
|
*
|
|
*
|
|
* For instance, try to analyse an ARM perf.data file _without_ a
|
|
* For instance, try to analyse an ARM perf.data file _without_ a
|
|
* build-id, or if the user specifies the wrong path to the right
|
|
* build-id, or if the user specifies the wrong path to the right
|
|
@@ -1844,6 +1844,11 @@ static int dso__load_kernel_sym(struct dso *self, struct map *map,
|
|
* validation in dso__load_vmlinux and will bail out if they don't
|
|
* validation in dso__load_vmlinux and will bail out if they don't
|
|
* match.
|
|
* match.
|
|
*/
|
|
*/
|
|
|
|
+ if (symbol_conf.kallsyms_name != NULL) {
|
|
|
|
+ kallsyms_filename = symbol_conf.kallsyms_name;
|
|
|
|
+ goto do_kallsyms;
|
|
|
|
+ }
|
|
|
|
+
|
|
if (symbol_conf.vmlinux_name != NULL) {
|
|
if (symbol_conf.vmlinux_name != NULL) {
|
|
err = dso__load_vmlinux(self, map,
|
|
err = dso__load_vmlinux(self, map,
|
|
symbol_conf.vmlinux_name, filter);
|
|
symbol_conf.vmlinux_name, filter);
|