Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp3065015rwb; Sat, 6 Aug 2022 11:47:44 -0700 (PDT) X-Google-Smtp-Source: AA6agR5jZDi55KCNCpkntva4n48E6lYyGzn8n0ntFndu+c2EAiuHDp7eHEMTsoCYb10QTj3v8HOx X-Received: by 2002:a05:6402:350b:b0:43e:f4be:c447 with SMTP id b11-20020a056402350b00b0043ef4bec447mr10240025edd.427.1659811664547; Sat, 06 Aug 2022 11:47:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659811664; cv=none; d=google.com; s=arc-20160816; b=LuYkopAq1RJVujvYT1LVZlTJJjknjZavnWdyQdDv5cFBRyNtcPiYCGnBqxWQSxcQ70 dHo8te8a9zfGlV33RkZ5o4dACnMZ4dCdMIhjKoncdzNNWML/u+J/t8nDuh0Z7Z2v/WDO deT1m8HKZSvOgRvAta7WrGaW8gKCUvo4VoA0BM9fJ6F0U0AQTQoEvUSqOagf0XH3sE0q bt4shziuKBC3hZqiJksn2glyQVpSKSzAWGd+CIKkFm177GbLLWBIzVSanM11KASxPFkY 1aMvafmFmjpfBjfSYCuikuEdYc8r/2xVFhC3T356y5RlLMGNZw1stygRHmhhsOmhN3Ua n+Bw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=wTB1VUt6tsHPd8AeXE8k47ir772/ymO/ugwluqtfNkk=; b=MuzPxZfGkcnPVRs20Q+3bnM99/uYuSAUesOnXc1yzVhuG8f7ClFsvli3mDN3qiSSRx eqNxZ74TkQg35ExNKBRZw1ftRIX1W+WuXJgy2R3ZexvBSO4IBz9RQBPGDcsRjLWwEaLn 5+1Ar28QSqC5RrwZcSECbo9MfMFJDlTV8sPtbIVIfd4HN7tILFlUuSMM9mJpYg2l9pTI OptSCU+X35IySCVhdQOH37h6a0YXFsYFHdtyD3cgsyOI9kOYAvcUvy2uv5SHnblqcKGH u8xbk79sGTgCP2nvaaiGNib5FDKRx4upW0q/S6k5IDoysVqxfZlnKbq+jR/aicJdfKL+ SQxQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w11-20020aa7dccb000000b0044086a28258si380549edu.199.2022.08.06.11.47.20; Sat, 06 Aug 2022 11:47:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234112AbiHFSWV (ORCPT + 99 others); Sat, 6 Aug 2022 14:22:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51956 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234017AbiHFSWJ (ORCPT ); Sat, 6 Aug 2022 14:22:09 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1A0412FA for ; Sat, 6 Aug 2022 11:22:08 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id C0E9AB80835 for ; Sat, 6 Aug 2022 18:22:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C03DCC433D6; Sat, 6 Aug 2022 18:22:04 +0000 (UTC) Date: Sat, 6 Aug 2022 14:22:03 -0400 From: Steven Rostedt To: Linus Torvalds Cc: Daniel Bristot de Oliveira , LKML , Andreas Schwab , jianchunfu Subject: Re: [GIT PULL] rtla: Updates for 5.20/6.0 Message-ID: <20220806142203.3c133322@gandalf.local.home> In-Reply-To: References: <20220803104936.7df810fd@gandalf.local.home> <20220805124701.4b44195d@gandalf.local.home> <12638499-5079-95b0-7861-fb06ef3d2522@kernel.org> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 6 Aug 2022 08:52:29 -0700 Linus Torvalds wrote: > For extra bonus points, if you can state all missing packages in one > go (instead of "oops you don't have Xyz" followed by install of Xyz, > followed by "Oops, now you don't have Abc") that would be nice too. > > But at this point the fundamental problem with incomprehensible error > messages is long gone, so it's not a big deal and not worth lots of > effort. More of a "if it's easy enough.." With the below patch, it will show the warnings for both libtraceevent and libtracefs if they are not installed: $ make ******************************************** ** NOTICE: libtraceevent version 1.5 or higher not found ** ** Consider installing the latest libtraceevent from your ** distribution, e.g., 'dnf install libtraceevent-devel' on Fedora, ** or from source: ** ** https://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git/ ** ******************************************** ******************************************** ** NOTICE: libtracefs version 1.3 or higher not found ** ** Consider installing the latest libtracefs from your ** distribution, e.g., 'dnf install libtracefs-devel' on Fedora, ** or from source: ** ** https://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git/ ** ******************************************** Makefile:106: *** Please add the necessary dependencies. Stop. -- Steve diff --git a/tools/tracing/rtla/Makefile b/tools/tracing/rtla/Makefile index 1bea2d16d4c1..a8c89b5b8fa5 100644 --- a/tools/tracing/rtla/Makefile +++ b/tools/tracing/rtla/Makefile @@ -61,15 +61,19 @@ endif LIBTRACEEVENT_MIN_VERSION = 1.5 LIBTRACEFS_MIN_VERSION = 1.3 +.PHONY: all warnings +all: warnings rtla + TEST_LIBTRACEEVENT = $(shell sh -c "$(PKG_CONFIG) --atleast-version $(LIBTRACEEVENT_MIN_VERSION) libtraceevent > /dev/null 2>&1 || echo n") ifeq ("$(TEST_LIBTRACEEVENT)", "n") +WARNINGS += warning_traceevent .PHONY: warning_traceevent warning_traceevent: @echo "********************************************" @echo "** NOTICE: libtraceevent version $(LIBTRACEEVENT_MIN_VERSION) or higher not found" @echo "**" @echo "** Consider installing the latest libtraceevent from your" - @echo "** distribution, e.g., 'dnf install libtraceevent' on Fedora," + @echo "** distribution, e.g., 'dnf install libtraceevent-devel' on Fedora," @echo "** or from source:" @echo "**" @echo "** https://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git/ " @@ -80,12 +84,13 @@ endif TEST_LIBTRACEFS = $(shell sh -c "$(PKG_CONFIG) --atleast-version $(LIBTRACEFS_MIN_VERSION) libtracefs > /dev/null 2>&1 || echo n") ifeq ("$(TEST_LIBTRACEFS)", "n") .PHONY: warning_tracefs +WARNINGS += warning_tracefs warning_tracefs: @echo "********************************************" @echo "** NOTICE: libtracefs version $(LIBTRACEFS_MIN_VERSION) or higher not found" @echo "**" @echo "** Consider installing the latest libtracefs from your" - @echo "** distribution, e.g., 'dnf install libtracefs' on Fedora," + @echo "** distribution, e.g., 'dnf install libtracefs-devel' on Fedora," @echo "** or from source:" @echo "**" @echo "** https://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git/ " @@ -93,8 +98,12 @@ warning_tracefs: @echo "********************************************" endif -.PHONY: all -all: rtla +ifneq ("$(WARNINGS)", "") +ERROR_OUT = $(error Please add the necessary dependencies) +endif + +warnings: $(WARNINGS) + $(ERROR_OUT) rtla: $(OBJ) $(CC) -o rtla $(LDFLAGS) $(OBJ) $(LIBS)