From: Arnaldo Carvalho de Melo <acme@kernel.org>
To: Sasha Levin <sashal@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>,
Peter Zijlstra <peterz@infradead.org>,
Ingo Molnar <mingo@redhat.com>,
Mark Rutland <mark.rutland@arm.com>,
Alexander Shishkin <alexander.shishkin@linux.intel.com>,
Jiri Olsa <jolsa@kernel.org>, Ian Rogers <irogers@google.com>,
Adrian Hunter <adrian.hunter@intel.com>,
James Clark <james.clark@linaro.org>,
linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] perf build: Do not print PERF_VERSION with make -s
Date: Tue, 1 Dec 2026 15:38:03 -0300 [thread overview]
Message-ID: <aw8UC9ii3eDsQ4ZV@phoenix2> (raw)
In-Reply-To: <20261201180855.740952-1-sashal@kernel.org>
On Tue, Dec 01, 2026 at 01:08:49PM -0500, Sasha Levin wrote:
> PERF-VERSION-GEN prints the version whenever it changes, which is after
> every commit when building from git:
>
> $ make -s -C tools/perf
> PERF_VERSION = 7.4.rc5.g253f86660c1f
>
> Leave the line out when make runs with -s, which
> tools/scripts/Makefile.include exports as quiet=silent_.
Acked-by: Arnaldo Carvalho de Melo <acme@redhat.com>
- Arnaldo
> Signed-off-by: Sasha Levin <sashal@kernel.org>
> ---
> tools/perf/util/PERF-VERSION-GEN | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tools/perf/util/PERF-VERSION-GEN b/tools/perf/util/PERF-VERSION-GEN
> index d7dc7c28508c0..3ed30e85ba94f 100755
> --- a/tools/perf/util/PERF-VERSION-GEN
> +++ b/tools/perf/util/PERF-VERSION-GEN
> @@ -45,7 +45,7 @@ else
> VC=unset
> fi
> test "$VN" = "$VC" || {
> - echo >&2 " PERF_VERSION = $VN"
> + test "$quiet" = silent_ || echo >&2 " PERF_VERSION = $VN"
> echo "#define PERF_VERSION \"$VN\"" >$GVF
> }
>
> --
> 2.53.0
prev parent reply other threads:[~2026-12-01 18:38 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-01 18:08 [PATCH] perf build: Do not print PERF_VERSION with make -s Sasha Levin
2026-12-01 18:12 ` sashiko-bot
2026-12-01 18:38 ` Arnaldo Carvalho de Melo [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=aw8UC9ii3eDsQ4ZV@phoenix2 \
--to=acme@kernel.org \
--cc=adrian.hunter@intel.com \
--cc=alexander.shishkin@linux.intel.com \
--cc=irogers@google.com \
--cc=james.clark@linaro.org \
--cc=jolsa@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-perf-users@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=mingo@redhat.com \
--cc=namhyung@kernel.org \
--cc=peterz@infradead.org \
--cc=sashal@kernel.org \
/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.