Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp1686688pxy; Mon, 2 Aug 2021 07:54:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwG8t7DQGxdfBZqomgQlu9jDRlhDuRJ7ejXEoaQmu+BL1uVAb9W0HghoUoGqK8KkFNT3olH X-Received: by 2002:aa7:cd71:: with SMTP id ca17mr19475183edb.58.1627916047462; Mon, 02 Aug 2021 07:54:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627916047; cv=none; d=google.com; s=arc-20160816; b=PWdVCs+Vnf2lnXzV/VyVzYOZRXC6785neSODzHlgAA/sGSqI7CoBytt22dMcaU4vXp a5QoHZ0RBP1yECeh6H5aODehhPCAqzS5GiIz5vwwVADGUfeu4oe8IbRBWWUepmHXa8TL OuWY+IDdhiGPZeIS3zCy5bNs4fmtNu3Cs/USkQxwNBRpt+dgmgb8u6/DggGxptGcyNae C53ck4XfQLjUrcArIOuQLA0hbaVNlngms1dqUtIcmxW7jFyOkmrIrjVZug+YclpuWIe5 5ntmXYtrok0fORJQv4ew6VOSrW60WKkSMpRbWWjzTuoiB1qi9AxckLWeiQmaFKkIbYAL ISDA== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=msgQ0dr4COZUxnmKLhaNysMP/nNJRDXg26KLyXEl2fY=; b=0KxEmpJ8MjuOkByWxP0ZPgLIunVrqRTEFVF7HWPECAw7UMCyVJPhR9JUOo5uPjucSd g9z7EIvF8cDUsi4PYmhPyMbfaZ5QMr2nejAeqmQ/1/T2qoVwq8UN2pa/1YAu0X5oT46u 4HUWE0B8vBMGMiCgHfdAze9nYh5I2uIi+k9YyoC2vgH8qPQHN+qI7ZS9TXcL8eIDNHlf h++Jg9x98c+SylWzLeujOByDVT3fIZ3MrqnXV/28VArphysQlculElCmm4p5tmC0r8W0 cJZz3QqWh0z2YClxpDbW+h2XuZO5eE8Ul15N5Ge1YzY+JE/j5M+ekhicz9uTnOvj18tc vI8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jmhwzY2W; 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 o4si1387257edc.206.2021.08.02.07.53.42; Mon, 02 Aug 2021 07:54:07 -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=jmhwzY2W; 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 S234220AbhHBOwL (ORCPT + 99 others); Mon, 2 Aug 2021 10:52:11 -0400 Received: from mail.kernel.org ([198.145.29.99]:51908 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233925AbhHBOwK (ORCPT ); Mon, 2 Aug 2021 10:52:10 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0B45E60F70; Mon, 2 Aug 2021 14:52:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1627915921; bh=6t51VO9yCjRtkFGlvwCg/xuFX5HR4ZRg5q15g2jcCKw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=jmhwzY2WNEivRJ2JEN0fyJxqDv4j+d2EC8B19QZN6u1vj/o5cL1KVY+/HS5LSB3fd wugLh1HC71glvGjuOume0HoTAuLyjVY7NdXuGdF9j9QwQ/nv1AN6VCcOYVbyJA8XVj obDBnCoxyjunn6wW4x8hF46W1nCKS24P7slC+tWX2KIs4Ipb28wNo1n5ekta+kqKeR Fd9Si5v+IfIhfEdFeexGYx6WjPIDvhgZt1BIxb33mBo1c/knqyOG4CmeGkuyQ8h3Ij nKmIupR9JD7kDUOve/1Tg8f0zmu4heC4rpzDhkyv6VPr56tcFvQOyxrnNISkuup51J +GnbaITXO1IIQ== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id 80BA1403F2; Mon, 2 Aug 2021 11:51:58 -0300 (-03) Date: Mon, 2 Aug 2021 11:51:58 -0300 From: Arnaldo Carvalho de Melo To: James Clark Cc: mathieu.poirier@linaro.org, coresight@lists.linaro.org, linux-perf-users@vger.kernel.org, leo.yan@linaro.org, suzuki.poulose@arm.com, mike.leach@linaro.org, Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , John Garry , Will Deacon , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [RFC PATCH 6/6] perf cs-etm: Add warnings for missing DSOs Message-ID: References: <20210729155805.2830-1-james.clark@arm.com> <20210729155805.2830-7-james.clark@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210729155805.2830-7-james.clark@arm.com> X-Url: http://acmel.wordpress.com Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Thu, Jul 29, 2021 at 04:58:05PM +0100, James Clark escreveu: > Currently decode will silently fail if no binary data is available for > the decode. This is made worse if only partial data is available because > the decode will appear to work, but any trace from that missing DSO will > silently not be generated. > > Add a UI popup once if there is any data missing, and then warn in the > bottom left for each individual DSO that's missing. Looks ok to me (the last 3 patches in this series, the rest I applied already), can I get some Acked-by/Reviewed-by from the CoreSight people? Thanks, - Arnaldo > Signed-off-by: James Clark > --- > tools/perf/util/cs-etm.c | 10 +++++++++- > 1 file changed, 9 insertions(+), 1 deletion(-) > > diff --git a/tools/perf/util/cs-etm.c b/tools/perf/util/cs-etm.c > index 32ad92d3e454..e6851260d059 100644 > --- a/tools/perf/util/cs-etm.c > +++ b/tools/perf/util/cs-etm.c > @@ -746,8 +746,16 @@ static u32 cs_etm__mem_access(struct cs_etm_queue *etmq, u8 trace_chan_id, > > len = dso__data_read_offset(al.map->dso, machine, offset, buffer, size); > > - if (len <= 0) > + if (len <= 0) { > + ui__warning_once("CS ETM Trace: Missing DSO. Use 'perf archive' to export data from the traced system.\n"); > + if (!al.map->dso->auxtrace_warned) { > + pr_err("CS ETM Trace: Debug data not found for address %#"PRIx64" in %s\n", > + address, > + al.map->dso->long_name ? al.map->dso->long_name : "Unknown"); > + al.map->dso->auxtrace_warned = true; > + } > return 0; > + } > > return len; > } > -- > 2.28.0 > -- - Arnaldo