Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp835880pxv; Thu, 1 Jul 2021 10:16:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzmGcUE6XM6zANrcYsHQzGy/wiAH4MEDy9aGeRX0UA+0HuS8Kmv3IDCGPWXH/QB0a1GfZBO X-Received: by 2002:a50:afe2:: with SMTP id h89mr1242785edd.308.1625159814773; Thu, 01 Jul 2021 10:16:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625159814; cv=none; d=google.com; s=arc-20160816; b=Qrqu5e8muhFOdu90FGRmBnsnpHZSHVnIWtvI7JmwTVpI4J+LYLXRF1nfhOtWOCC319 NZqAP5T9U9LCJB6I1W4pZimuKhs8WFnYloJjtrOWaoF7SnGkP0ikc2KTDC4odLC/S7mf k0ks5LTARtpCIS3dppq/o6lASBcLSNE2b1HHQTOXB48OuDw3W/PrKHjSHUgi+ad2Fi/O L10yWVo7ULnELxPuCF5gkAQnvZe9Xc1IeVFUc/wxKSY+xDUf6+npWJ2ZXUpk4nnTOFhR 0sBcPM3/0G3ZqmRXYfNV4U64g42shb5iZQ15m5IlKa/qE8GfOfEZ2mHmjSsxSfV2yTdA jNaw== 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=9WDXU4Rt6nNDHcbzXa4fAXPi/EaDfekWUA3m+l9MMUg=; b=CrXaUuOeb2slGb/KjzllTaSbOQtibVMIMiYG0mImspB0nZk0TUkLy7cMRpSEwCy9er pYBA7XSlzAZep/OeQoAD7xLFY9nEunOWw7B2BIkPPVEyehoz+Gv3KbPHsZKuyUWNXUiX 60EASwCVmoMWoyFlba6onTx51phgBi2pKur2xYJQcXqZFFQgL3P4RLnx3C0XujvfYtBe TpEgKFKMWZ/rebV/gW2uSpcrf7Opk1qX64sx8dR0zKXlIg7qKGK7iFpqiPs4sMIfqQ3s Zvj604j1ghgMFeXTLAKMLQEbN5xfYeXvZCXGdNnFXizwOtsV4usY3RwkC+X8fkFMBUVr xv1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=C3JVuo5u; 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 cw1si304483edb.82.2021.07.01.10.16.30; Thu, 01 Jul 2021 10:16:54 -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=C3JVuo5u; 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 S232081AbhGARSB (ORCPT + 99 others); Thu, 1 Jul 2021 13:18:01 -0400 Received: from mail.kernel.org ([198.145.29.99]:50074 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229629AbhGARSA (ORCPT ); Thu, 1 Jul 2021 13:18:00 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id E714361405; Thu, 1 Jul 2021 17:15:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1625159730; bh=zq344pJx1WuJMIhJczkrq3swqybb852HF++5glo+ZRM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=C3JVuo5ulCIkd80LX25X37wj5Vh0dedZXdyxFMJtjMX7VCpQbv/NslEPQdR9vbbGP jCgjzKNNh2EgSQiBXE1BMncM4x014aJvEsDE50rhDwkqP82kNXXfkRbU4idyyGy+jL B4gUt2oWlBRjklHpR7+cUYAHpBJZhM6hBj233U7lDJgx8caF8qmoYZo55/LS6S+LYK oHzyHd/Ok6OKm8HLj2MX8g64K3FrMYIRRh5007y0loFp4nsGLTks1wsuiXlCyDqdgT 1XbH1cpTOsKIWxnHXI2ieyZomoxh13Pgj9IKAayfy3AQYgvVEixYzwg7xZI7MbOORm zlMqrggv/QuAA== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id 02C1340B1A; Thu, 1 Jul 2021 14:15:26 -0300 (-03) Date: Thu, 1 Jul 2021 14:15:26 -0300 From: Arnaldo Carvalho de Melo To: Mathieu Poirier Cc: James Clark , coresight@lists.linaro.org, leo.yan@linaro.org, al.grant@arm.com, branislav.rankov@arm.com, denik@chromium.org, suzuki.poulose@arm.com, anshuman.khandual@arm.com, Mike Leach , John Garry , Will Deacon , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , linux-arm-kernel@lists.infradead.org, linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] perf cs-etm: Delay decode of non-timeless data until cs_etm__flush_events() Message-ID: References: <20210609130421.13934-1-james.clark@arm.com> <20210614155442.GA396617@p14s> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210614155442.GA396617@p14s> X-Url: http://acmel.wordpress.com Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Mon, Jun 14, 2021 at 09:54:42AM -0600, Mathieu Poirier escreveu: > On Wed, Jun 09, 2021 at 04:04:20PM +0300, James Clark wrote: > > Currently, timeless mode starts the decode on PERF_RECORD_EXIT, and > > non-timeless mode starts decoding on the fist PERF_RECORD_AUX record. > > > > This can cause the "data has no samples!" error if the first > > PERF_RECORD_AUX record comes before the first (or any relevant) > > PERF_RECORD_MMAP2 record because the mmaps are required by the decoder > > to access the binary data. > > > > This change pushes the start of non-timeless decoding to the very end of > > parsing the file. The PERF_RECORD_EXIT event can't be used because it > > might not exist in system-wide or snapshot modes. > This looks good to me but I'd like to have other people testing it. So Leo reviewed and tested this, I'm taking your "looks good to me" as an Acked-by, as per Documentation/process/submitting-patches.rst. - Arnaldo > Thanks, > Mathieu