mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: bot+bpf-ci@kernel.org
To: yangtiezhu@loongson.cn,ast@kernel.org,daniel@iogearbox.net,andrii@kernel.org,eddyz87@gmail.com,memxor@gmail.com
Cc: bpf@vger.kernel.org,linux-kernel@vger.kernel.org,ast@kernel.org,andrii@kernel.org,daniel@iogearbox.net,martin.lau@kernel.org,eddyz87@gmail.com,yonghong.song@linux.dev,mason@kernel.org,ihor.solodrai@linux.dev
Subject: Re: [PATCH bpf-next] selftests/bpf: Use snake_case for subtest descriptions in jit_insns_arena.c
Date: Mon, 19 Oct 2026 02:54:42 +0000 (UTC)	[thread overview]
Message-ID: <ddd03929abea4bc45cd39901bf5fe7378ff634e0d6e71d948b8a47776c49604e@mail.kernel.org> (raw)
In-Reply-To: <20261019022705.30670-1-yangtiezhu@loongson.cn>

[-- Attachment #1: Type: text/plain, Size: 2547 bytes --]

> selftests/bpf: Use snake_case for subtest descriptions in jit_insns_arena.c

TL;DR: Commit message only: the snake_case rename is described as fixing a
test_progs filter parsing bug, but the failures come from unquoted shell
word-splitting; quoted names should already work, so the wording may be
inaccurate.

> selftests/bpf: Use snake_case for subtest descriptions in jit_insns_arena.c
>
> Normalize two inline assembly test descriptions in jit_insns_arena.c
> from space-separated strings to snake_case for consistency and to fix
> command-line filter parsing in test_progs. Otherwise:
>
> $ sudo ./test_progs -t jit_insns/arena access with zero offset
> Usage: test_progs [OPTION...]
> Try `test_progs --help' or `test_progs --usage' for more information.
>
> $ sudo ./test_progs -t jit_insns/cast to a user address
> Usage: test_progs [OPTION...]
> Try `test_progs --help' or `test_progs --usage' for more information.
>
> Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>

The commit message says the rename fixes "command-line filter parsing in
test_progs".  Is that description accurate?

In the quoted examples the shell word-splits the unquoted argument, so
test_progs receives extra positional arguments ("access", "with", "zero",
"offset").  parse_arg() in test_progs.c rejects those with:

    case ARGP_KEY_ARG:
        argp_usage(state);

and this happens before any filter is parsed.

The filter code itself handles spaces.  parse_test_list() splits only on
',', insert_test() splits on the first '/', and glob_match() compares
characters literally.  A quoted invocation such as:

    $ sudo ./test_progs -t 'jit_insns/arena access with zero offset'

should be accepted and match the subtest description through
match_subtest_desc().

Before this patch, -t jit_insns/arena_zero_off also worked, because
match_subtest_desc() additionally matches the BPF function name.

Other __description() strings in the tree contain spaces and show the same
shell-quoting behaviour when passed unquoted.

Could the commit message instead describe this as making the two names
convenient to pass unquoted on the command line, and consistent with the
snake_case names of the sibling subtests registered in test_jit_insns()
(alu_imm, alu_reg, ...), rather than as a fix for a parsing bug in
test_progs?


---
AI reviewed your patch. Please fix the bug or email reply why it's not a bug.
See: https://github.com/kernel-patches/vmtest/blob/master/ci/claude/README.md

CI run summary: https://github.com/kernel-patches/bpf/actions/runs/39190996107

      reply	other threads:[~2026-10-19  2:54 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-19  2:27 Tiezhu Yang
2026-10-19  2:54 ` bot+bpf-ci [this message]

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=ddd03929abea4bc45cd39901bf5fe7378ff634e0d6e71d948b8a47776c49604e@mail.kernel.org \
    --to=bot+bpf-ci@kernel.org \
    --cc=andrii@kernel.org \
    --cc=ast@kernel.org \
    --cc=bpf@vger.kernel.org \
    --cc=daniel@iogearbox.net \
    --cc=eddyz87@gmail.com \
    --cc=ihor.solodrai@linux.dev \
    --cc=linux-kernel@vger.kernel.org \
    --cc=martin.lau@kernel.org \
    --cc=mason@kernel.org \
    --cc=memxor@gmail.com \
    --cc=yangtiezhu@loongson.cn \
    --cc=yonghong.song@linux.dev \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®