Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp3366677imm; Sun, 1 Jul 2018 19:52:13 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIjO9v8GQXVS+Y94LR6cyMEJvwp+b1HrCl0+2idRFgLCuwHuPEYMPQvc+/1tRUPsUMSIyvR X-Received: by 2002:a65:4146:: with SMTP id x6-v6mr20288233pgp.221.1530499933441; Sun, 01 Jul 2018 19:52:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530499933; cv=none; d=google.com; s=arc-20160816; b=0NXgljav3eIwUfBsiO11oQ5XQefROLcRTsZjJ+2bKNMKDAt2Q8CPljHo6tiBRxJwv6 RAydwd+pyjlJsiaXj7VfavDVxK80+gh7JUn0F2/9+MUfZZAesZn1EuBMDx7c84NVRZ4t SYWP2gwCYukkKppviQVO2j4n1Y9hNkS6tSbAUwRiraBfa5Fl1a1viJ5NpLqjEo5dORD4 TnaeCS2re8njxBFg4gHRvr0jUaSarMWm9pJcqIp9dAGyxpUKCA4ir2rYVZgVB4j29TMy Eujim8l79/JdaCSrvsAGmymFsBrWyrt/j/HqV1euq9v6BKfw9OywvUJqEu1EHmB8fsyO G0Cw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=b8PPriMWRG9naR04wUtYox1sKTGzCo4cFOu8fGakX0E=; b=i8Kh/18usgb+Z52VoMXs9mhxD9WnLO5ei883Ep0S8iDZfXfr8wgJrjLnMneqde7KFH 6pxE5detinq6BWFGE1hWhllYlz4twScmpSqIGf1E4kU8YHUDxCtFcqgR9SLi6RxoQ0yH mWug6pnTXEhAJLi9GjnyStl/7EbocUzrAQVIfLkg9OY+PvOXr3htFh2acqHhsDtf6zOw 9uosgjjNFEFvtHeu+RxNqUAStmLHoARVaTJaYE5z7vxoz8Ckv6rDcO2HXRaIKzD8j9XL HML9XVkMzDjb/5LO+XKxNLUfCatGBDmW51OUisLSEZkLT24W/T7SNfWJeaAiOgGwGi7Z EZWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="WlZMrY8/"; 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 l8-v6si12958960pgq.432.2018.07.01.19.51.58; Sun, 01 Jul 2018 19:52:13 -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="WlZMrY8/"; 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 S932698AbeGBCf5 (ORCPT + 99 others); Sun, 1 Jul 2018 22:35:57 -0400 Received: from mail-pg0-f67.google.com ([74.125.83.67]:39267 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753042AbeGBCfx (ORCPT ); Sun, 1 Jul 2018 22:35:53 -0400 Received: by mail-pg0-f67.google.com with SMTP id n2-v6so6419811pgq.6 for ; Sun, 01 Jul 2018 19:35:53 -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:user-agent; bh=b8PPriMWRG9naR04wUtYox1sKTGzCo4cFOu8fGakX0E=; b=WlZMrY8/U1kzvGkhmEgBSY0t9+3SbD9OAVASlP7j8EMlmzeZVce/4CUigTiCtFGdY2 sdRWyiMNLaAaq1wt1uN5CaRdRYRDr1Dt3sbPFbheagOD9FmrQFsKJ3meBkgWw7XLdzmb i4j3Yb9bi9NEhhIf/+XiXcMoXyq8A1/MlFy84= 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:user-agent; bh=b8PPriMWRG9naR04wUtYox1sKTGzCo4cFOu8fGakX0E=; b=ckt6/YReN+veIsUZzm9VVAUtBShJvxFl3abLhOMFTZTv0we5YeIA6uEmPbH3X4NiIh zjEerRaEoaWICBbff4i2So0h9yc3QSyB1LQfz4gIkyybzq9IDKr15NQ6eLdFd0PxmLmP kR+WNZ2jUONxExpDOvmrc1+Du+rYQIQw29vrXQzIieKCUU1Xv/7m+AwbD10OV5mecA8o r3nf3iNyMrM7NPx5ixZ+xyG4rtT0LsSVpU9kAU4vGdEnBeymwIyo9Tg5Pzzj1Thr3t8U jKXvfqFSkSOL+r/6HohTWAY73u8u3fgcWXby8wGSZTysdySoo1BGScRv+2E61wXW68IN r8zg== X-Gm-Message-State: APt69E0qpgUTr0KuuqW5Fs3BkWm7C2fReKx0uxfy2yef+MMCQpe4uHbN tCPEJPTb1ZZpQYFrTotOjeUBlg== X-Received: by 2002:a63:6383:: with SMTP id x125-v6mr3313148pgb.127.1530498953113; Sun, 01 Jul 2018 19:35:53 -0700 (PDT) Received: from leoy-ThinkPad-X240s (li1192-169.members.linode.com. [45.79.93.169]) by smtp.gmail.com with ESMTPSA id v1-v6sm9338538pfg.101.2018.07.01.19.35.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 01 Jul 2018 19:35:52 -0700 (PDT) Date: Mon, 2 Jul 2018 10:35:45 +0800 From: leo.yan@linaro.org To: Arnaldo Carvalho de Melo Cc: Mathieu Poirier , Peter Zijlstra , Ingo Molnar , Alexander Shishkin , Jiri Olsa , Namhyung Kim , linux-arm-kernel , Linux Kernel Mailing List , Mike Leach , Robert Walker , Kim Phillips Subject: Re: [PATCH v1 0/6] perf cs-etm: Fix tracing packet handling and minor refactoring Message-ID: <20180702023545.GA13629@leoy-ThinkPad-X240s> References: <1529298599-3876-1-git-send-email-leo.yan@linaro.org> <20180619181943.GL20477@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180619181943.GL20477@kernel.org> User-Agent: Mutt/1.10+31 (9cdd884) (2018-06-19) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Arnaldo, On Tue, Jun 19, 2018 at 03:19:43PM -0300, Arnaldo Carvalho de Melo wrote: > Em Tue, Jun 19, 2018 at 11:46:02AM -0600, Mathieu Poirier escreveu: > > 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. > > I'll take a look and get it into perf/core, now I'm concentrating on > perf/urgent work. Gentle ping for this patch series. I tested this patch series on perf/core branch with latest commit 87b40003b17a ("perf tests: Check that complex event name is parsed correctly"), this patch series is still valid and can pass testing. Could you pick up them? If you want me to resend this patch series, please let me know. Thanks, Leo Yan