* [PATCH] perf build: Do not print PERF_VERSION with make -s
@ 2026-12-01 18:08 Sasha Levin
2026-12-01 18:12 ` sashiko-bot
2026-12-01 18:38 ` Arnaldo Carvalho de Melo
0 siblings, 2 replies; 3+ messages in thread
From: Sasha Levin @ 2026-12-01 18:08 UTC (permalink / raw)
To: Arnaldo Carvalho de Melo, Namhyung Kim
Cc: Sasha Levin, Peter Zijlstra, Ingo Molnar, Mark Rutland,
Alexander Shishkin, Jiri Olsa, Ian Rogers, Adrian Hunter,
James Clark, linux-perf-users, linux-kernel
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_.
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
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] perf build: Do not print PERF_VERSION with make -s
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
1 sibling, 0 replies; 3+ messages in thread
From: sashiko-bot @ 2026-12-01 18:12 UTC (permalink / raw)
To: Sasha Levin; +Cc: linux-perf-users
> 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_.
>
> Signed-off-by: Sasha Levin <sashal@kernel.org>
Sashiko has reviewed this patch and found no issues.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261201180855.740952-1-sashal@kernel.org?part=1
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] perf build: Do not print PERF_VERSION with make -s
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
1 sibling, 0 replies; 3+ messages in thread
From: Arnaldo Carvalho de Melo @ 2026-12-01 18:38 UTC (permalink / raw)
To: Sasha Levin
Cc: Namhyung Kim, Peter Zijlstra, Ingo Molnar, Mark Rutland,
Alexander Shishkin, Jiri Olsa, Ian Rogers, Adrian Hunter,
James Clark, linux-perf-users, linux-kernel
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-12-01 18:38 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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.