Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp700395pxb; Thu, 2 Sep 2021 12:59:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyB2moTKwLnhxXK8VyDf01LuppjGFrNBZfck74dWG6cWBpOROu751onCEp/ZPUbVWSMtl4I X-Received: by 2002:aa7:d303:: with SMTP id p3mr76309edq.184.1630612799564; Thu, 02 Sep 2021 12:59:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630612799; cv=none; d=google.com; s=arc-20160816; b=lYN3ejXgQKfYcPk0Q7M5cVbsiZ9Ei6oDY9/wfQiHplkHVqqdxVlxcnYOIHaBIvly26 kE6jP2IlPUqHqwfM/LB9tEOOp6wpJl+gHE4ubnKmHyn9e3jdk80CMUtBpBlRwBQr5tXj y/vTEdW8k0iRSpU5nxJsNk3bYtWL/fQ/L0GNGF0QrkcM+uJ1I0sowSny90gY2KNG1tH8 g2erbaC18Umx1e4HmN3UY3hPx8SpClSVzFABiDV2dJAJywkPzpj1WeoGyNdhsaRnz/Vw KtNwReIsEjoVz6p9kzVe8twwQ7i1fg6zhMWCAPljEaewkHuzCD0MZopzPBs15syHROi1 G01w== 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:references:in-reply-to:user-agent:subject:cc:to:from :date:dkim-signature; bh=x+AdKYfLS9gT5WYJ+/3I2JYeGx2UYT4j4GN/VwqgiDA=; b=bQYIsftCWy/dCF18oW1J9ghUGOh7qcKeNLvgX3+Prj2MpfXMkq1Q9B7PyqsgYpCASy /OwiB/QN876CxDQFJLBQCBsBnETi4LIXGyFiok/g6lJAJjkE7PRTrBwSBhoebSt1zoZP nV3nqultaIM/VRhu095YuC0xQ4jO+aPw5cNrC3fdU3gBin95P+wSSXfIDfBRxmjqR2xQ aem/FdIQug8BTEvbYlt/LZRoUzCkyhhXIfkBakxIcuefNHapHHiRi8VJjdwy0WXTmua0 IA+ft3M72rVayPGTNirq4ZDuxBbeMFoPy2n/jTy6kEdPRc+u+9eyA8RZrATpgTnlSGUW aFew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=o8414Dn5; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j22si799354ejt.173.2021.09.02.12.59.36; Thu, 02 Sep 2021 12:59:59 -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=@gmail.com header.s=20210112 header.b=o8414Dn5; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344914AbhIBNBJ (ORCPT + 99 others); Thu, 2 Sep 2021 09:01:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56102 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344837AbhIBNBI (ORCPT ); Thu, 2 Sep 2021 09:01:08 -0400 Received: from mail-qt1-x82b.google.com (mail-qt1-x82b.google.com [IPv6:2607:f8b0:4864:20::82b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 539F5C061575; Thu, 2 Sep 2021 06:00:10 -0700 (PDT) Received: by mail-qt1-x82b.google.com with SMTP id g11so1397444qtk.5; Thu, 02 Sep 2021 06:00:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:user-agent:in-reply-to:references :message-id:mime-version:content-transfer-encoding; bh=x+AdKYfLS9gT5WYJ+/3I2JYeGx2UYT4j4GN/VwqgiDA=; b=o8414Dn50uOcxjeLrFnHQAKeFhImw3kIzv22tJEnODvDa4fPJD3olcX5TDLeLnLAhg PQ1Ins/gsDK1SPGH9FqkuZ1JgDsmEvhF3k00pXitjTZFBFRWznaCWuGgeiNe9jFq+7wz fBMQ1e4lVu7kWN5ONmYXJwKroZQQhuhX46yN6cGmJCWQ23k1r7UACscXIXspUnrD3hTi GuRpAPksxUtCy1ba43dpphMiuKe21O2Ak5xceFmDfNnXLCrCV+IINpIrYqjek7nSDRtA Np/ZZgnzmE8I5i1wHEU+5eD3bVFg5VsdJLyfg9G8NHPzMSaIFiRcZ2O0gI9VtOEKPUih x4Xg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:user-agent:in-reply-to :references:message-id:mime-version:content-transfer-encoding; bh=x+AdKYfLS9gT5WYJ+/3I2JYeGx2UYT4j4GN/VwqgiDA=; b=VL81kyCL7+trCKZRQteNK30NSqUIrcKukDo/tn2wKt3ikekoYuJO3igexFwyxTiVn0 TznhwoW/6+Q+J8ffgdd/EVVdcq+MLTUdQp8e4MI554vtvYxEAGDzxlpEL3lwvEch0Zv1 w37YHNAy80K3t+yEYCpidonnB/g+dPUp9iRxuBHRw+u+MMZhhENaONI0043ZohjqfYYt En1CAM7FjcAWhKicFDEDAVBY22ieDhjkUYIa6SIxqhrtFyCMtM7B3wb1wEbYhctOglEg TJ+FVAlM/PhA2OQen1fouziuQXKKVDAC8MaDA7OUk7V3WxAZi3GpINICXgHlRlR0ZHBK UpUQ== X-Gm-Message-State: AOAM530bGUC5MRqR5R6W0vCFS04ZdHxAnKjxDKncQWqABrLELUEQiW6K 7MUX4tR/bOB6v1enZxfNFow= X-Received: by 2002:ac8:7ca3:: with SMTP id z3mr2799229qtv.109.1630587609377; Thu, 02 Sep 2021 06:00:09 -0700 (PDT) Received: from [127.0.0.1] ([179.97.37.151]) by smtp.gmail.com with ESMTPSA id t8sm977226qtn.37.2021.09.02.06.00.07 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 02 Sep 2021 06:00:08 -0700 (PDT) Date: Thu, 02 Sep 2021 10:00:03 -0300 From: Arnaldo Carvalho de Melo To: Leo Yan , Arnaldo Carvalho de Melo CC: 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 Subject: =?US-ASCII?Q?Re=3A_=5BPATCH_v2=5D_perf_build=3A_Report_fa?= =?US-ASCII?Q?ilure_for_testing_feature_libopencsd?= User-Agent: K-9 Mail for Android In-Reply-To: <20210902124529.GH303522@leoy-ThinkPad-X240s> References: <20210902081800.550016-1-leo.yan@linaro.org> <20210902124529.GH303522@leoy-ThinkPad-X240s> Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On September 2, 2021 9:45:29 AM GMT-03:00, Leo Yan wrote: >On Thu, Sep 02, 2021 at 09:22:21AM -0300, Arnaldo Carvalho de Melo wrote: >> Em Thu, Sep 02, 2021 at 04:18:00PM +0800, Leo Yan escreveu: >> > When build perf tool with passing option 'CORESIGHT=3D1' 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=2E >> >=20 >> > This patch changes the building behaviour, when build perf tool with = the >> > option 'CORESIGHT=3D1' and detect the failure for testing feature >> > libopencsd, the build process will be aborted and it shows the compla= int >> > info=2E >>=20 >> Thanks, added some committer notes to show that it now works: >>=20 >> commit 8fb36b1f54873870262810d3db10526559e1d6c2 >> Author: Leo Yan >> Date: Thu Sep 2 16:18:00 2021 +0800 >>=20 >> perf build: Report failure for testing feature libopencsd >> =20 >> When build perf tool with passing option 'CORESIGHT=3D1' 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=2E >> =20 >> This patch changes the building behaviour, when build perf tool wit= h the >> option 'CORESIGHT=3D1' and detect the failure for testing feature >> libopencsd, the build process will be aborted and it shows the comp= laint >> info=2E >> =20 >> Committer testing: >> =20 >> First make sure there is no opencsd library installed: >> =20 >> $ rpm -qa | grep -i csd >> $ sudo rm -rf `find /usr/local -name "*csd*"` >> $ find /usr/local -name "*csd*" >> $ >> =20 >> Then cleanup the perf build output directory: >> =20 >> $ rm -rf /tmp/build/perf ; mkdir -p /tmp/build/perf ; >> $ >> =20 >> And try to build explicitely asking for coresight: >> =20 >> $ make O=3D/tmp/build/perf CORESIGHT=3D1 O=3D/tmp/build/perf -C t= ools/perf install-bin > >The build command contains duplicate 'O=3D/tmp/build/perf'=2E Oops, I'll fix it, thanks=2E - Arnaldo