Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp1006280pxv; Thu, 1 Jul 2021 14:43:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwSUfKVBnV+MFZgpfpzyVXoiq4x7kigOYmXE9ZNo9YQE1w+lyaVKkJxGravSXquy02DwXoe X-Received: by 2002:a05:6402:164f:: with SMTP id s15mr2565380edx.238.1625175813813; Thu, 01 Jul 2021 14:43:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625175813; cv=none; d=google.com; s=arc-20160816; b=habDKvFRZHBMdUjJME/EckSKFFwPBKldePNnzcB17nHkLuX1NBq1MoT2PepIGG7/9L p6TJ1L5wbwZAFWnu9pGwSUljS8vb23L5l0ZFKhyafjk6g5LvPTbf68p8JqmiRxNkEG2b LD3hj0Q3jTSBtgXMhXbhvbunwOSf8oxcmxK06plf0VcSpHujmJ3qgjupFiFqQhgrpO2m MOmAfH760v9SjlrJCv5f1lyDXXg9TCF2mUksc31NhurCg4YNWvy9rSBpwLjukUdo+EG1 bH/RwuhLlGnqV3gXfUrXbmd3uiY1E/pFOij5SaVy/5banjvFs20L6h5GNfenZ39FO2KU 3YZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=Tc7gbn3Ftt/4NIeXEIEA6HpsChZKnl2aVzWD/EIv0TM=; b=XHazFd0POOzMB26bUWHJLZpptF1ZB8f+YT4yckYejvRJalCrvHo1884MxoM/EWeBca MNi5LaKzBiDm7JHb6JmmthehNxPeZC9XlkhU/0QRXIqhyijkI3FYvL3yT07h7mcVLCBD IFgyQTuW2LCaIGe2anAKi1H4Bab/M4LtY8pKhwWK5Bz2OXNuzMCPFqTlm+t6heNQO4Ux IAW4uKUgGRRoYXqiRoXwfNFcJbYK0pZqqh/fjrn+49Pr3EpnHSGHYHQuSUjcMztlN9CC PPTZkgB2vdreGwjTAZtOj5newNyjbZ3BL67RQZ+KZfhAkZoVuhinAbR8TnuAKXAyDbwa b5ag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ijw8xLNj; 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 v30si227135ejk.99.2021.07.01.14.43.09; Thu, 01 Jul 2021 14:43:33 -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=ijw8xLNj; 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 S234226AbhGAVf7 (ORCPT + 99 others); Thu, 1 Jul 2021 17:35:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43392 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234152AbhGAVf6 (ORCPT ); Thu, 1 Jul 2021 17:35:58 -0400 Received: from mail-il1-x136.google.com (mail-il1-x136.google.com [IPv6:2607:f8b0:4864:20::136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 848DAC061762 for ; Thu, 1 Jul 2021 14:33:27 -0700 (PDT) Received: by mail-il1-x136.google.com with SMTP id 3so7867018ilj.3 for ; Thu, 01 Jul 2021 14:33:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Tc7gbn3Ftt/4NIeXEIEA6HpsChZKnl2aVzWD/EIv0TM=; b=ijw8xLNjGCINxCvnMakX8PDxs6krlcvVIattltygR45dT84xYpmio/o7WAEfbMunJA dETSqm6ef9MteDT0aXyi6FZhORuQI7vN+ZA/6VjY877yeDLk72JwFUoq6umQg9LJsgLI kTPKsvc5JiiiAJ4M6vy3NTRZMh6mk9xtVYomraNn5T1OORcs6kuKAbfNoZi24eTW/yVL pSsaQ2bgWeHuul1ijWubHn3klzx8SH3geqbazGn70JZ6QHr9dNck1cm3oiBBJHcwpnoc JXeWQqCScXVGSY9yVcs3NEPQS0SFP9ZrUr+tDyOfyGzE0K8idwQujCh+95kAfutACkPy slCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Tc7gbn3Ftt/4NIeXEIEA6HpsChZKnl2aVzWD/EIv0TM=; b=XWakV1/7dg/zrGTXbYXx0ru7496ZmJ+GDq+di5VLZV0tYaJG1Yiy3DfGB+hSexSQPu oFKaligwrgWf6t+TIxT1Uxuy+DukObpPTPKNu182gasEoTQVvzggikoWSfjZHiehl/rl noDkW2Nr7jBXGiG4yKG6nkRRAQ669kOfZrJ8i9iDJXBsgWfbUb72oD34K60Rc9hTk10C R60DZkeNzeJAs6uls3fk0tvpkYT0Up2pdl8oXGaeobpFdFP2drrnov1l5n+ioxXEg/ro M29BpMm1XIErjpcOkKxmdM1tSc9PKBqugSR2Gg2XyMAi2+vthDjZFg+VHiOMrYP0oYg6 4I+Q== X-Gm-Message-State: AOAM531+xUs3u2YsouxMe6SJ5nHy0qk6b0TLAJsd1x2EJHK0oxJGlESI rIUFKVexi28J2kIWHWZQnFl/5x8f6rCj6UT0Q49brQ== X-Received: by 2002:a05:6e02:921:: with SMTP id o1mr1104988ilt.57.1625175206943; Thu, 01 Jul 2021 14:33:26 -0700 (PDT) MIME-Version: 1.0 References: <20210609130421.13934-1-james.clark@arm.com> <20210614155442.GA396617@p14s> In-Reply-To: From: Mathieu Poirier Date: Thu, 1 Jul 2021 15:33:15 -0600 Message-ID: Subject: Re: [PATCH] perf cs-etm: Delay decode of non-timeless data until cs_etm__flush_events() To: Arnaldo Carvalho de Melo Cc: James Clark , Coresight ML , Leo Yan , Al Grant , Branislav Rankov , Denis Nikitin , "Suzuki K. Poulose" , Anshuman Khandual , Mike Leach , John Garry , Will Deacon , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , linux-arm-kernel , linux-perf-users@vger.kernel.org, Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 1 Jul 2021 at 11:15, Arnaldo Carvalho de Melo wrote: > > 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. > Yes, please. My goal here was to wait for other people to test this code, which Leo did. > - Arnaldo > > > Thanks, > > Mathieu