[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <540fd8fd4542c9737224a43fa4123ceb679a7b59.camel@chromium.org>
Date: Fri, 27 Nov 2020 10:17:31 +0100
From: Florent Revest <revest@...omium.org>
To: Yonghong Song <yhs@...com>, bpf@...r.kernel.org
Cc: ast@...nel.org, daniel@...earbox.net, andrii@...nel.org,
kpsingh@...omium.org, revest@...gle.com,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH bpf-next 2/2] bpf: Add a selftest for the tracing
bpf_get_socket_cookie
On Thu, 2020-11-26 at 23:56 -0800, Yonghong Song wrote:
>
> On 11/26/20 9:02 AM, Florent Revest wrote:
> > This builds up on the existing socket cookie test which checks
> > whether
> > the bpf_get_socket_cookie helpers provide the same value in
> > cgroup/connect6 and sockops programs for a socket created by the
> > userspace part of the test.
> >
> > Adding a tracing program to the existing objects requires a
> > different
> > attachment strategy and different headers.
> >
> > Signed-off-by: Florent Revest <revest@...gle.com>
> > ---
> > .../selftests/bpf/progs/socket_cookie_prog.c | 41
> > ++++++++++++++++---
> > .../selftests/bpf/test_socket_cookie.c | 18 +++++---
>
> Do you think it is possible to migrate test_socket_cookie.c to
> selftests/bpf/prog_tests so it can be part of test_progs so
> it will be regularly exercised?
I suppose it's possible, I can give it a try :)
Powered by blists - more mailing lists