Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp155618pxb; Thu, 2 Sep 2021 00:47:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwdod9DCfl55dEIb4vtyasciGx9j7QtWChdatlrnnKnKXwCjCLsMO/2i2aeBwy6ffnjKFwl X-Received: by 2002:a05:6402:1653:: with SMTP id s19mr2208396edx.163.1630568876766; Thu, 02 Sep 2021 00:47:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630568876; cv=none; d=google.com; s=arc-20160816; b=J2fdsctta1OSRbIygajnOJ+MS8XyS+ehvO1B+AE5KDLS6RQUFtgJBB6ZjbG4+V7Vd1 GJC7H98xWCfDswu2Dh8XWn+f8iRzs/4nHvXzHWPJEAXEjlclfGWSwn/UT+m9PITkdhZy P4XxJtOVZRzERdJ1KVxAezrUM2ZYu/Mpchbokf4kqH5/ykvahf0hZvR4xX87tDg3ZGY3 H93RthfinYnJHEuM+juPsUToc6QpO3dtp/sA+s1h18Q7NetVHEZwjHpSawRLof50j4E7 sWJc/XsPDnDpAPPD2TueA3NAwY/vGQAFVLaJlI2RIZjNgbt6V4g/FaXGOhRm088c/Goy VdoQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=AZUk9y2sN7eMTc0e2t5VRlkEt6cGkUIJV1VN0ho5bQg=; b=ghMp4dqKjcQ0WVYcw7GTT5akA9OKtzOlpDebsZ8a+0W68yqu9WObojVEjJYjVsQCvq P7EzR+agKfINnwqzOKRprsLSR4RPDO4atsMpcm99g650IjdBkoMZ0Wx5f1x3sxtzV9mJ YZQqOpuUREQX0DRJSDpOm3AtEjTknqlGdjcYuuHM68xo1fHjR1tCrFz36Kzjd49ECEXT GDr1+ehSpn+ou4312cLLSBc6UWy3uyG9R3252T6U+JhnRV23dLywhZhD25JQ2wD2PcLc oTbXEYnBsprhA0OUQXNltq7Durc0pfyaz1UcpdEDjwoYPm1CXkp7BgRUnwHjZrduRtQS 6VlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=D4F0q5mS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y17si1345844edt.337.2021.09.02.00.47.25; Thu, 02 Sep 2021 00:47:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=D4F0q5mS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243646AbhIBHpR (ORCPT + 99 others); Thu, 2 Sep 2021 03:45:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39950 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243658AbhIBHpO (ORCPT ); Thu, 2 Sep 2021 03:45:14 -0400 Received: from mail-pl1-x629.google.com (mail-pl1-x629.google.com [IPv6:2607:f8b0:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 06EF9C061757 for ; Thu, 2 Sep 2021 00:44:17 -0700 (PDT) Received: by mail-pl1-x629.google.com with SMTP id q3so650033plx.4 for ; Thu, 02 Sep 2021 00:44:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=AZUk9y2sN7eMTc0e2t5VRlkEt6cGkUIJV1VN0ho5bQg=; b=D4F0q5mStXuTWiMTYq8qcr8a/9gvezDDS3wSCmjLLtRmepOErjDgDo0eLs+mjkcSMy q/KQD3YWUDEQjJFiRjfi9EXQYrVWfcrmyxTzBoRqncH333sb+hv9UqJnCFoeZcVn8/vd nKPfWuhvrwhFVLU2oEoosczR8H+wFPzLp9yEx4WCo5jXeTvP+2NhI5V2/s39yLwr2Ehc KF/vZy/m2TKvRs1DrFKk1WzNpf5YNmT822pZTXxjuTPHb43A66JFN4hK+Lch44rEk5Xh evP+cAoJ4h9yMZ2hq/CWo+sxZ6+f/dPNuU/kVYpEOkPhI4A0CzlGychNK1XFApu9hlnG wSLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=AZUk9y2sN7eMTc0e2t5VRlkEt6cGkUIJV1VN0ho5bQg=; b=RsASGnIu++HeC062/HOTD77N86Bea+4bmJtenhzk098K/RSEKn2WyOlYsC41b9uGEr /XNCh5dgMMbe6q4idGfL+QldtOSdojKucY/P6L2VE2ZGHyNB5Qdz87RLyMdP4CgBUlRb OgipWNulAddVBiRnAMBozeM4xAynxAUMrV5VQoxhPDS3lj8fmmt0FOlzg48ESyzJRvEI /Smv+Rjd7wAUZKPKjmzC+kwC8hXVhoQ9oeyjQjmmdzZWHjj3xXX4h4pUvodiDdzwuNPr ELEssTrY8WNLn1FILw4vYeZ/FN8HFXTTnAUkbDX+gsNDOVWYl2qVHhFPprVphbIFJAkY dFwQ== X-Gm-Message-State: AOAM5337kCHbNFg6MxYQS0wPf+rcjSRfwR6Bd/izuZ54DFSKhW+N/kDP fWBYRZqHSOvIevcP5rGhxqKjdQ== X-Received: by 2002:a17:90a:a581:: with SMTP id b1mr2252406pjq.153.1630568656433; Thu, 02 Sep 2021 00:44:16 -0700 (PDT) Received: from localhost ([204.124.181.224]) by smtp.gmail.com with ESMTPSA id j23sm1275257pjn.12.2021.09.02.00.44.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Sep 2021 00:44:15 -0700 (PDT) From: Leo Yan To: Arnaldo Carvalho de Melo , James Clark , mathieu.poirier@linaro.org, coresight@lists.linaro.org, linux-perf-users@vger.kernel.org, mike.leach@linaro.org, suzuki.poulose@arm.com, Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , linux-kernel@vger.kernel.org Cc: Leo Yan Subject: [PATCH] perf build: Report failure for testing feature libopencsd Date: Thu, 2 Sep 2021 15:44:03 +0800 Message-Id: <20210902074403.545225-1-leo.yan@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When build perf tool with passing option 'CORESIGHT=1' explicitly, if the feature test fails for library libopencsd, the build doesn't complain the feature failure and continue to build the tool with disabling the CoreSight feature insteadly. This patch changes the building behaviour, when build perf tool with the option 'CORESIGHT=1' and detect the failure for testing feature libopencsd, the build process will be aborted and it shows the complaint info. Signed-off-by: Leo Yan --- tools/perf/Makefile.config | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/perf/Makefile.config b/tools/perf/Makefile.config index 4a0d9a6defc7..5df79538486b 100644 --- a/tools/perf/Makefile.config +++ b/tools/perf/Makefile.config @@ -489,6 +489,8 @@ ifdef CORESIGHT CFLAGS += -DCS_RAW_PACKED endif endif + else + dummy := $(error Error: No libopencsd library found or the version is not up-to-date. Please install recent libopencsd to build with COREISGHT=1) endif endif -- 2.25.1