Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2172170imu; Wed, 12 Dec 2018 10:42:25 -0800 (PST) X-Google-Smtp-Source: AFSGD/UWPhVIEsDYZL2dsP5nZ0qt8ftazORt3UEPFzQMkSjuQNBPRsSQpfB9XSAOx3hsLoFzpLHT X-Received: by 2002:a17:902:2a29:: with SMTP id i38mr21231840plb.253.1544640145893; Wed, 12 Dec 2018 10:42:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544640145; cv=none; d=google.com; s=arc-20160816; b=La8hXSp2FPeAQnLkPH2ffuu7QmRsLrapmfPh/yrwNyWV37l/VlYzZDZu2XxUzM5qit zqoi2DOj2VrbD+UOlu94n1CzlBSenwjfRMWz+jC3G7Vfn+b0dsjeNP6a+mOHrGN/UIxQ fsmwdEpxsbiBib6VthLzdz5i7FUGWARvtVM8u18Y7sYFkkbB162b0q6LKoc2iZ1Dzs2r lmK5NoLotXwKkCBSoi8w6EySwXJYyZEPSINC5mxk4K78I9vJAzwPl05rcxuMzUumC2ex 5PfPysmI+bw02GFGzUGYQZrBwC18+ZUFAQBCrxr72A7L3zJgCQXXXHSsdHvCjupt1gFg 3/pw== 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; bh=AQUGeZO51KzJnoqlQO0qPHq/gKBQeA0epVLv7slJukw=; b=l+5seBan8idE2VUpf2Ex3Epb0Vdk1XVAvnBNGbx6yvdP0elVbtZIXAXurPiKql/hp1 cqhU65jp2taLIosv7WFpLyugGFIfVAL8yo+NILgTePQ/HDdhbvEgXSdzSYYkEGWFSFnV 5s0zkFqsM6LWgq7mm3PaJN2JFykGyR5nmQCv81SgVdztcG3HJIOvZ2tToymn5qVTQMlJ u9VsOvTLff/pnphNNPFD/UvezPtdels0v09XFZdh4bQ8EzVeNl+1M5xE7dl0TBuvmKcm oiawHXgLBkwP3ToQeT4aaAx0R7HbUVoizPT5yPQmcF8cRsqKBYzHw1cZhOssFI88f0bX M0tA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MPUAA2S6; 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 a12si14794112pgk.291.2018.12.12.10.41.58; Wed, 12 Dec 2018 10:42:25 -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=MPUAA2S6; 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 S1728220AbeLLSlL (ORCPT + 99 others); Wed, 12 Dec 2018 13:41:11 -0500 Received: from mail-pg1-f195.google.com ([209.85.215.195]:39483 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727897AbeLLSlJ (ORCPT ); Wed, 12 Dec 2018 13:41:09 -0500 Received: by mail-pg1-f195.google.com with SMTP id w6so8719735pgl.6 for ; Wed, 12 Dec 2018 10:41:08 -0800 (PST) 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=AQUGeZO51KzJnoqlQO0qPHq/gKBQeA0epVLv7slJukw=; b=MPUAA2S69XVZbGZM+4ddVx3ynmkB/gCcBUjkh5VfFH8k53dDWYN4hXppJNS9NrSped 0KqKlHkca2bX3DDGwioKCKy64jgFh34KaktSOr48RSYCaIKwPyibtVUfu3x6D9AAEK5A zZMQIx000wdcptQbioSLCSLHLJ2qdsu6Ow4Rs= 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=AQUGeZO51KzJnoqlQO0qPHq/gKBQeA0epVLv7slJukw=; b=Ao5wTNkAAbgKd+mPXs+krEtyFcrTKBDyevRUbDoufxvxcJo/LwaHDPdiatzW74/txc s7RNMQpEKeM7z6DZxwdUp6Sv11q5VpZ9ixd9VUkfzxe7xEI6dYXeyJ+wlsSUog9lCofV AUoyH1sD4XfGZTnSREnkShiZf8/wUKlr3ycU/R2RpZW4c8o4FecihvzSIg5fhJGE9hfv VI41nf6wnhqs6P4ovMt8l9eUtVzgF8Pa40rH2+HorxIAqdTlD3gCoUf3B5F6VHoYC1Gy Uf9CbOwoZS3P4VIpe1eASudxIjKiZFOaMcz2QBFjrTiqU/fUbRsk7pUhqJpsJtiqla9O YPPQ== X-Gm-Message-State: AA+aEWbr6bu9iI+FcrJoqZ2Pdih/yYGVwUrAfoQ9Y4WpWLwzD098tdc0 ZPYdxPIClkmOkG14dyrBCJEgHw== X-Received: by 2002:a63:507:: with SMTP id 7mr18679965pgf.411.1544640068478; Wed, 12 Dec 2018 10:41:08 -0800 (PST) Received: from xps15 (S0106002369de4dac.cg.shawcable.net. [68.147.8.254]) by smtp.gmail.com with ESMTPSA id i21sm19044531pgm.17.2018.12.12.10.41.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 12 Dec 2018 10:41:07 -0800 (PST) Date: Wed, 12 Dec 2018 11:41:05 -0700 From: Mathieu Poirier To: Leo Yan Cc: Arnaldo Carvalho de Melo , Alexander Shishkin , Jiri Olsa , Namhyung Kim , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Coresight ML , Mike Leach , Robert Walker Subject: Re: [PATCH v3 3/8] perf cs-etm: Remove unused 'trace_on' in cs_etm_decoder Message-ID: <20181212184105.GA24556@xps15> References: <1544513908-16805-1-git-send-email-leo.yan@linaro.org> <1544513908-16805-4-git-send-email-leo.yan@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1544513908-16805-4-git-send-email-leo.yan@linaro.org> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Dec 11, 2018 at 03:38:23PM +0800, Leo Yan wrote: > 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, Reviewed-by: Mathieu Poirier > -- > 2.7.4 >