All of lore.kernel.org
 help / color / mirror / Atom feed
From: Haojian Zhuang <haojian.zhuang@linaro.org>
To: Eduard Zingerman <eddyz87@gmail.com>
Cc: bpf@vger.kernel.org, Alexei Starovoitov <ast@kernel.org>,
	Daniel Borkmann <daniel@iogearbox.net>,
	John Fastabend <john.fastabend@gmail.com>
Subject: Re: [PATCH] bpf: check mem for dynptr type
Date: Mon, 4 Mar 2024 13:46:34 +0000	[thread overview]
Message-ID: <ZeXQuv2jCsKnYZnr@hackbox2.linaro.org> (raw)
In-Reply-To: <564df7e8c14864641c2f57a5283de53c746ea047.camel@gmail.com>

On Mon, Mar 04, 2024 at 03:13:29PM +0200, Eduard Zingerman wrote:
> On Mon, 2024-03-04 at 13:02 +0000, Haojian Zhuang wrote:
> [...]
> 
> > Yes, I'm referring to bpf_user_ringbuf_drain() helper function.
> > 
> > Yes, I should extend bpf/progs/user_ringbuf_success.c. And it could be
> > loaded by bpf/prog_tests/user_ringbuf.c.
> 
> Before doing so, could you please share example you have in mind?
> 

Sure. My test case is in the link (https://github.com/hzhuang1/linux/blob/bpf02/tools/testing/selftests/bpf/progs/test_crypto_kern.c).

> > But I failed to find the binary of user_ringbuf.c after bpf test cases
> > built. And there're no binaries for the test cases in bpf/prog_tests
> > directory. How to make use of these test cases? I failed to find
> > documents on it. Could you help to share any tips to me? Thanks
> 
> The binary that runs tests is called "test_progs" and is compiled
> using target "test_progs" under "tools/testing/selftests/bpf" directory.
> Specific tests could be run using commands like:
> - "./test_progs -a user_ringbuf" (to run all subtests in the group);
> - "./test_progs -a user_ringbuf/test_user_ringbuf_loop"
>   (to run one subtest from the group).
> 

Thanks. I'll follow this instruction.

> I have an old writeup on setting up local testing environment,
> if you need it I can update and share it.

It's better if you can share it.

Best Regards
Haojian

  reply	other threads:[~2024-03-04 13:46 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-03  2:37 [PATCH] bpf: check mem for dynptr type Haojian Zhuang
2024-03-04 12:46 ` Eduard Zingerman
2024-03-04 13:02   ` Haojian Zhuang
2024-03-04 13:13     ` Eduard Zingerman
2024-03-04 13:46       ` Haojian Zhuang [this message]
2024-03-04 17:08         ` Eduard Zingerman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ZeXQuv2jCsKnYZnr@hackbox2.linaro.org \
    --to=haojian.zhuang@linaro.org \
    --cc=ast@kernel.org \
    --cc=bpf@vger.kernel.org \
    --cc=daniel@iogearbox.net \
    --cc=eddyz87@gmail.com \
    --cc=john.fastabend@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.