From: sashiko-bot@kernel.org
To: "Weidong Wang" <weidongw@illinois.edu>
Cc: linux-perf-users@vger.kernel.org
Subject: Re: [PATCH] perf annotate: Return an error for --gtk with --show-nr-samples
Date: Thu, 03 Dec 2026 02:26:16 +0000 [thread overview]
Message-ID: <sashiko-outbox-246992@kernel.org> (raw)
In-Reply-To: <20261202-kbug-l1942-v1-1-67b010d660ea@illinois.edu>
> From: Weidong Wang <weidongw@illinois.edu>
>
> cmd_annotate() rejects --show-nr-samples in --gtk mode by printing an
> error and returning ret. At that point ret holds the successful result
> of hists__init() and is not updated again, so it is 0 and perf annotate
> exits with status 0 without doing anything.
>
> Return -EINVAL instead, as the other option checks in the function do,
> so the failure is visible to callers.
>
> Found by a static analysis tool.
>
> The fix and this changelog were drafted with AI assistance (Claude Code,
> with a second review by OpenAI Codex), then reviewed by the submitter.
>
> Fixes: 1ac39372e06f ("perf annotate stdio: Support --show-nr-samples option")
> Signed-off-by: Weidong Wang <weidongw@illinois.edu>
Sashiko has reviewed this patch and found no issues.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261202-kbug-l1942-v1-1-67b010d660ea@illinois.edu?part=1
prev parent reply other threads:[~2026-12-03 2:26 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-03 2:23 [PATCH] perf annotate: Return an error for --gtk with --show-nr-samples Weidong Wang via B4 Relay
2026-12-03 2:23 ` Weidong Wang
2026-12-03 2:26 ` sashiko-bot [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=sashiko-outbox-246992@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=linux-perf-users@vger.kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
--cc=weidongw@illinois.edu \
/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.