Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp359418imu; Mon, 10 Dec 2018 23:42:10 -0800 (PST) X-Google-Smtp-Source: AFSGD/XMIGUr3o9Qoqf/SA/IpGALyjyeMWx/O8nwLrKJnh/TdFDJv52UDdf4jJgVnRPnQBLSHRtc X-Received: by 2002:a17:902:5588:: with SMTP id g8mr15112665pli.22.1544514130178; Mon, 10 Dec 2018 23:42:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544514130; cv=none; d=google.com; s=arc-20160816; b=HCMRmJDtNAfDTdzmF5iScontL3/YB4m6RoCsxMGO2MOHPw+lfBxdYZ+ouuyqiZFiyn muecA2IsRmHBgy2yrq3hMrLFkiJcAQMZ7YaYlPM3+QDy9TiwOHYO1fnlnLXSd4WjnS/9 s3LEg3MTA/W1hqhMEwecbveGAoKC1CmSgLNOgat2NdhxTcJ45U7HJBkVB0o3Q167MjKE QwTZI7VvrJf8xqTuv9jTw3i7BlxohumFEFGVkuWu71cY+z1XJeo7XCWl/2O7lDJlcnFi MklwTI+K8FmL+mu+jF1ijYKzYOU4BtI+e5ep3oyDpaFL57KTtvNyXwrJlLNxKatd4t2b EPKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=QhESnTtb4oxO4oqXaTFof3KV9a2FuHSEH5X1fFwTnNc=; b=NjG+3jvArFfGQ8IVi26ok+9odgdFfzkF02Yyxf6yYDExIfMPEhtcTka3XFt9V88KQh MUvtqiQjXn74vFdDuKgy3HxkYjd3BGytoAEnwRCr4m9hudELe1/ChyWxjIiIQMAw/rjT y81pVh8T2DPdeArcXXXuzeP7qZMuDk2W+w9eydYLqLS/PcGxq5eoVJutEBwb7yhOulsw DEbJBYc1gsZo4QU+nsXjgWdL3tobUcY5llvL05r8uDm/B9GnKoNhUNhBbmTDQ7kYptsG Sr0enHv9tr3wjfwatTmntXjdFL9qgTvOrhUobxuByV2yKWL3gM2b70js3WfprLlW+fUu Wnuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Apj1oepu; 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 i9si12085073plb.35.2018.12.10.23.41.43; Mon, 10 Dec 2018 23:42: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=Apj1oepu; 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 S1726245AbeLKHkl (ORCPT + 99 others); Tue, 11 Dec 2018 02:40:41 -0500 Received: from mail-wm1-f65.google.com ([209.85.128.65]:33851 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725993AbeLKHkk (ORCPT ); Tue, 11 Dec 2018 02:40:40 -0500 Received: by mail-wm1-f65.google.com with SMTP id y185so8328926wmd.1 for ; Mon, 10 Dec 2018 23:40:38 -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:in-reply-to:references; bh=QhESnTtb4oxO4oqXaTFof3KV9a2FuHSEH5X1fFwTnNc=; b=Apj1oepuxBiwwnLA8c5LR5Jik9SIHfQZ8dkw0tuhXTFNOxPc5d056h+3dFcSglG/HH VZHec2p1IFf+JHPTK24iw/CLhr0WYHCm+Znz6hqURz6vWScBUmPalXhdRsNwASY1/EjI v1wrrs//QbCvT24ResV8UxDGKMDcptWXWoX0w= 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:in-reply-to :references; bh=QhESnTtb4oxO4oqXaTFof3KV9a2FuHSEH5X1fFwTnNc=; b=LqZ4YbGXWLcW/QTEKIEkbnoLyxqRSTcdFznjE2l6fKGxXJW3pHXFYPnnYaur6NUpD8 TJx8Z7hQ5ehFeO8OU66c2K8+G++ct5KUfqEVhM7k2CkSVdCR3topdAyNbyEcU4aBlOF2 pMAerxJj9OsdhoIW2WpPz9rWVVXgLelo7Z/dAOLk6jESqC6/9J8BJITY5o/PaFQVCKfs xEsw0ej68ZQcV7+ke+tSQt+tW+O6Yi/tLNvNveep7a+oiwolir9ptYuAXk3a8pgr0MHA kpkRCaEckaazaApYmjATb02ueknysgYJQbL1kjG+iktfA3Qdo0GwXl+NVOPd3aHepp8k WZkA== X-Gm-Message-State: AA+aEWY5095fA/4CXinn79VE7zFgIOUlHQilwjOMut+mMDL3GcwA2x1A PXV6E6L4f08PiQV4MKqGh5tUVQ== X-Received: by 2002:a1c:1112:: with SMTP id 18mr1367049wmr.30.1544514037870; Mon, 10 Dec 2018 23:40:37 -0800 (PST) Received: from localhost.localdomain ([209.250.228.18]) by smtp.gmail.com with ESMTPSA id k7sm14186961wrl.51.2018.12.10.23.40.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 10 Dec 2018 23:40:37 -0800 (PST) From: Leo Yan To: Arnaldo Carvalho de Melo , Mathieu Poirier , Alexander Shishkin , Jiri Olsa , Namhyung Kim , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Coresight ML Cc: Leo Yan , Mike Leach , Robert Walker Subject: [PATCH v3 3/8] perf cs-etm: Remove unused 'trace_on' in cs_etm_decoder Date: Tue, 11 Dec 2018 15:38:23 +0800 Message-Id: <1544513908-16805-4-git-send-email-leo.yan@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1544513908-16805-1-git-send-email-leo.yan@linaro.org> References: <1544513908-16805-1-git-send-email-leo.yan@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org cs_etm_decoder::trace_on is being assigned when TRACE_ON or NO_SYNC element is coming, but it is never used hence it is redundant and can be removed. So let's remove 'trace_on' field from cs_etm_decoder struct. Suggested-by: Mathieu Poirier Signed-off-by: Leo Yan Cc: Mike Leach Cc: Robert Walker --- tools/perf/util/cs-etm-decoder/cs-etm-decoder.c | 3 --- 1 file changed, 3 deletions(-) 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 0b4c862..97b39b1 100644 --- a/tools/perf/util/cs-etm-decoder/cs-etm-decoder.c +++ b/tools/perf/util/cs-etm-decoder/cs-etm-decoder.c @@ -36,7 +36,6 @@ struct cs_etm_decoder { void *data; void (*packet_printer)(const char *msg); - bool trace_on; dcd_tree_handle_t dcd_tree; cs_etm_mem_cb_type mem_access; ocsd_datapath_resp_t prev_return; @@ -411,12 +410,10 @@ static ocsd_datapath_resp_t cs_etm_decoder__gen_trace_elem_printer( case OCSD_GEN_TRC_ELEM_UNKNOWN: break; case OCSD_GEN_TRC_ELEM_NO_SYNC: - decoder->trace_on = false; break; case OCSD_GEN_TRC_ELEM_TRACE_ON: resp = cs_etm_decoder__buffer_trace_on(decoder, trace_chan_id); - decoder->trace_on = true; break; case OCSD_GEN_TRC_ELEM_INSTR_RANGE: resp = cs_etm_decoder__buffer_range(decoder, elem, -- 2.7.4