Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp1783449pxy; Mon, 2 Aug 2021 10:04:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwrQiHOz4OTtpJ/vofKW2W88E0CAOpcbBlmSIHZ1zxez7FIA7gT7Kmx524dCP/glSUq1FrC X-Received: by 2002:a05:6638:2493:: with SMTP id x19mr15394814jat.102.1627923887876; Mon, 02 Aug 2021 10:04:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627923887; cv=none; d=google.com; s=arc-20160816; b=kR3Oqb3av/A/cspCMJhbJXY0PoQ7ebs18qYeYZcXeehASKyRmDsQdLKJc187lfODQh vMwK05AeR5DSGhS84tYV/i8HUStwjIuUuqjJoxFlY1vFtKa+UDLkfSzKfJ/WM0Jf5xU+ w4/Fc9wv4WlIkOqRFy+XauQpAVmXkDib3nCBK7nzNO6W3uvS5pVhXO1ycqNriFDM/upE khLpgIz0XqDyDiNXKsVnv3oqgHmVYXS+DRaVDS/A06ipWvR6suRJyYnRd7+6he5Q/HPr G5qS5MXlbkGQTXvPQeIm68hieclslze6a8tdq7LgynQTTcy1cJTZSgKglZFldOt2rJEV usHw== 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=7ZboOedxV5HocqOHed9R2rRbrksyFeYlZ+bzi9mMGLY=; b=elPGrikG9aN8rYC0SjWuVAwVN5dggLL/nGxznf1R/xkogaXdU3g5FliEQt86w5Rjip cF51xGVrNvAqPPvrEr419J3Clz+3GSXajgZmjxi/kROzJsyfsopCUgD+h0uBOOudF1zm 4CW873Qe3UbYuWlA87zcEgADSUyc2LaDOeuga2Fk3v8sMLfIK/wYNl1PKKY1an/ORrLl HdVBzBSzdUyZ68Ij/qAtfSykmKh7yyH//gl3u8/hfm2wtnnzovFEybmUf7HnwXofym8o 1g4E6N/UlfvK8xQl9YA+aC36lNucKS0s/REKMobgPxlK5jRNbjg5Zcf+dRjaYl2MDw6z QzMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LxqcaZ5l; 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 j30si12058338ila.56.2021.08.02.10.04.34; Mon, 02 Aug 2021 10:04:47 -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=LxqcaZ5l; 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 S229681AbhHBRDV (ORCPT + 99 others); Mon, 2 Aug 2021 13:03:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59852 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229622AbhHBRDU (ORCPT ); Mon, 2 Aug 2021 13:03:20 -0400 Received: from mail-pj1-x102d.google.com (mail-pj1-x102d.google.com [IPv6:2607:f8b0:4864:20::102d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 31BC6C061760 for ; Mon, 2 Aug 2021 10:03:11 -0700 (PDT) Received: by mail-pj1-x102d.google.com with SMTP id mz5-20020a17090b3785b0290176ecf64922so32606239pjb.3 for ; Mon, 02 Aug 2021 10:03:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=7ZboOedxV5HocqOHed9R2rRbrksyFeYlZ+bzi9mMGLY=; b=LxqcaZ5ls/BOk7qlIHclYJaTgBc2zgv0mf+NcRmW6VNMuOkd3+mRfSMmBy3x3DmtJ/ hEPoMS+w5jwfrazMQS9fnffRSiC0ySFHteH86CjbojEfmv66jO5Er9mCohSihq/6J5de YzOwaTt1q40A2OKERsE7PGWVOBkk1qYHboQDXcFotsSfi+QBnm4QWsF2gCwI5SV5t4xQ qRkPRiISU58yhasSB3FT/dUvBzp27Fm/4bhX9nG06REZGvWsZdjtnG/iUXmqSS2/jw1l ClKrnmyp4qtHbS5AjfsFX60e/N/CmcR3S0LUce+QxyP1frI0B2Qb+EhkooN/y/uytWph iw1A== 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:message-id:references :mime-version:content-disposition:in-reply-to; bh=7ZboOedxV5HocqOHed9R2rRbrksyFeYlZ+bzi9mMGLY=; b=ltuxtgcHEIUYPpFUIrAJ/8LCG+rDtdlnAbc+aCQ0tZNxKjS1eWM3jjpD2qc7Fg04Tc oXb/uOSTDbaoZpg7qQZqyq+9KYmgF39jA4IgG7bkt3t/SJd2S87K0khihvCtGh92IfvD Eg1adLuGcCdfjHunN/y+KI/xu3bjnchwbSt18wsGyXnpkfJIU5cpgx1SkHpkzmA0GLlE u3w38uEGvStxSyei964KiumBbkIHaJI4XtRaNQB79CXy2T+VP3+ywJdPi7eELxABkJoU FaPLYB/PmuMsRgySQQeSmKlSissbMg/MZ/Yxe4+aawAUY4rJUO+hmmxcse4e8CS43Niy iLzQ== X-Gm-Message-State: AOAM5307NhEtFSzL/6DQrZXBLgdibDd4o7tWeEClEDN1qBOyrba7UYLI UrGbQVo2jQbMsrSJJLgicmzCEelSHnakzw== X-Received: by 2002:a17:902:6904:b029:fb:42b6:e952 with SMTP id j4-20020a1709026904b02900fb42b6e952mr14857532plk.16.1627923790701; Mon, 02 Aug 2021 10:03:10 -0700 (PDT) Received: from p14s (S0106889e681aac74.cg.shawcable.net. [68.147.0.187]) by smtp.gmail.com with ESMTPSA id t12sm544131pgo.56.2021.08.02.10.03.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Aug 2021 10:03:09 -0700 (PDT) Date: Mon, 2 Aug 2021 11:03:07 -0600 From: Mathieu Poirier To: Arnaldo Carvalho de Melo Cc: James Clark , 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: <20210802170307.GA3050918@p14s> 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: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 02, 2021 at 11:51:58AM -0300, Arnaldo Carvalho de Melo wrote: > 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? > I have a substantial backlog of patches to go through and I will be away for the next two weeks. As such it will be some time before I get to review this set. Regards, Mathieu > 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