From patchwork Fri Feb 15 00:45:20 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnaldo Carvalho de Melo X-Patchwork-Id: 158456 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp103505jaa; Thu, 14 Feb 2019 16:47:38 -0800 (PST) X-Google-Smtp-Source: AHgI3IaHQKkqUX+35tRBqoMbvTerOO1xsqRivOaZmu1TnsvQt7/ZNTMSGVZP7zoUXJA8YPNuqMHu X-Received: by 2002:a63:65c7:: with SMTP id z190mr2669817pgb.249.1550191657973; Thu, 14 Feb 2019 16:47:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550191657; cv=none; d=google.com; s=arc-20160816; b=A5PhM1dGLC4CFnDamKI+w6Qeutp9f0DECMmTjjnHnMlnCVLpikIVOEOTaoh/VHUgYa MW94Glzo/XYxa47UE5NRvE/2Qj5gHfsDXWEvVVZADoXCYplsEOVevsS2zn8SFeJdcd1D vcMaSRqm29kKvJA4meU2xJpkXDUFHke/5VxTMcHC09fn3+vpiZp67uE9A3OtrOMqrltr RNI8wvEJ2VslK/JtQlX1RASe2a0uvVHNErB9R2S7wcydZ7KGwbuYjVCo2W9hvkZSH5Pe Ifnlprk7XTT8X+8Gf3gacl5BSeeQb3kbpCpoPXp6Cgtdvol8RQAa+qGzqMBtXpDljjx1 RTUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=jSw6OI/zZoZ+NzsTz6t9Op2c3MBdPbqW9pNQ7VdfO34=; b=wzC6xPrtgbSUpkpGDfgCGxnnsTp4AI7qGEE9WIibwNx9TQyz/Qa9y9a/zIpNjsychp s/7kIdjlnzsCgIhLuLDnjK75VlOE/lamUqa+RVVubMLoKBO8unoUih95o3MMHNSgcTdj 9hygDWEoZE9Sf763PQx8Kv/Whg+Tywq+e1eGE2Ubl9PuGVvifEoeqbk0AoOGZJaNhkod u6o0uU7gmvjBlGn3q7nF/TH8i5iAQ6m3ZuBZqlQASPEnmoZKWSuYl2tMC+otkwiHj04w KbFSB3+6xB556AyP/4GXKyyF+MqTE9Lqqdzpkv81RgvJRfTxaqZtmh2qPO3RAt2iuWf7 oQfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=HuGtlp3O; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id gn11si3859151plb.94.2019.02.14.16.47.37; Thu, 14 Feb 2019 16:47:37 -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=@kernel.org header.s=default header.b=HuGtlp3O; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389278AbfBOArg (ORCPT + 31 others); Thu, 14 Feb 2019 19:47:36 -0500 Received: from mail.kernel.org ([198.145.29.99]:46338 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389224AbfBOAre (ORCPT ); Thu, 14 Feb 2019 19:47:34 -0500 Received: from quaco.ghostprotocols.net (unknown [189.40.103.31]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E1EC82229F; Fri, 15 Feb 2019 00:47:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1550191652; bh=QIatHaw3Pd5ihg58PDRuNTKAZDK95EbTjHOpkdkaj0c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HuGtlp3Ob8IeHmdrInDSqwbqnbmKQj/a+Ozr7S3TYLPKshbt/ejIT23YvK0meAVnd 8EcpsglRAqdRDOlCl4D8vrlKy++0eoBNK6XR9NGV7Xp8Gg/pnF+hk3a6TKu1FuPjZd 5gpO/G6apyG1HWqnt6ZFFlsmI3L+z4ohDwibTGjE= From: Arnaldo Carvalho de Melo To: Ingo Molnar Cc: Jiri Olsa , Namhyung Kim , Clark Williams , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Mathieu Poirier , Jiri Olsa , Leo Yan , Peter Zijlstra , Suzuki K Poulouse , linux-arm-kernel@lists.infradead.org, Arnaldo Carvalho de Melo Subject: [PATCH 24/43] perf cs-etm: Remove unused structure field "time" and "timestamp" Date: Thu, 14 Feb 2019 21:45:20 -0300 Message-Id: <20190215004539.23571-25-acme@kernel.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190215004539.23571-1-acme@kernel.org> References: <20190215004539.23571-1-acme@kernel.org> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Mathieu Poirier Field "time" and "timestamp" in structure cs_etm_queue are no longer used and need to be removed. Signed-off-by: Mathieu Poirier Cc: Jiri Olsa Cc: Leo Yan Cc: Peter Zijlstra Cc: Suzuki K Poulouse Cc: linux-arm-kernel@lists.infradead.org Link: http://lkml.kernel.org/r/20190212171618.25355-3-mathieu.poirier@linaro.org Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/util/cs-etm.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) -- 2.19.1 diff --git a/tools/perf/util/cs-etm.c b/tools/perf/util/cs-etm.c index ebd68eb43da9..1d9419a0cf0c 100644 --- a/tools/perf/util/cs-etm.c +++ b/tools/perf/util/cs-etm.c @@ -69,8 +69,6 @@ struct cs_etm_queue { unsigned int queue_nr; pid_t pid, tid; int cpu; - u64 time; - u64 timestamp; u64 offset; u64 period_instructions; struct branch_stack *last_branch; @@ -82,7 +80,7 @@ struct cs_etm_queue { static int cs_etm__update_queues(struct cs_etm_auxtrace *etm); static int cs_etm__process_timeless_queues(struct cs_etm_auxtrace *etm, - pid_t tid, u64 time_); + pid_t tid); /* PTMs ETMIDR [11:8] set to b0011 */ #define ETMIDR_PTM_VERSION 0x00000300 @@ -234,7 +232,7 @@ static int cs_etm__flush_events(struct perf_session *session, if (ret < 0) return ret; - return cs_etm__process_timeless_queues(etm, -1, MAX_TIMESTAMP - 1); + return cs_etm__process_timeless_queues(etm, -1); } static void cs_etm__free_queue(void *priv) @@ -1583,7 +1581,7 @@ static int cs_etm__run_decoder(struct cs_etm_queue *etmq) } static int cs_etm__process_timeless_queues(struct cs_etm_auxtrace *etm, - pid_t tid, u64 time_) + pid_t tid) { unsigned int i; struct auxtrace_queues *queues = &etm->queues; @@ -1593,7 +1591,6 @@ static int cs_etm__process_timeless_queues(struct cs_etm_auxtrace *etm, struct cs_etm_queue *etmq = queue->priv; if (etmq && ((tid == -1) || (etmq->tid == tid))) { - etmq->time = time_; cs_etm__set_pid_tid_cpu(etm, queue); cs_etm__run_decoder(etmq); } @@ -1637,8 +1634,7 @@ static int cs_etm__process_event(struct perf_session *session, if (event->header.type == PERF_RECORD_EXIT) return cs_etm__process_timeless_queues(etm, - event->fork.tid, - sample->time); + event->fork.tid); return 0; }