All of lore.kernel.org
 help / color / mirror / Atom feed
* [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

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.