[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200515145725.GA3565839@krava>
Date: Fri, 15 May 2020 16:57:25 +0200
From: Jiri Olsa <jolsa@...hat.com>
To: Andrii Nakryiko <andrii.nakryiko@...il.com>
Cc: Jiri Olsa <jolsa@...nel.org>, Alexei Starovoitov <ast@...nel.org>,
Daniel Borkmann <daniel@...earbox.net>,
Wenbo Zhang <ethercflow@...il.com>,
Networking <netdev@...r.kernel.org>, bpf <bpf@...r.kernel.org>,
Yonghong Song <yhs@...com>, Martin KaFai Lau <kafai@...com>,
David Miller <davem@...hat.com>,
John Fastabend <john.fastabend@...il.com>,
Jesper Dangaard Brouer <hawk@...nel.org>,
KP Singh <kpsingh@...omium.org>,
Andrii Nakryiko <andriin@...com>,
Brendan Gregg <bgregg@...flix.com>,
Florent Revest <revest@...omium.org>,
Al Viro <viro@...iv.linux.org.uk>
Subject: Re: [PATCH 8/9] selftests/bpf: Add test for d_path helper
On Thu, May 14, 2020 at 03:48:20PM -0700, Andrii Nakryiko wrote:
> On Wed, May 6, 2020 at 6:32 AM Jiri Olsa <jolsa@...nel.org> wrote:
> >
> > Adding test for d_path helper which is pretty much
> > copied from Wenbo Zhang's test for bpf_get_fd_path,
> > which never made it in.
> >
> > I've failed so far to compile the test with <linux/fs.h>
> > kernel header, so for now adding 'struct file' with f_path
> > member that has same offset as kernel's file object.
> >
>
> Switch to using vmlinux.h? It would also be nice to use skeletons
> instead of bpf_object__xxx API.
I just spot it this week when checking for something else.. yep, nice ;-)
thanks,
jirka
>
> > Original-patch-by: Wenbo Zhang <ethercflow@...il.com>
> > Signed-off-by: Jiri Olsa <jolsa@...nel.org>
> > ---
> > .../testing/selftests/bpf/prog_tests/d_path.c | 196 ++++++++++++++++++
> > .../testing/selftests/bpf/progs/test_d_path.c | 71 +++++++
> > 2 files changed, 267 insertions(+)
> > create mode 100644 tools/testing/selftests/bpf/prog_tests/d_path.c
> > create mode 100644 tools/testing/selftests/bpf/progs/test_d_path.c
> >
>
> [...]
>
Powered by blists - more mailing lists