From nobody Sun Dec 14 06:20:11 2025 Received: from mail-pj1-f41.google.com (mail-pj1-f41.google.com [209.85.216.41]) (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 2E5C5266B7E for ; Thu, 13 Feb 2025 21:12:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739481155; cv=none; b=KTNbavm4V6HoLFsIDq/Uu0I7jVbq2pOFnCqrqu7mxL3jDbW6lD15cbM85KwlguGLGwBQ+J9632UlVS4n5Pk12mDGuE1csbkSOS8fpFVRT6RRhEC+cIWtuEEmcKFE+sDXo00BPpFma3MLeJYQ41btQV468/WpVEfjcXWjbDGl27U= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739481155; c=relaxed/simple; bh=9A/kZVqH9ZLgVSRCFxgFLT3GwQqa+NDq97pn8qQ0Iuk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=SU9T1xQdypyYi5KBwU4i1/+As1z3yWoxVfmu251nUaW4FN4clKZlLQ/MLNZLA1jyWtDBZORKIQG0Zu3ThZpKhamX9JDdNwutufXm6OuyS812RiiMK8c++f3p5oeLLbh5csjUWEST2pFzoTmtAOnR6NlYYkkQgWIe+sUINqImoSc= 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=L1MGpphz; arc=none smtp.client-ip=209.85.216.41 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="L1MGpphz" Received: by mail-pj1-f41.google.com with SMTP id 98e67ed59e1d1-2fc042c9290so2251532a91.0 for ; Thu, 13 Feb 2025 13:12:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1739481152; x=1740085952; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=/TiMXc28g+QG9n19FwYu5HbjQ/8rWGAlU2xpZZhaQ6U=; b=L1MGpphzrJJV3GTBD5UdwOVVn6sDNfyQ6LQ4QUD2xK2g2DOq6ab51bdafbMFTpq3kp wG440h/piyh16aUgAsP+XD9/e7OByyyKUKoU6OWf0R4S1n4jLE6dPxlV0mQufIWZOe0w RgTvQriMmcJvtcBczeAyeDrRqVHFrxqnsy5Ns3SDB6jcDANER8ESvuwmvRN+u8FJ6VWr nxhemMfHHf11cRcvRXXq5qntmB1K0sT5gV4J4KQg4N4jhAEJBOlnFdmMktMM78LriSH3 nshjrkSFvf6MUe/Vr0Ehi3TRS2Boxs/AqKaQ5zlY2cQ9GSSs/n12SM5+zMmGddD9U0D4 nwAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739481152; x=1740085952; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=/TiMXc28g+QG9n19FwYu5HbjQ/8rWGAlU2xpZZhaQ6U=; b=IeQc2h1T6H5l1KVDJIuB8fSD16B52cWGZCNrgMhm9KPbFVFHWV/sYGFoAaQugctHPx o8wJKLC6pIZjZ2zHmAO1Ha3vswacpFxR5F9sZQRdUlxcGzEei4Usbl36LNHYUNTfRq+J CWntuDAYRkUNhB6UAQEBnx15N4bUxWOTJnjTjK9ijKSJuNk7wkhjh4BdpjggZDX4j5nv iCS1xxTm7Qa2Vk2Wou7G2VFaD54/NVaehyS2qLU3F0uF87l5qjhDl/JiA4s6TnuEa3v1 zpAQTZm1GBaEKRZ+t+V8Qdp5191hSXXZho5oT/M/AMEm2WK0n1e56/HiRMBDcWspaTFi WUTQ== X-Forwarded-Encrypted: i=1; AJvYcCXYhbzClH3bJY0S/nSZBawPXyeVBkht/CBra4orr8i2/QZHnkXttHP+25FYDRrBi9I9ojp3r11LEkyeCw8=@vger.kernel.org X-Gm-Message-State: AOJu0YwjoL/NfAkJwK0Wk3Tcp3NIqUV7WVmGW4fgPG/32LFpb7lQgosY eTs++1++d1/E630LEXBpmQVV+KrTKriwcLtAlHJGWLrT7Sjhcss7gjJaB8n/RD8= X-Gm-Gg: ASbGncv5XQOMfZhcPoZXwufNRzdo+gHitDYCp2Zqaw+MwDpTHIRTYw7AqeqyP+7fEt8 UnNiM5s+oi60qaehL5gNV/mMATqL2nqyWqY3O0qgQ6ftdFThU2O4v9aaOxtwfCHweuoLEl5UfEt XLKOuoBtVX3rCc9+FP1qt3N1PlyzH+KeHkQt7WMmypQKLgv2rlRK2GYgDoY1kiwNgea8H+bKoui 4x1+HxtULOAbSHlz4K3QIuuLdMTndyET0OE2cn5JifcUQ7QVpmFIDKuFaQZfIkuIfTbPo6Nz8kp SQMeUnsq4VpZYkDbMOdojXmdmJWBdvs= X-Google-Smtp-Source: AGHT+IFqsu2nx6CoLWExyydaLJ08nJGI7e2Qb8oJXzvEG9l8nFFlQt4FaQdvigyWe8khyD725QNZrw== X-Received: by 2002:a05:6a00:2da7:b0:730:7885:d903 with SMTP id d2e1a72fcca58-7322c3768fbmr12517521b3a.5.1739481152297; Thu, 13 Feb 2025 13:12:32 -0800 (PST) Received: from charlie.ba.rivosinc.com ([64.71.180.162]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-7324257fdd6sm1758072b3a.76.2025.02.13.13.12.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Feb 2025 13:12:31 -0800 (PST) From: Charlie Jenkins Date: Thu, 13 Feb 2025 13:06:21 -0800 Subject: [PATCH v3 1/2] tools: Unify top-level quiet infrastructure Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250213-quiet_tools-v3-1-07de4482a581@rivosinc.com> References: <20250213-quiet_tools-v3-0-07de4482a581@rivosinc.com> In-Reply-To: <20250213-quiet_tools-v3-0-07de4482a581@rivosinc.com> To: Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , 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 Cc: 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, Charlie Jenkins X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=4539; i=charlie@rivosinc.com; h=from:subject:message-id; bh=9A/kZVqH9ZLgVSRCFxgFLT3GwQqa+NDq97pn8qQ0Iuk=; b=owGbwMvMwCXWx5hUnlvL8Y3xtFoSQ/q6BKt7Sy+cd1odsVT56km9xI8pwls+LGJhFq+Z/j/e4 2fM1z3xHSUsDGJcDLJiiiw81xqYW+/olx0VLZsAM4eVCWQIAxenAEykoJiRYeb0bR+4OpSFH584 f/MtC4fXrM/vt6QFcGvutXTtP9OwOp/hx9mIfdkbwmLbHI9+n3fqy9XKf79kYs5Vdl+78+j0+pI 5rAA= X-Developer-Key: i=charlie@rivosinc.com; a=openpgp; fpr=7D834FF11B1D8387E61C776FFB10D1F27D6B1354 Commit f2868b1a66d4 ("perf tools: Expose quiet/verbose variables in Makefile.perf") moved the quiet infrastructure out of tools/build/Makefile.build and into the top-level Makefile.perf file so that the quiet infrastructure could be used throughout perf and not just in Makefile.build. Extract out the quiet infrastructure into Makefile.include so that it can be leveraged outside of perf. Signed-off-by: Charlie Jenkins Fixes: f2868b1a66d4 ("perf tools: Expose quiet/verbose variables in Makefil= e.perf") Reviewed-by: Jiri Olsa --- tools/build/Makefile | 8 +------- tools/perf/Makefile.perf | 41 --------------------------------------= --- tools/scripts/Makefile.include | 30 ++++++++++++++++++++++++++++++ 3 files changed, 31 insertions(+), 48 deletions(-) diff --git a/tools/build/Makefile b/tools/build/Makefile index 18ad131f6ea74aebfc3fd6aa6dddfdc00634b66c..63ef2187876169d8daaeed6f7a4= ff27e4b610271 100644 --- a/tools/build/Makefile +++ b/tools/build/Makefile @@ -17,13 +17,7 @@ $(call allow-override,LD,$(CROSS_COMPILE)ld) =20 export HOSTCC HOSTLD HOSTAR =20 -ifeq ($(V),1) - Q =3D -else - Q =3D @ -endif - -export Q srctree CC LD +export srctree CC LD =20 MAKEFLAGS :=3D --no-print-directory build :=3D -f $(srctree)/tools/build/Makefile.build dir=3D. obj diff --git a/tools/perf/Makefile.perf b/tools/perf/Makefile.perf index 55d6ce9ea52fb2a57b8632cc6d0ddc501e29cbfc..05c083bb11220486e3246896af4= fa0051f048832 100644 --- a/tools/perf/Makefile.perf +++ b/tools/perf/Makefile.perf @@ -161,47 +161,6 @@ export VPATH SOURCE :=3D $(shell ln -sf $(srctree)/tools/perf $(OUTPUT)/source) endif =20 -# Beautify output -# ------------------------------------------------------------------------= --- -# -# Most of build commands in Kbuild start with "cmd_". You can optionally d= efine -# "quiet_cmd_*". If defined, the short log is printed. Otherwise, no log f= rom -# that command is printed by default. -# -# e.g.) -# quiet_cmd_depmod =3D DEPMOD $(MODLIB) -# cmd_depmod =3D $(srctree)/scripts/depmod.sh $(DEPMOD) $(KERNELR= ELEASE) -# -# 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)=3Dscripts/basic -# -# To put more focus on warnings, be less verbose as default -# Use 'make V=3D1' to see the full commands - -ifeq ($(V),1) - quiet =3D - Q =3D -else - quiet=3Dquiet_ - Q=3D@ -endif - -# If the user is running make -s (silent mode), suppress echoing of comman= ds -# make-4.0 (and later) keep single letter options in the 1st word of MAKEF= LAGS. -ifeq ($(filter 3.%,$(MAKE_VERSION)),) -short-opts :=3D $(firstword -$(MAKEFLAGS)) -else -short-opts :=3D $(filter-out --%,$(MAKEFLAGS)) -endif - -ifneq ($(findstring s,$(short-opts)),) - quiet=3Dsilent_ -endif - -export quiet Q - # Do not use make's built-in rules # (this improves performance and avoids hard-to-debug behaviour); MAKEFLAGS +=3D -r diff --git a/tools/scripts/Makefile.include b/tools/scripts/Makefile.include index 0aa4005017c72f10bb7c5e47bc78ec81718c47ef..45f4abef706405a0f865d047905= 18da45dc047ef 100644 --- a/tools/scripts/Makefile.include +++ b/tools/scripts/Makefile.include @@ -136,6 +136,33 @@ else NO_SUBDIR =3D : endif =20 +# Beautify output +# ------------------------------------------------------------------------= --- +# +# Most of build commands in Kbuild start with "cmd_". You can optionally d= efine +# "quiet_cmd_*". If defined, the short log is printed. Otherwise, no log f= rom +# that command is printed by default. +# +# e.g.) +# quiet_cmd_depmod =3D DEPMOD $(MODLIB) +# cmd_depmod =3D $(srctree)/scripts/depmod.sh $(DEPMOD) $(KERNELR= ELEASE) +# +# 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)=3Dscripts/basic +# +# To put more focus on warnings, be less verbose as default +# Use 'make V=3D1' to see the full commands + +ifeq ($(V),1) + quiet =3D + Q =3D +else + quiet =3D quiet_ + Q =3D @ +endif + # If the user is running make -s (silent mode), suppress echoing of comman= ds # make-4.0 (and later) keep single letter options in the 1st word of MAKEF= LAGS. ifeq ($(filter 3.%,$(MAKE_VERSION)),) @@ -146,8 +173,11 @@ endif =20 ifneq ($(findstring s,$(short-opts)),) silent=3D1 + quiet=3Dsilent_ endif =20 +export quiet Q + # # Define a callable command for descending to a new directory # --=20 2.43.0 From nobody Sun Dec 14 06:20:11 2025 Received: from mail-pl1-f182.google.com (mail-pl1-f182.google.com [209.85.214.182]) (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 64D50266B72 for ; Thu, 13 Feb 2025 21:12:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.182 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739481157; cv=none; b=LQ59iFwWYFxEtmciGMIcaK9PiaQ6QrdgY3cGagmKSkCBbfBrL2x4o3loq3Qu8p1ORTWSF7z5RFnII216f17tb2KffKG1NY1aZ/y89UCnde/k5sOxKvUnMW6rXZj2jZpPE/urymbO22Df9nCDyLipnzBly1fXI2y+jPJJPgIsMhY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739481157; c=relaxed/simple; bh=LaWY661hGGOsz8ab9A8tX3O52beRD/JORrirTIwPdYI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=gqVzb09T3ARmxR2jHoe1Eet/TsTex7WeW72yGaxEQkiyLF5QO+RpilEUhH5QMaMeG26UyHfGT8ssch8/uSJYlckp3A2ic0dDBN7uv7TgdozozArFblwae344utW/iTIVcAnFGmWfz+M0qZZKea/P5YyCn4JIqOx0+cc5uh6TYOU= 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=PQgOjTPS; arc=none smtp.client-ip=209.85.214.182 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="PQgOjTPS" Received: by mail-pl1-f182.google.com with SMTP id d9443c01a7336-21f55fbb72bso25346805ad.2 for ; Thu, 13 Feb 2025 13:12:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1739481155; x=1740085955; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=7dCT5jcbY95du2Tjjq6rItJv9SEP2f87N9w5dx/eCvk=; b=PQgOjTPSZ018B7gXHtYTZ5cRL50oqDk9VjHlUmAM1ERVJShkmoz/p6hKEKzwtRjDNY po6iTqmYTlvXp98UsSVtAkMNSQ/MBAAbYVQycjTeVLKTtnVOtrT5IwJx0pp7bJW8yzRM zycNB69qQDWQLooo6hDzJfOC6QSax+5hV8oD04YhjuRF4dmcKVwW1ZnooFrXvHyLOnEJ TFypj/qjuk49tse64lXBXoEyp5453DjrsmfnDxc6Tij4a0XpLwBOS7iCIdQlF5ru8Ock Ueav0D4Msz4raWAfzewlOF1AGnZL0oQPiS4Es067DrW12AIveFAApfkEPV6L7S5W+Mwa tbcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739481155; x=1740085955; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=7dCT5jcbY95du2Tjjq6rItJv9SEP2f87N9w5dx/eCvk=; b=WKdSI0PwoL7BVoiRaLuVUW1nrxLUihsrIDoTElSCaI/2HCtpVyBgsErKpzcEK2afxm JVAz17LLtfr/LzcdGA+e7khK+05zGeOdN4Ijs9ZFV7vpZ7agqR7SarLo3SeksmQ8woJH YrEZ8m+dY/iBPlF7f7V87pIzReNGyeCA9HBFi5cEa5fB33uzq5qSfjSUgfscTL2Xt8ts G/PnmDz/0dSAAXTLvkHIq4fDLU681HJ4o6+XubCc7lzzGpeVrDl9hChJF0Uq+Dk057Gn hIGZ6TglOnTZH8/DRCvCYygfS8eF1IDBd0ckPA9qYAIdGBSSoy4CsIHb0D9WjUzQE1Kd 4agQ== X-Forwarded-Encrypted: i=1; AJvYcCXmSdegXqXJzwTIhOGhil3KorCZ9gvahbpm9NcQHtRwGJFEM68Q0BmhuCxfQeCY2QhV15rWOlhSaEfjXnE=@vger.kernel.org X-Gm-Message-State: AOJu0YzRBAyrar+2FcCvtPa5GveQh6WuLjgptdseHihs0gnmsukOzDcs S4m3/hpd3w2OXZu2dQH0HucD23pJsDZDsGd78VH/MMatJRH/j2b4KPXgGYazvT4= X-Gm-Gg: ASbGncspILLJiv51J25pCvdC5elS9x89drEynyJeDSmV8YsHya94hlvHxdKKN4BD6QA Zib56U13/DEhH7O7s2dQUM3YcmMDN/NKCb18F4DSUSO7ZmhCzBfetESYHL1kX00RWBtp6tP/uC6 lJjZvW5iiDFGr8thUzv502SRAtNeWiVoy/3/PxgDArwqyIhFaVYHHpIvkE87F3qsjGTjCCTQLD9 7lCffEJxmhCVSCFVFoyEQFk1jammFSjhtd85M5s1yAipd7BEpWU7oC0lX7s1MaFhbUUQtsDv3Z7 jhsCP8rcTYrG73IcvoIanfFjMI40tF0= X-Google-Smtp-Source: AGHT+IHWMlGwUiWdsiNRbvm7dD8sEMzLzmRqwl/PU5Ys8fbVS90IAlTNhDD0UoMI3fOVabW+kAQ4WQ== X-Received: by 2002:a05:6a00:3e04:b0:730:9334:18f3 with SMTP id d2e1a72fcca58-7323c1bcde7mr7654326b3a.19.1739481154657; Thu, 13 Feb 2025 13:12:34 -0800 (PST) Received: from charlie.ba.rivosinc.com ([64.71.180.162]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-7324257fdd6sm1758072b3a.76.2025.02.13.13.12.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Feb 2025 13:12:34 -0800 (PST) From: Charlie Jenkins Date: Thu, 13 Feb 2025 13:06:22 -0800 Subject: [PATCH v3 2/2] tools: Remove redundant quiet setup Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250213-quiet_tools-v3-2-07de4482a581@rivosinc.com> References: <20250213-quiet_tools-v3-0-07de4482a581@rivosinc.com> In-Reply-To: <20250213-quiet_tools-v3-0-07de4482a581@rivosinc.com> To: Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , 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 Cc: 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, Charlie Jenkins X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=10133; i=charlie@rivosinc.com; h=from:subject:message-id; bh=LaWY661hGGOsz8ab9A8tX3O52beRD/JORrirTIwPdYI=; b=owGbwMvMwCXWx5hUnlvL8Y3xtFoSQ/q6BGu5TUfqNyQ4drwoiJ+XWX7zwBmVfSudWRT0mS+9f 6jGzv6oo5SFQYyLQVZMkYXnWgNz6x39sqOiZRNg5rAygQxh4OIUgImsvszwz7bS6cPv4DW/n82q c1vDlz51t8ZH3vIlkd7+d8qjXp67tpThf3xtgqCr1zKtYgkrh/mW1rFZmbr1cr4pv1r89977OvU rMwA= X-Developer-Key: i=charlie@rivosinc.com; a=openpgp; fpr=7D834FF11B1D8387E61C776FFB10D1F27D6B1354 Q is exported from Makefile.include so it is not necessary to manually set it. Signed-off-by: Charlie Jenkins Acked-by: Quentin Monnet Acked-by: Steven Rostedt (Google) Reviewed-by: Jiri Olsa --- tools/arch/arm64/tools/Makefile | 6 ------ tools/bpf/Makefile | 6 ------ tools/bpf/bpftool/Documentation/Makefile | 6 ------ tools/bpf/bpftool/Makefile | 6 ------ tools/bpf/resolve_btfids/Makefile | 2 -- tools/bpf/runqslower/Makefile | 5 +---- tools/lib/bpf/Makefile | 13 ------------- tools/lib/perf/Makefile | 13 ------------- tools/lib/thermal/Makefile | 13 ------------- tools/objtool/Makefile | 6 ------ tools/testing/selftests/bpf/Makefile.docs | 6 ------ tools/testing/selftests/hid/Makefile | 2 -- tools/thermal/lib/Makefile | 13 ------------- tools/tracing/latency/Makefile | 6 ------ tools/tracing/rtla/Makefile | 6 ------ tools/verification/rv/Makefile | 6 ------ 16 files changed, 1 insertion(+), 114 deletions(-) diff --git a/tools/arch/arm64/tools/Makefile b/tools/arch/arm64/tools/Makef= ile index 7b42feedf647190ad498de0937e8fb557e40f39c..de4f1b66ef0148b7bfd0fd16655= ad854c7542240 100644 --- a/tools/arch/arm64/tools/Makefile +++ b/tools/arch/arm64/tools/Makefile @@ -13,12 +13,6 @@ AWK ?=3D awk MKDIR ?=3D mkdir RM ?=3D rm =20 -ifeq ($(V),1) -Q =3D -else -Q =3D @ -endif - arm64_tools_dir =3D $(top_srcdir)/arch/arm64/tools arm64_sysreg_tbl =3D $(arm64_tools_dir)/sysreg arm64_gen_sysreg =3D $(arm64_tools_dir)/gen-sysreg.awk diff --git a/tools/bpf/Makefile b/tools/bpf/Makefile index 243b79f2b451e52ca196f79dc46befd1b3dab458..062bbd6cd048e9e42f9bc8f9972= ec96594f3dbd2 100644 --- a/tools/bpf/Makefile +++ b/tools/bpf/Makefile @@ -27,12 +27,6 @@ srctree :=3D $(patsubst %/,%,$(dir $(CURDIR))) srctree :=3D $(patsubst %/,%,$(dir $(srctree))) endif =20 -ifeq ($(V),1) - Q =3D -else - Q =3D @ -endif - FEATURE_USER =3D .bpf FEATURE_TESTS =3D libbfd disassembler-four-args disassembler-init-styled FEATURE_DISPLAY =3D libbfd diff --git a/tools/bpf/bpftool/Documentation/Makefile b/tools/bpf/bpftool/D= ocumentation/Makefile index 4315652678b9f2e27e48b7815f3b9ddc70a57165..bf843f328812e10dd65a73f355f= 74e6825ad95b9 100644 --- a/tools/bpf/bpftool/Documentation/Makefile +++ b/tools/bpf/bpftool/Documentation/Makefile @@ -5,12 +5,6 @@ INSTALL ?=3D install RM ?=3D rm -f RMDIR ?=3D rmdir --ignore-fail-on-non-empty =20 -ifeq ($(V),1) - Q =3D -else - Q =3D @ -endif - prefix ?=3D /usr/local mandir ?=3D $(prefix)/man man8dir =3D $(mandir)/man8 diff --git a/tools/bpf/bpftool/Makefile b/tools/bpf/bpftool/Makefile index dd9f3ec842017f1dd24054bf3a0986d546811dc4..6ea4823b770cbbe7fd9eb7da799= 56cc1dae1f204 100644 --- a/tools/bpf/bpftool/Makefile +++ b/tools/bpf/bpftool/Makefile @@ -7,12 +7,6 @@ srctree :=3D $(patsubst %/,%,$(dir $(srctree))) srctree :=3D $(patsubst %/,%,$(dir $(srctree))) endif =20 -ifeq ($(V),1) - Q =3D -else - Q =3D @ -endif - BPF_DIR =3D $(srctree)/tools/lib/bpf =20 ifneq ($(OUTPUT),) diff --git a/tools/bpf/resolve_btfids/Makefile b/tools/bpf/resolve_btfids/M= akefile index 4b8079f294f65b284481e9a2bf6ff52594a4669a..afbddea3a39c64ffb2efc874a36= 37b6401791c5b 100644 --- a/tools/bpf/resolve_btfids/Makefile +++ b/tools/bpf/resolve_btfids/Makefile @@ -5,10 +5,8 @@ include ../../scripts/Makefile.arch srctree :=3D $(abspath $(CURDIR)/../../../) =20 ifeq ($(V),1) - Q =3D msg =3D else - Q =3D @ ifeq ($(silent),1) msg =3D else diff --git a/tools/bpf/runqslower/Makefile b/tools/bpf/runqslower/Makefile index c4f1f1735af659c2e660a322dbf6912d9a5724bc..e49203ebd48c18607a6136a9e80= 5ccf16ee960d3 100644 --- a/tools/bpf/runqslower/Makefile +++ b/tools/bpf/runqslower/Makefile @@ -26,10 +26,7 @@ VMLINUX_BTF_PATHS :=3D $(if $(O),$(O)/vmlinux) \ VMLINUX_BTF_PATH :=3D $(or $(VMLINUX_BTF),$(firstword \ $(wildcard $(VMLINUX_BTF_PATHS)))) =20 -ifeq ($(V),1) -Q =3D -else -Q =3D @ +ifneq ($(V),1) MAKEFLAGS +=3D --no-print-directory submake_extras :=3D feature_display=3D0 endif diff --git a/tools/lib/bpf/Makefile b/tools/lib/bpf/Makefile index 857a5f7b413d6dc4cbe7bc4167496674dd08d875..168140f8e6461bd06db40e23d21= a3fb8847ccbf4 100644 --- a/tools/lib/bpf/Makefile +++ b/tools/lib/bpf/Makefile @@ -53,13 +53,6 @@ include $(srctree)/tools/scripts/Makefile.include =20 # copy a bit from Linux kbuild =20 -ifeq ("$(origin V)", "command line") - VERBOSE =3D $(V) -endif -ifndef VERBOSE - VERBOSE =3D 0 -endif - INCLUDES =3D -I$(or $(OUTPUT),.) \ -I$(srctree)/tools/include -I$(srctree)/tools/include/uapi \ -I$(srctree)/tools/arch/$(SRCARCH)/include @@ -96,12 +89,6 @@ override CFLAGS +=3D $(CLANG_CROSS_FLAGS) # flags specific for shared library SHLIB_FLAGS :=3D -DSHARED -fPIC =20 -ifeq ($(VERBOSE),1) - Q =3D -else - Q =3D @ -endif - # Disable command line variables (CFLAGS) override from top # level Makefile (perf), otherwise build Makefile will get # the same command line setup. diff --git a/tools/lib/perf/Makefile b/tools/lib/perf/Makefile index 3a9b2140aa048ea919c69ed2240bf0ea444dbf21..e9a7ac2c062e2b398c2f22af419= 07b62815ca07e 100644 --- a/tools/lib/perf/Makefile +++ b/tools/lib/perf/Makefile @@ -39,19 +39,6 @@ libdir =3D $(prefix)/$(libdir_relative) libdir_SQ =3D $(subst ','\'',$(libdir)) libdir_relative_SQ =3D $(subst ','\'',$(libdir_relative)) =20 -ifeq ("$(origin V)", "command line") - VERBOSE =3D $(V) -endif -ifndef VERBOSE - VERBOSE =3D 0 -endif - -ifeq ($(VERBOSE),1) - Q =3D -else - Q =3D @ -endif - TEST_ARGS :=3D $(if $(V),-v) =20 # Set compile option CFLAGS diff --git a/tools/lib/thermal/Makefile b/tools/lib/thermal/Makefile index 8890fd57b110ccc1a837d37624a5dead00f18656..a1f5e388644d31d36f973d3ddce= 48d036ee0a083 100644 --- a/tools/lib/thermal/Makefile +++ b/tools/lib/thermal/Makefile @@ -39,19 +39,6 @@ libdir =3D $(prefix)/$(libdir_relative) libdir_SQ =3D $(subst ','\'',$(libdir)) libdir_relative_SQ =3D $(subst ','\'',$(libdir_relative)) =20 -ifeq ("$(origin V)", "command line") - VERBOSE =3D $(V) -endif -ifndef VERBOSE - VERBOSE =3D 0 -endif - -ifeq ($(VERBOSE),1) - Q =3D -else - Q =3D @ -endif - # Set compile option CFLAGS ifdef EXTRA_CFLAGS CFLAGS :=3D $(EXTRA_CFLAGS) diff --git a/tools/objtool/Makefile b/tools/objtool/Makefile index f56e2772753414ff8d3462bdebbc8e95e7667fcd..7a65948892e569cbe1d6e5a78db= 68bb35102cd26 100644 --- a/tools/objtool/Makefile +++ b/tools/objtool/Makefile @@ -46,12 +46,6 @@ HOST_OVERRIDES :=3D CC=3D"$(HOSTCC)" LD=3D"$(HOSTLD)" AR= =3D"$(HOSTAR)" AWK =3D awk MKDIR =3D mkdir =20 -ifeq ($(V),1) - Q =3D -else - Q =3D @ -endif - BUILD_ORC :=3D n =20 ifeq ($(SRCARCH),x86) diff --git a/tools/testing/selftests/bpf/Makefile.docs b/tools/testing/self= tests/bpf/Makefile.docs index eb6a4fea8c794d8354363ac8daa0baac3e3bd060..f7f9e7088bb38c7507282990fb6= 2921ca7a636d2 100644 --- a/tools/testing/selftests/bpf/Makefile.docs +++ b/tools/testing/selftests/bpf/Makefile.docs @@ -7,12 +7,6 @@ INSTALL ?=3D install RM ?=3D rm -f RMDIR ?=3D rmdir --ignore-fail-on-non-empty =20 -ifeq ($(V),1) - Q =3D -else - Q =3D @ -endif - prefix ?=3D /usr/local mandir ?=3D $(prefix)/man man2dir =3D $(mandir)/man2 diff --git a/tools/testing/selftests/hid/Makefile b/tools/testing/selftests= /hid/Makefile index 0336353bd15f0d56dbed6c8fa02f53c234f949e1..2839d2612ce3a70f4332f8e8865= 86e9cca6f03cb 100644 --- a/tools/testing/selftests/hid/Makefile +++ b/tools/testing/selftests/hid/Makefile @@ -43,10 +43,8 @@ TEST_GEN_PROGS =3D hid_bpf hidraw # $3 - target (assumed to be file); only file name will be emitted; # $4 - optional extra arg, emitted as-is, if provided. ifeq ($(V),1) -Q =3D msg =3D else -Q =3D @ msg =3D @printf ' %-8s%s %s%s\n' "$(1)" "$(if $(2), [$(2)])" "$(notdir $(= 3))" "$(if $(4), $(4))"; MAKEFLAGS +=3D --no-print-directory submake_extras :=3D feature_display=3D0 diff --git a/tools/thermal/lib/Makefile b/tools/thermal/lib/Makefile index f2552f73a64c7eb1be24c27b3a1414617391315b..056d212f25cf51cd8c02260fbe2= ef28dda5e4acb 100644 --- a/tools/thermal/lib/Makefile +++ b/tools/thermal/lib/Makefile @@ -39,19 +39,6 @@ libdir =3D $(prefix)/$(libdir_relative) libdir_SQ =3D $(subst ','\'',$(libdir)) libdir_relative_SQ =3D $(subst ','\'',$(libdir_relative)) =20 -ifeq ("$(origin V)", "command line") - VERBOSE =3D $(V) -endif -ifndef VERBOSE - VERBOSE =3D 0 -endif - -ifeq ($(VERBOSE),1) - Q =3D -else - Q =3D @ -endif - # Set compile option CFLAGS ifdef EXTRA_CFLAGS CFLAGS :=3D $(EXTRA_CFLAGS) diff --git a/tools/tracing/latency/Makefile b/tools/tracing/latency/Makefile index 6518b03e05c71b4fa84498f9628adf81a38c9f56..257a56b1899f23837de533353e9= c2cebdb6035bd 100644 --- a/tools/tracing/latency/Makefile +++ b/tools/tracing/latency/Makefile @@ -37,12 +37,6 @@ FEATURE_TESTS +=3D libtracefs FEATURE_DISPLAY :=3D libtraceevent FEATURE_DISPLAY +=3D libtracefs =20 -ifeq ($(V),1) - Q =3D -else - Q =3D @ -endif - all: $(LATENCY-COLLECTOR) =20 include $(srctree)/tools/build/Makefile.include diff --git a/tools/tracing/rtla/Makefile b/tools/tracing/rtla/Makefile index 8b5101457c70b48e9c720f1ba53293f1307c15a2..0b61208db604ec0754024c3007d= b6b2fe74a613c 100644 --- a/tools/tracing/rtla/Makefile +++ b/tools/tracing/rtla/Makefile @@ -37,12 +37,6 @@ FEATURE_DISPLAY :=3D libtraceevent FEATURE_DISPLAY +=3D libtracefs FEATURE_DISPLAY +=3D libcpupower =20 -ifeq ($(V),1) - Q =3D -else - Q =3D @ -endif - all: $(RTLA) =20 include $(srctree)/tools/build/Makefile.include diff --git a/tools/verification/rv/Makefile b/tools/verification/rv/Makefile index 411d62b3d8eb93abf85526ad33cafd783df86bc1..5b898360ba4818b12e8a16c27bd= 88c75d0076fb9 100644 --- a/tools/verification/rv/Makefile +++ b/tools/verification/rv/Makefile @@ -35,12 +35,6 @@ FEATURE_TESTS +=3D libtracefs FEATURE_DISPLAY :=3D libtraceevent FEATURE_DISPLAY +=3D libtracefs =20 -ifeq ($(V),1) - Q =3D -else - Q =3D @ -endif - all: $(RV) =20 include $(srctree)/tools/build/Makefile.include --=20 2.43.0