Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp629035imj; Sat, 9 Feb 2019 04:55:50 -0800 (PST) X-Google-Smtp-Source: AHgI3IasUE9GZd8P4uTlN91yssXdm92cSyuXaumecMcE3/4yJipOFC5qj9TpLK2yTe640Ews8dwm X-Received: by 2002:a62:2547:: with SMTP id l68mr27189707pfl.131.1549716950039; Sat, 09 Feb 2019 04:55:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549716950; cv=none; d=google.com; s=arc-20160816; b=CYumS5h+IGHPSKFAMMJlI8mFhorJlRbEbaWRcyySGMC02NwlUQOzHCDfnWVLiNQAIi E7lmqDo0YrUoUpukA2Sq2dprmZhCczT/KMaSk21zytF7ZAh8++OX3IIOKYDNvTVlgkas A0hTMlM8ckM1UZeIqt7r0YEm60+kaCIPuxNCqxmj8tUarU3eMSKYCjGGlEPch72WPRzG JI5guKJxdci26afMJYdEdyacdZv9WcX7cLN98+SqA6lAaBXaMrqkNWSLS+ISeihAj6IQ qaXqJ2F+D9Zcl8oZdHsNt0pYmZcPCZMw2UxH3ptLajF7friUNwauxkJLVh0nG5zUuOL4 oyag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:robot-unsubscribe:robot-id :git-commit-id:subject:to:references:in-reply-to:reply-to:cc :message-id:from:date; bh=/xqf/yW4ebsasSFgEewqc6DCQ6vgvf22NL5sAh2XCZo=; b=d7FURQSoAO/OEko3WbylK1M0nsChv+pUQRjQlslvtKz224AStXENQ4uEF6XHSPFPOf XWw5EYBBq81QyTFiAZLmCHXNn04ScO3+KAJdsG2bpvkuvwRIJW6s13YBgXIcozrlFPKy CslIBJUs6FCKp1MgKx/ila/tGiu9+6E4335qUrf7wbfemlJ4y5M/XPz3s4z5SNAqes9O i4RG717ZEGmP4D5C/qhkOBZpEiEsjD3jqfuyjg7vJM51Wa7ghV7tl/SprM+q8n0L/NBc Z+a87+F+p9bRXhgbOBYbSEhWV/YXObiS2X9tBrBS5WRcuzaSnYThwGdo0XFHjMiJNFqO fRCQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i2si5038200pgl.153.2019.02.09.04.55.33; Sat, 09 Feb 2019 04:55:50 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727036AbfBIMzF (ORCPT + 99 others); Sat, 9 Feb 2019 07:55:05 -0500 Received: from terminus.zytor.com ([198.137.202.136]:55815 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726703AbfBIMzF (ORCPT ); Sat, 9 Feb 2019 07:55:05 -0500 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTPS id x19CsqE22633323 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Sat, 9 Feb 2019 04:54:52 -0800 Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id x19CsprB2633320; Sat, 9 Feb 2019 04:54:51 -0800 Date: Sat, 9 Feb 2019 04:54:51 -0800 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Leo Yan Message-ID: Cc: coresight@lists.linaro.org, jolsa@redhat.com, leo.yan@linaro.org, robert.walker@arm.com, mathieu.poirier@linaro.org, acme@redhat.com, mike.leach@linaro.org, alexander.shishkin@linux.intel.com, namhyung@kernel.org, tglx@linutronix.de, suzuki.poulose@arm.com, hpa@zytor.com, mingo@kernel.org, linux-kernel@vger.kernel.org Reply-To: linux-kernel@vger.kernel.org, hpa@zytor.com, mingo@kernel.org, suzuki.poulose@arm.com, tglx@linutronix.de, namhyung@kernel.org, mathieu.poirier@linaro.org, acme@redhat.com, mike.leach@linaro.org, alexander.shishkin@linux.intel.com, robert.walker@arm.com, coresight@lists.linaro.org, jolsa@redhat.com, leo.yan@linaro.org In-Reply-To: <20190129122842.32041-7-leo.yan@linaro.org> References: <20190129122842.32041-7-leo.yan@linaro.org> To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/core] perf cs-etm: Add traceID in packet Git-Commit-ID: 03919e526b29be8d0c77142e008b397a2c089398 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, T_DATE_IN_FUTURE_96_Q autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on terminus.zytor.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 03919e526b29be8d0c77142e008b397a2c089398 Gitweb: https://git.kernel.org/tip/03919e526b29be8d0c77142e008b397a2c089398 Author: Leo Yan AuthorDate: Tue, 29 Jan 2019 20:28:40 +0800 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 6 Feb 2019 10:00:40 -0300 perf cs-etm: Add traceID in packet Add traceID in packet, thus we can use traceID to retrieve metadata pointer from traceID-metadata tuple. Signed-off-by: Leo Yan Reviewed-by: Mathieu Poirier Cc: Alexander Shishkin Cc: Jiri Olsa Cc: Mike Leach Cc: Namhyung Kim Cc: Robert Walker Cc: Suzuki K Poulouse Cc: coresight ml Cc: linux-arm-kernel@lists.infradead.org Link: http://lkml.kernel.org/r/20190129122842.32041-7-leo.yan@linaro.org Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/util/cs-etm-decoder/cs-etm-decoder.c | 2 ++ tools/perf/util/cs-etm-decoder/cs-etm-decoder.h | 1 + 2 files changed, 3 insertions(+) diff --git a/tools/perf/util/cs-etm-decoder/cs-etm-decoder.c b/tools/perf/util/cs-etm-decoder/cs-etm-decoder.c index cdd38ffd10d2..ba4c623cd8de 100644 --- a/tools/perf/util/cs-etm-decoder/cs-etm-decoder.c +++ b/tools/perf/util/cs-etm-decoder/cs-etm-decoder.c @@ -295,6 +295,7 @@ static void cs_etm_decoder__clear_buffer(struct cs_etm_decoder *decoder) decoder->packet_buffer[i].last_instr_cond = 0; decoder->packet_buffer[i].flags = 0; decoder->packet_buffer[i].exception_number = UINT32_MAX; + decoder->packet_buffer[i].trace_chan_id = UINT8_MAX; decoder->packet_buffer[i].cpu = INT_MIN; } } @@ -331,6 +332,7 @@ cs_etm_decoder__buffer_packet(struct cs_etm_decoder *decoder, decoder->packet_buffer[et].last_instr_cond = 0; decoder->packet_buffer[et].flags = 0; decoder->packet_buffer[et].exception_number = UINT32_MAX; + decoder->packet_buffer[et].trace_chan_id = trace_chan_id; if (decoder->packet_count == MAX_BUFFER - 1) return OCSD_RESP_WAIT; diff --git a/tools/perf/util/cs-etm-decoder/cs-etm-decoder.h b/tools/perf/util/cs-etm-decoder/cs-etm-decoder.h index 012b4728a46f..7e6a8850be4a 100644 --- a/tools/perf/util/cs-etm-decoder/cs-etm-decoder.h +++ b/tools/perf/util/cs-etm-decoder/cs-etm-decoder.h @@ -50,6 +50,7 @@ struct cs_etm_packet { u8 last_instr_cond; u8 last_instr_taken_branch; u8 last_instr_size; + u8 trace_chan_id; int cpu; };