From patchwork Tue Dec 4 20:39:01 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Poirier X-Patchwork-Id: 152862 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp8511667ljp; Tue, 4 Dec 2018 12:39:10 -0800 (PST) X-Google-Smtp-Source: AFSGD/UgZsgNVFfhNaIRb1ArlhgkN6oGXvvQzQj6w7UD1GIr1ykPpYxIax1xlS693U2h6z3llCMe X-Received: by 2002:a62:7796:: with SMTP id s144mr21418218pfc.26.1543955950643; Tue, 04 Dec 2018 12:39:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543955950; cv=none; d=google.com; s=arc-20160816; b=wnYQ1TFB4QXPz+uj5aEiWFqyMJ08YaCYgWZL/lr3o8HvbP80YN86RftzE2lEi3cKxV 5atDbLeOQbU9PjKLOEqCf0rJhOHJQFlKDkvjN7ni0JcXh1Hci+geWAhERnAyBRPLcSlr 6d+x9HlNCHSQCifcueUxD+7O7PloyeSnySlwST8VI8/lwjzBXpp2BeSev0lAa477YZ1i soqMQNmyRkHqDY29PgEEgsH4N/szNHqrYQ/LWnaXlF3ytrULawXEqo6u+43WA5tsfEHU HBnETo/nuFPDwqQR9NxDqVJmz+bSm6cRgsYWK7uHPOA37ZcpX1Po9flK0axoQDpfGmto 2zog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=wJ/j62LiSch6bvKVll7Ac7D2SHOc9QfdG+9Z3J+Td8Y=; b=yGsN7bSrd2ROCdV3q5bk6JPi8lsFHhT02vf8bvtLGWMrW/haL0uAC8InrDCuABB8oi bu/P35OhxXBUZv6EsJbvjde5h9DUdlsPmWDFbR90TmrTPW2lJsvt94h77g31VyScOodg yJVd5m4LG21wzEuAgNBvkmBAYQQAwmi+23azdYGwMC/HOYUlpALI9bI78OTz/mPyAv4/ XR3l1WuMEgAVSwCu9c0zjSEBfAPB5kYTzu6grix8/r5+arf3061oGaDg88CSnESggQl5 hzaJ/OTrJ1KGUf2q3IdvYAfOveiPQfAQGAX1i4ouAPtH6tQoCnSDGburUJxPkfmEaLit bXNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fgC6DsST; 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 g184si18580061pfb.288.2018.12.04.12.39.10; Tue, 04 Dec 2018 12:39:10 -0800 (PST) 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=fgC6DsST; 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 S1726208AbeLDUjI (ORCPT + 31 others); Tue, 4 Dec 2018 15:39:08 -0500 Received: from mail-pf1-f196.google.com ([209.85.210.196]:46673 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725866AbeLDUjH (ORCPT ); Tue, 4 Dec 2018 15:39:07 -0500 Received: by mail-pf1-f196.google.com with SMTP id c73so8782577pfe.13 for ; Tue, 04 Dec 2018 12:39:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=wJ/j62LiSch6bvKVll7Ac7D2SHOc9QfdG+9Z3J+Td8Y=; b=fgC6DsST2PrCjZ14iXyAwzH9xdulZU3S3eQ0J/vuo+Ruher0dWrKlDtX4cI8HGrt1I ivJXMdrLgalI66ZDh6OQoFxjCf7NKPRzVNBx1l6fyabR4143DdqXk9o+D9yrKxBl2pQU /PoQu7JN9CovdgffPfR9cylfjrZ9s4GW93Cqw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=wJ/j62LiSch6bvKVll7Ac7D2SHOc9QfdG+9Z3J+Td8Y=; b=SJ1i5qI0XZbKqsKal1PNwIxX0ZJYLkDBRyqXXS5heeRGmNxORK0/16VzRennj1YDsY U48Whin/BfOtbqrCOhznTdPSI4q0XAvb3htcZIdkhsg0kskCLL5V2wjXYZ2HKevP4roo khZl4X142zyGcraTqRNjW3eeBK73NtaLq84HslRut2fJ31fV9YCzA8oahlDJLCUyRbly EWpDkyCh1vY3M274Hs4j7qj/eawHLD6kATZwESHKeh8jT/q3TQSJ5QSnIdPmlFkCDkZM jfHHhU4cdsqr4HRJg60sRRzIQYS6XeIfyvCr3GAwyTomLZm0PMTj5RbjK3cYziGbzIws ueyQ== X-Gm-Message-State: AA+aEWZRMj5lsdYtH9PKDoG+tMbBlbeSmJF19kc1qAUIZPrfbp0VAptE DPLqM5hI8+ZEh5wNpeRYoE9EbA== X-Received: by 2002:a62:c583:: with SMTP id j125mr21727839pfg.37.1543955946497; Tue, 04 Dec 2018 12:39:06 -0800 (PST) Received: from xps15.cg.shawcable.net (S0106002369de4dac.cg.shawcable.net. [68.147.8.254]) by smtp.gmail.com with ESMTPSA id r76sm29783274pfb.69.2018.12.04.12.39.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 04 Dec 2018 12:39:05 -0800 (PST) From: Mathieu Poirier To: acme@kernel.org Cc: peterz@infradead.org, mingo@redhat.com, alexander.shishkin@linux.intel.com, jolsa@redhat.com, namhyung@kernel.org, coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH RESEND 0/3] perf tools: Add support for ETMv3/PTM1.1 decoding Date: Tue, 4 Dec 2018 13:39:01 -0700 Message-Id: <1543955944-10042-1-git-send-email-mathieu.poirier@linaro.org> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Arnaldo, This is a resend of a set previously published in November [1]. It adds support for ETMv3/PTM1.1 trace decoding. The work has been tested on TC2 and ST-Microelectronics' mp157c-ev1 boards. It also applies cleanly to your perf/core branch [2] and does not affect results yielded by "perf test". If it is already in your set of patches to apply, please disregard and delete. Otherwise I would appreciate if you could consider adding to your next branch for the 4.21 cycle. *** Before this set *** $ perf report --stdio # To display the perf.data header info, please use --header/--header-only options. # DCD_ETMV4_0020 : 0x0003 (OCSD_ERR_NOT_INIT) [Component not initialised.]; No decoder configuration information DCD_ETMV4_0022 : 0x0003 (OCSD_ERR_NOT_INIT) [Component not initialised.]; No decoder configuration information DCD_ETMV4_0024 : 0x0003 (OCSD_ERR_NOT_INIT) [Component not initialised.]; No decoder configuration information DCD_ETMV4_0020 : 0x0003 (OCSD_ERR_NOT_INIT) [Component not initialised.]; No decoder configuration information DCD_ETMV4_0022 : 0x0003 (OCSD_ERR_NOT_INIT) [Component not initialised.]; No decoder configuration information DCD_ETMV4_0024 : 0x0003 (OCSD_ERR_NOT_INIT) [Component not initialised.]; No decoder configuration information Warning: AUX data lost 2 times out of 2! Error: The perf.data file has no samples! *** After this set *** $ perf report --stdio [...] # Samples: 12K of event 'branches' # Event count (approx.): 12049 # # Children Self Command Shared Object Symbol # ........ ........ ....... ................ ....................... # 28.18% 28.18% uname libc-2.19.so [.] strcmp 9.13% 9.13% uname libc-2.19.so [.] strcpy 7.87% 7.87% uname libc-2.19.so [.] strnlen 5.58% 5.58% uname libc-2.19.so [.] strlen 2.24% 2.24% uname libc-2.19.so [.] __rawmemchr 1.91% 1.91% uname ld-2.19.so [.] 0x000000000001156a 1.49% 1.49% uname libc-2.19.so [.] __argz_stringify 1.46% 1.46% uname libc-2.19.so [.] malloc 0.96% 0.96% uname libc-2.19.so [.] 0x0000000000054770 0.91% 0.91% uname libc-2.19.so [.] 0x000000000002430a 0.85% 0.85% uname ld-2.19.so [.] 0x0000000000007244 0.83% 0.83% uname libc-2.19.so [.] __stpcpy [...] Regards, Mathieu [1]. https://lkml.org/lkml/2018/11/16/884 [2]. 34434e3633de tools lib traceevent: traceevent API cleanup Mathieu Poirier (3): perf tools: Add configuration for ETMv3 trace protocol perf tools: Add support for ETMv3 trace decoding perf tools: Add support for PTMv1.1 decoding tools/perf/util/cs-etm-decoder/cs-etm-decoder.c | 31 +++++++++++ tools/perf/util/cs-etm-decoder/cs-etm-decoder.h | 9 +++ tools/perf/util/cs-etm.c | 73 ++++++++++++++++++++----- 3 files changed, 99 insertions(+), 14 deletions(-) -- 2.7.4