[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <871qpbuydn.fsf@all.your.base.are.belong.to.us>
Date: Wed, 07 Dec 2022 14:39:00 +0100
From: Björn Töpel <bjorn@...nel.org>
To: Magnus Karlsson <magnus.karlsson@...il.com>,
magnus.karlsson@...el.com, ast@...nel.org, daniel@...earbox.net,
netdev@...r.kernel.org, maciej.fijalkowski@...el.com,
bpf@...r.kernel.org, yhs@...com, andrii@...nel.org,
martin.lau@...ux.dev, song@...nel.org, john.fastabend@...il.com,
kpsingh@...nel.org, sdf@...gle.com, haoluo@...gle.com,
jolsa@...nel.org
Cc: jonathan.lemon@...il.com
Subject: Re: [PATCH bpf-next 06/15] selftests/xsk: add debug option for
creating netdevs
Magnus Karlsson <magnus.karlsson@...il.com> writes:
> From: Magnus Karlsson <magnus.karlsson@...el.com>
>
> Add a new option to the test_xsk.sh script that only creates the two
> veth netdevs and the extra namespace, then exits without running any
> tests. The failed test can then be executed in the debugger without
> having to create the netdevs and namespace manually. For ease-of-use,
> the veth netdevs to use are printed so they can be copied into the
> debugger.
>
> Here is an example how to use it:
>
>> sudo ./test_xsk.sh -d
>
> veth10 veth11
>
>> gdb xskxceiver
>
> In gdb:
>
> run -i veth10 -i veth11
>
> And now the test cases can be dugged with gdb.
Nit: "debugged"
Powered by blists - more mailing lists