[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <6232c089bbaf2_487f208db@john.notmuch>
Date: Wed, 16 Mar 2022 22:00:57 -0700
From: John Fastabend <john.fastabend@...il.com>
To: kkourt@...urt.io, Arnaldo Carvalho de Melo <acme@...nel.org>
Cc: dwarves@...r.kernel.org, bpf@...r.kernel.org,
linux-kernel@...r.kernel.org,
Kornilios Kourtis <kornilios@...valent.com>
Subject: RE: [PATCH 2/2] dwarves: cus__load_files: set errno if load fails
kkourt@ wrote:
> From: Kornilios Kourtis <kornilios@...valent.com>
>
> This patch improves the error seen by the user by setting errno in
> cus__load_files(). Otherwise, we get a "No such file or directory" error
> which might be confusing.
>
> Before the patch, using a bogus file:
> $ ./pahole -J ./vmlinux-5.3.18-24.102-default.debug
> pahole: ./vmlinux-5.3.18-24.102-default.debug: No such file or directory
> $ ls ./vmlinux-5.3.18-24.102-default.debug
> /home/kkourt/src/hubble-fgs/vmlinux-5.3.18-24.102-default.debug
>
> After the patch:
> $ ./pahole -J ./vmlinux-5.3.18-24.102-default.debug
> pahole: ./vmlinux-5.3.18-24.102-default.debug: Unknown error -22
>
> Which is not very helpful, but less confusing.
>
> Signed-off-by: Kornilios Kourtis <kornilios@...valent.com>
> ---
With the err to -err fix Arnaldo proposed.
Acked-by: John Fastabend <john.fastabend@...il.com>
Powered by blists - more mailing lists