Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp768008pxb; Wed, 1 Sep 2021 09:28:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxhmeU18KGF0yPz7cx/nHDwWKCgzQE4e4SeAtBa+cAX1Y8AgOaymq8CFdqqbHxu2Frm0yi2 X-Received: by 2002:a92:da87:: with SMTP id u7mr232902iln.297.1630513725097; Wed, 01 Sep 2021 09:28:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630513725; cv=none; d=google.com; s=arc-20160816; b=xhX/E5LCtfdEb2JbtDLi/9bvqlFweNkAX11MC3rlXezW+X3215UpUjsh+Gz7UzLZPt juOHJjkWpRGpv4myQFZalarMywx/zuUhWA2R++dCXjh+z11+tYd3lDhEzJSYErYej9tL kx0NyQGf2ivWZHVjcGXrfjGNqNEnUSOGqDkC8EVjcXVuQ3uJioHqdb3Zi1jf3fNafIdt 6BXI6lB908wvsbxBG0b5sTkdzos8r3ThBbURI2p7TgmSN8K5bq42RXPMZ1ht1w7+oA6E 2UBkJJlkwo9ZKM/5FH+UvQPejHLrEZ//Jgi2aWAE8ZshW1nquV5Oy35nvgFLMKgs6CrC NFlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=CpmpDX9mXyRtxYmLEO2wcaDHh5IcpZ25iZxXjXEgGoo=; b=eyzRTganinuA2cw5qNjP3HDeBAMXp5gLwizDe/VKbKYDMECkkhHsGro/fGf8GAxKj0 5/woHEuCuVut9z/KnJjAmvYyf8w803wmr7gL0+mPNjZKUhlyHmQTSlJHHSnTrUy6rEJ/ 4L9TpXJ5o6CLCgB6UDVHtQiNjOnjQAqNWH7RdL3ZF3clCkYQeELjyUqVYswaQ/kRPrYc V55wqXJrquQTXC9qeKlX0f187h63hs5V1tE+U7UOhaTteTlrFuZ8fMfRc0Le6vC84LOr btDffeWhDE3Uw9TgXYwZOExU1Zm/IxoSWQg+A3TrBC1MZUvYAwIMGw5r1kztzlwhZ3RV OiKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QDReyLgU; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h30si2289438jaa.9.2021.09.01.09.28.30; Wed, 01 Sep 2021 09:28:45 -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=@kernel.org header.s=k20201202 header.b=QDReyLgU; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245374AbhIAQ0j (ORCPT + 99 others); Wed, 1 Sep 2021 12:26:39 -0400 Received: from mail.kernel.org ([198.145.29.99]:41102 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229820AbhIAQ0h (ORCPT ); Wed, 1 Sep 2021 12:26:37 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8607F61026; Wed, 1 Sep 2021 16:25:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1630513540; bh=6XGIessxCdstb1MMTQL+7eNQhowuUPMqPTFcz8N7HFY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=QDReyLgUFD8AGU1OgU1f2rxSgz3EmMgeeN5NXrDXT1Uyo3fvU3H6qs9Ojo8HbzxEL 2OH9CpZzEKNml2BMqKpmgY32xDGerER2vj4mS7CShaJnGpRkkIyO3D6gE8Tl3Zr1Rk XkBKi+SN4u/cjjL7OJzpqrQHOF6zLH06+lH4Ebpb124UrpME9L9pSETdMAZiqxQW5D 0ATeVxhZhs06Aq/TxPOdaamE1BYXHVFrGl1lAxLBgSouTAxjib/usI9//FTIMOFoW7 Ge/oyFpiWDe8boqMg5ZeOfDhDbUtOkS97wgS0zJo8MUrPCnY7nw9tKk0URHJDI0DFj ACwmX2b9Xp9/w== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id C043E4007E; Wed, 1 Sep 2021 13:25:37 -0300 (-03) Date: Wed, 1 Sep 2021 13:25:37 -0300 From: Arnaldo Carvalho de Melo To: Leo Yan 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, John Garry , Will Deacon , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 9/9] perf cs-etm: Show a warning for an unknown magic number Message-ID: References: <20210806134109.1182235-1-james.clark@arm.com> <20210806134109.1182235-10-james.clark@arm.com> <20210824083615.GF204566@leoy-ThinkPad-X240s> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Url: http://acmel.wordpress.com Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Wed, Sep 01, 2021 at 01:16:56PM -0300, Arnaldo Carvalho de Melo escreveu: > Em Wed, Sep 01, 2021 at 01:07:41PM -0300, Arnaldo Carvalho de Melo escreveu: > > Em Wed, Sep 01, 2021 at 12:54:34PM -0300, Arnaldo Carvalho de Melo escreveu: > > > Em Tue, Aug 24, 2021 at 04:36:15PM +0800, Leo Yan escreveu: > > > > On Fri, Aug 06, 2021 at 02:41:09PM +0100, James Clark wrote: > > > > > Currently perf reports "Cannot allocate memory" which isn't very helpful > > > > > for a potentially user facing issue. If we add a new magic number in > > > > > the future, perf will be able to report unrecognised magic numbers. > > > > > > > > > > Signed-off-by: James Clark > > > > > > > > Reviewed-by: Leo Yan > > > > > > Applies cleanly to my tree, test building it now, holler if there is > > > something that prevents it from being merged. > > > > I´m now trying to fix this up, I applied it using 'b4', so no patch > > should have gone missing... > > So its probably related to: > > ⬢[acme@toolbox perf]$ rpm -qa | grep opencsd > opencsd-1.0.0-1.fc34.x86_64 > opencsd-devel-1.0.0-1.fc34.x86_64 > ⬢[acme@toolbox perf]$ > > In which case the usual mechanism is to test if we have what is needed > via tools/build/feature/test-_____.c, lemme check... There is a test and it fails, of course: ⬢[acme@toolbox perf]$ cat /tmp/build/perf/feature/test-libopencsd.make.output test-libopencsd.c:9:2: error: #error "OpenCSD >= 1.1.1 is required" 9 | #error "OpenCSD >= 1.1.1 is required" | ^~~~~ ⬢[acme@toolbox perf]$ But the fact that I ask for CORESIGHT=1 should have the build fail then, i.e. if one explicitely asks for a feature and it can't be built, fail the whole build. - Arnaldo