Re: [PATCH] filesys.c: add debian vmlinux loc to default search dirs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2022/08/25 13:07, brookxu wrote:
> From: "Chunguang.Xu" <chunguang.xu@xxxxxxxxxx>
> 
> Now crash cannnot found debian/ubuntu kernel vmlinux, we need
> to explicitly specify the path to vmlinux. Try to add the debian
> vmlinux location to default search dirs.

Thanks for the patch.

I don't have a debian/ubuntu machine, so one question,
are the full paths of vmlinux on debian/ubuntu like these?

/usr/lib/debug/boot/vmlinux-5.11.0-22-generic
/usr/lib/debug/boot/vmlinux-5.11.0-23-generic
...

Thanks,
Kazu

> 
> Signed-off-by: Chunguang Xu <chunguang.xu@xxxxxxxxxx>
> ---
>   filesys.c | 3 ++-
>   1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/filesys.c b/filesys.c
> index a863f04..c2ea78d 100644
> --- a/filesys.c
> +++ b/filesys.c
> @@ -319,7 +319,7 @@ match_proc_version(void)
>   
>   #define CREATE  1
>   #define DESTROY 0
> -#define DEFAULT_SEARCHDIRS 5
> +#define DEFAULT_SEARCHDIRS 6
>   #define EXTRA_SEARCHDIRS 5
>   
>   static char **
> @@ -336,6 +336,7 @@ build_searchdirs(int create, int *preferred)
>           	"/boot/",
>   	        "/boot/efi/redhat",
>   		"/boot/efi/EFI/redhat",
> +		"/usr/lib/debug/boot/",
>           	"/",
>           	NULL
>   	};
--
Crash-utility mailing list
Crash-utility@xxxxxxxxxx
https://listman.redhat.com/mailman/listinfo/crash-utility
Contribution Guidelines: https://github.com/crash-utility/crash/wiki




[Index of Archives]     [Fedora Development]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]

 

Powered by Linux