From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-yb1-f179.google.com (mail-yb1-f179.google.com [209.85.219.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A90C4245B1B for ; Thu, 13 Feb 2025 20:36:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.179 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739478977; cv=none; b=mRMtui1JTJUncazRU5i7flwdj/JyPqIBGQvGFPvDsDTL5Y3PwZYaqDZsn/UQnQjsaPhni+gfP81FTPjH9DgLGR8iUP9AlUHtFLzGa+VzlC0xGWCVDWuoXX2Kl25YWPZSfMQMN0g6pw8KpueX5MSiwXANmmwLnqVV55m0inJcYJs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739478977; c=relaxed/simple; bh=3OmoPPtRJ3Eu45qzEZ5Fn9o4ggtZYUBS4BI+ZuxwU9A=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=D0Y+kJLoKwPa11UlScLj7MIiotDaRI/OzduT6mSEZcJcO7xIwbp/+RMSgMcvySNA8pjrVkII0DZSLe0QXAobH88rxzEWGhKf/kUjVQKb2o9F9Pdoum3dJ0tZkRoAwLDf5IBRMXUo9QwlFyBm5ZJMH6DKr7TNl/EZ7JnCoGXTOrk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=rivosinc.com; spf=pass smtp.mailfrom=rivosinc.com; dkim=pass (2048-bit key) header.d=rivosinc-com.20230601.gappssmtp.com header.i=@rivosinc-com.20230601.gappssmtp.com header.b=acmIhGlJ; arc=none smtp.client-ip=209.85.219.179 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=rivosinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=rivosinc.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=rivosinc-com.20230601.gappssmtp.com header.i=@rivosinc-com.20230601.gappssmtp.com header.b="acmIhGlJ" Received: by mail-yb1-f179.google.com with SMTP id 3f1490d57ef6-e5b3dbd6732so1123483276.1 for ; Thu, 13 Feb 2025 12:36:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1739478974; x=1740083774; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=FBViFwG3GkhnREQpuSeahWWDP1mD68WVlRn8a2dnxcU=; b=acmIhGlJgUa5X6x/p6lGSR1OOTQm1fFvAnS8y5pnJIQNrmErCwufB/us5tLL+QCi3d 5/c2g9J/IeOzJDhW6nAaE+9xa3w0MILNPonFLCcxhj1nzE6uaU2zgaQxwGSg5wFjJMZH wDe/5xMMaBdU8pupcqRhTla0MVHXbLiMtoU3+7wiYleKzhrGjYEoPoxQgRSvC70TiG9B lGAZDAFhqkqInpWF4EkfE+mLuzrar8bs84DmX5t/UAG/neQjPpE5Ip7b9g3jNaLAsFYh eXtEeYKTOeL1hqbOa+I/FU5/wNK0QtBeF6GIZV48r7NW3DupoIZKnYu5Z9y5DbuiFeHt lUwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739478974; x=1740083774; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=FBViFwG3GkhnREQpuSeahWWDP1mD68WVlRn8a2dnxcU=; b=ts1TpiutlbAPhhpt3xG21VvKX4uoiZGDlDNA/LlqyvbPnp+gghiTnZPs8DlvpNWu+f jNxdSTHXtivxiM8kq6nbng8sgvk3R2V7X5ypcDPr6XrxJJFQACSwzcG9yU5pHjj/QREN /D3pVRybGvTGdvyp6iu7C/Wk2mROqAWe48uxv5eRmvD+B3KrmJPrgR9z/9C37e/gQULG xS0sswCQzr6cH1auOTPUFe4VoJlISjdbZevRsp9JrYPXqCFg8U4GpaWenwV/YMhruSVs XWPRF2Mj0q8z0YD0RCRe28selXiOgHN0o722J6Sv/ZB3DIc+c2XW/T5Uk7D4GyjiLALa h3Ag== X-Forwarded-Encrypted: i=1; AJvYcCW+MzCCBkBKQKoC7k6DqCdh2rR4xfL6TYyzczJ96VLEPQKY7eiYexqEqaPbpWo0yPVYf+xMhbrwspt1QTSItHuh@vger.kernel.org X-Gm-Message-State: AOJu0YwUmaM9Vyc8RWwT9J5TZ5RfQVUeWE2SLFs6p69aUb8BLGUynsBM Ct/1tx070jMMnNHl6vE5vONfck+Qb7lJVgeMzCfTzpYA06qCajj1l3MW0aqJCTo= X-Gm-Gg: ASbGncvJlCOLU+SzNR3t1tB8m7oaL7SoO11rX4BOAaQvlP8sT6nmQ536drNU5KTCMIM VLXxKmUf1diPl8dOLbRSF+cxJOs9ltDl0HyeI9q4sKaYR4wP8yuPvTmrnWbHDN1Y4VuP94+nlVq jHi/a+BF6TPkgl4+cJ7rFneJvw7rmdHnrfAQn8RtN2R1XOfYj4mjhmHNOgXx2vF+MS2lo7lhFxN 4hBV5z56+iiq4Nuxa4RbQw9+8IEP6rM42R+mxTxSibo/AeKy7vXTVq2m9kpYzugRkuMWCvLDvS4 VLI= X-Google-Smtp-Source: AGHT+IFli3J2pYxGrWlDhVf9piBN6Mt57GNwjDPRKZNkn4CDBVtemQHp9qzLUy0Yrgza7R0zwIrtIA== X-Received: by 2002:a05:6902:11c7:b0:e57:4db7:6d51 with SMTP id 3f1490d57ef6-e5d9f170324mr8763028276.32.1739478974506; Thu, 13 Feb 2025 12:36:14 -0800 (PST) Received: from ghost ([50.146.0.9]) by smtp.gmail.com with ESMTPSA id 3f1490d57ef6-e5dadeca97bsm580863276.32.2025.02.13.12.36.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Feb 2025 12:36:13 -0800 (PST) Date: Thu, 13 Feb 2025 12:36:12 -0800 From: Charlie Jenkins To: Jiri Olsa Cc: Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Namhyung Kim , Mark Rutland , Alexander Shishkin , Ian Rogers , Adrian Hunter , Quentin Monnet , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Josh Poimboeuf , Mykola Lysenko , Shuah Khan , Jiri Kosina , Benjamin Tissoires , Steven Rostedt , bpf@vger.kernel.org, linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, linux-pm@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-input@vger.kernel.org, linux-trace-kernel@vger.kernel.org Subject: Re: [PATCH v2 1/2] tools: Unify top-level quiet infrastructure Message-ID: References: <20250210-quiet_tools-v2-0-b2f18cbf72af@rivosinc.com> <20250210-quiet_tools-v2-1-b2f18cbf72af@rivosinc.com> Precedence: bulk X-Mailing-List: linux-perf-users@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Tue, Feb 11, 2025 at 02:38:05PM +0100, Jiri Olsa wrote: > On Mon, Feb 10, 2025 at 10:34:42AM -0800, Charlie Jenkins wrote: > > SNIP > > > +# Beautify output > > +# --------------------------------------------------------------------------- > > +# > > +# Most of build commands in Kbuild start with "cmd_". You can optionally define > > +# "quiet_cmd_*". If defined, the short log is printed. Otherwise, no log from > > +# that command is printed by default. > > +# > > +# e.g.) > > +# quiet_cmd_depmod = DEPMOD $(MODLIB) > > +# cmd_depmod = $(srctree)/scripts/depmod.sh $(DEPMOD) $(KERNELRELEASE) > > +# > > +# A simple variant is to prefix commands with $(Q) - that's useful > > +# for commands that shall be hidden in non-verbose mode. > > +# > > +# $(Q)$(MAKE) $(build)=scripts/basic > > +# > > +# To put more focus on warnings, be less verbose as default > > +# Use 'make V=1' to see the full commands > > + > > +ifeq ($(V),1) > > + quiet = > > + Q = > > +else > > + quiet = quiet_ > > + Q = @ > > +endif > > + > > # If the user is running make -s (silent mode), suppress echoing of commands > > # make-4.0 (and later) keep single letter options in the 1st word of MAKEFLAGS. > > ifeq ($(filter 3.%,$(MAKE_VERSION)),) > > @@ -145,9 +172,11 @@ short-opts := $(filter-out --%,$(MAKEFLAGS)) > > endif > > > > ifneq ($(findstring s,$(short-opts)),) > > - silent=1 > > hi, > I think you need to keep this one, there's "ifneq ($(silent),1)" condition > later in the file for the silent (-s) builds Oh yes, thank you. - Charlie > > jirka > > > > + quiet=silent_ > > endif > > > > +export quiet Q > > + > > # > > # Define a callable command for descending to a new directory > > # > > > > -- > > 2.43.0 > >