Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp5466691imm; Tue, 19 Jun 2018 10:48:19 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKCnomSaq9mWvgqLBwTBPdcmpJnHi9kSmPZlnw72s0tyKO2KeOB+KD7jIDBu9X7iR+/4T3y X-Received: by 2002:a63:7d51:: with SMTP id m17-v6mr15759968pgn.245.1529430499098; Tue, 19 Jun 2018 10:48:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529430499; cv=none; d=google.com; s=arc-20160816; b=N7kJpBSBHgWaG/RfB5s8ZgMQENfRlcAmtaW83rOcdHcNfi07/X+v5XJkowYCK/qEO6 nfwtU9DjA5XjU1gn0kzygUdSMUzsjH3Zz6LnPYeGwIlLLhD4HhsLuUDKawWlfWUywjM+ zP3tUzg19SF0e08j9wR38flX58ZJ/htcg1DgTR+pEHqBrF+c0L2KIBtMHa5A0ICtoaa6 ab/hho51n1cyc/ARus6gi06uOKPxDW8BotyFDBH4GRrd0Tgu/YWj7ArGwvxA2lRxmeeU mXQcfbhJiBECK+kru4xj66GnVxefs5O6mk7FYzwykg7zMiYO940VXiHcHU1tMm+Qcwl+ nXgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=mnDocBGrNeqamPyawGilKONTZ8iPB/knSpT49vpqSL8=; b=k3a5i5t1B62BF+H+KzYotxF87lu7cZQlESWL+lhA19qdlx5z+DCyAdAgfJJ05bFGqn jUNyPl5lvNb9syazjHxsj35FH8doq8VAfDblKhE0p9Z+Ln/WcDPz9I0wiGVJqG0HZLO1 6BBl5dfYZKLdcPta5VY3n6wpdBNawWvNB7bcm8Ug5NCSpVjl0DI+m6nqX2pHKUmILeHg PSEZVPh/mjpCu/D9qe3nloLSvRAWwe40aGULaiQEOGgW9lp4s9CWwujQAVZ+01RUx/+y XlVmQnBTcMjXZ6Vqxm0gY3WCjpZ/6nfp5fu0RrhTrhnk+329RlSx8P8fZvbCuO3COFza COEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OZ9+SmRt; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id b2-v6si244304plz.118.2018.06.19.10.47.58; Tue, 19 Jun 2018 10:48:19 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OZ9+SmRt; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1030309AbeFSRqP (ORCPT + 99 others); Tue, 19 Jun 2018 13:46:15 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:50944 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966706AbeFSRqO (ORCPT ); Tue, 19 Jun 2018 13:46:14 -0400 Received: by mail-wm0-f66.google.com with SMTP id e16-v6so1769152wmd.0 for ; Tue, 19 Jun 2018 10:46:14 -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=mnDocBGrNeqamPyawGilKONTZ8iPB/knSpT49vpqSL8=; b=OZ9+SmRtWSf4idihK1PMh3e0G2gt0kIkFmOF548gAWqqFIt00h3PLgKXxaQ7MbD9Fe XCx03on/EcOSW3DZ2pyPi0wxmGHM+UZUlgUUHx0IVdjIUv6IUPhAZE38TOttLEy/igRi Cn+Wg46QK1fpyHx5b/EUSJtis0uSnlQXzkeWE= 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=mnDocBGrNeqamPyawGilKONTZ8iPB/knSpT49vpqSL8=; b=nSzgeoPtTSSeclcAuEGGeKNgLIkP1Il6EIT+0nUz/OXH6x2tziS+dNNp5hiM4iJ5e8 Ae4Q67YZBtJPFYLHxm1l/I903EgjRcps0OY3BIFWJ44PXP4Vmj7apT8gzNjsiWnbocJq ooIyAMQIR+620L8Kx628sNzvLZ58ZupVXvr5UwADhLSMju3Dle4tblFUKyiObGDeMA9W Zr7mo+HOpYGH2yWVx53MlqJQ1a2TUvl+8OLab2J/eke8GCOUMP3Qwiuj+ixavJ5y+Aa7 JPZ4Lu3wmmvbfR4Z7thuSB42xCL2ENywdLkfX5blYuHDpwkLc2J0aR9DndFmmAa2fSAa /Yjg== X-Gm-Message-State: APt69E2ysFlGXLjxNuui3pRcHiUk2A8WnUWaogK/rTTtDGL34trUfsU7 0DuIN7RIfRaWLJEa9oKs0JDxSAuqN4jN8N+3VhNuzupZ X-Received: by 2002:a50:b376:: with SMTP id r51-v6mr15687199edd.145.1529430373413; Tue, 19 Jun 2018 10:46:13 -0700 (PDT) MIME-Version: 1.0 References: <1529298599-3876-1-git-send-email-leo.yan@linaro.org> In-Reply-To: <1529298599-3876-1-git-send-email-leo.yan@linaro.org> From: Mathieu Poirier Date: Tue, 19 Jun 2018 11:46:02 -0600 Message-ID: Subject: Re: [PATCH v1 0/6] perf cs-etm: Fix tracing packet handling and minor refactoring To: Leo Yan Cc: Arnaldo Carvalho de Melo , Peter Zijlstra , Ingo Molnar , Alexander Shishkin , Jiri Olsa , Namhyung Kim , linux-arm-kernel , Linux Kernel Mailing List , Mike Leach , Robert Walker , Kim Phillips Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 17 Jun 2018 at 23:10, Leo Yan wrote: > > Due the current code is missing to handle cs-etm start tracing packet > and CS_ETM_TRACE_ON packet, we fail to generate branch sample for them. > > This patch series is to fix cs-etm tracing packet handling: > > Patch 0001 is to add invalid address macro for readable coding; > > Patch 0002 is one minor fixing to return error code for instruction > sample failure; > > Patches 0003~0006 are fixing patches for start tracing packet > and CS_ETM_TRACE_ON packet. > > This patch series is applied on acme tree [1] on branch perf/core with > latest commit: e238cf2e3d2e ("perf intel-pt: Fix packet decoding of CYC > packets"). Also applied successfully this patch series on Linus tree > on 4.18-rc1. > > This patch series has been verified on Hikey620 platform with below two > commands: > perf script --itrace=i10000il128 -F cpu,event,ip,addr,sym -k ./vmlinux > perf script -F cpu,event,ip,addr,sym -k ./vmlinux > > [1] https://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git > > > Leo Yan (6): > perf cs-etm: Introduce invalid address macro > perf cs-etm: Bail out immediately for instruction sample failure > perf cs-etm: Fix start tracing packet handling > perf cs-etm: Support dummy address value for CS_ETM_TRACE_ON packet > perf cs-etm: Generate branch sample when receiving a CS_ETM_TRACE_ON > packet > perf cs-etm: Generate branch sample for CS_ETM_TRACE_ON packet > > tools/perf/util/cs-etm-decoder/cs-etm-decoder.c | 10 ++-- > tools/perf/util/cs-etm-decoder/cs-etm-decoder.h | 1 + > tools/perf/util/cs-etm.c | 71 +++++++++++++++++++++---- > 3 files changed, 68 insertions(+), 14 deletions(-) Good day Arnaldo, I am good with this set: Reviewed-by: Mathieu Poirier Please consider for inclusion in your tree if you are satisfied with the work. Regards, Mathieu > > -- > 2.7.4 >