From patchwork Fri May 24 17:35:01 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Poirier X-Patchwork-Id: 165153 Delivered-To: patch@linaro.org Received: by 2002:a92:9e1a:0:0:0:0:0 with SMTP id q26csp3885841ili; Fri, 24 May 2019 10:35:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqzVFd3I6k754i52kPaqYM32QtAEbBVUxn6auXL1fb1LSK6kUvSq9D5JXFFSRV86CAI7nvnY X-Received: by 2002:a17:902:347:: with SMTP id 65mr96054294pld.232.1558719356496; Fri, 24 May 2019 10:35:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558719356; cv=none; d=google.com; s=arc-20160816; b=SjNundZAmr3PvQwF7E3MJlRvhzKlNm6Ev9b4jme1CznvypGb9ybE8vxgk6ZGX9dqSx 5cnA7fdOBwSoSxSUqJWM6JnCBdMrE0WYS0k1okyXJJ+xjMnBj8SqyQIWm7T5cOIEu/zc Rk/RYWZrNyQRJxnKcHtu1KEBoRAuk1IgS306jerapVRtDDwbJHaeIFInhUX09/4oex6+ k9Wls3p9qMgtsDH+xd0vibOHWEX23nHo451NDPDRVsEiLrk8FEvzl7IJOGidDDsYmEgU vvbOqdoGd2ultFSm3CiLH/NGiTQTe2PJEu2ulEYm/TOOlgrQ1J/tbkh12qshOPIVcj0R 7ePg== 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=lhIIAcqMYF91fEeMtO+5Bx5waRYhYv5nfW6t1irEE4g=; b=hy0r6vCo7VjFX/8h+r6/7hChP1cSJqslR5NF7RR1ZvStXDIkRpU0krClrTPT3cVdw7 An/SO7w49Pp3SDKN8puMhy4caZPKqDTiiB8sQx7Rte7Ci5u4m0CYpy8crXSQ6V4ZP50r duPTJcKfrSrfRkEi6ZScjkVe6FJDra5mKFZtRqagZ7Xfujs2R2+fkn8hcGlX7gxOrxGf Rx4yt/rLwKpZKE6c0uA127XK7HahYWP/ybJk2MdEvfKNL7BnsES9kFt5Q7mTR5SNtyC3 Ldb0T4J6PotXPjhZ3kRVxmiTt31GusnpbY3igBCnZNtDJs1txKdaS9iA0iWgMgONjacI H2Mg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=wYww6fnn; 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 ce12si5598280plb.410.2019.05.24.10.35.56; Fri, 24 May 2019 10:35:56 -0700 (PDT) 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=wYww6fnn; 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 S2403860AbfEXRf1 (ORCPT + 30 others); Fri, 24 May 2019 13:35:27 -0400 Received: from mail-pl1-f193.google.com ([209.85.214.193]:38171 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391702AbfEXRfX (ORCPT ); Fri, 24 May 2019 13:35:23 -0400 Received: by mail-pl1-f193.google.com with SMTP id f97so4446541plb.5 for ; Fri, 24 May 2019 10:35:23 -0700 (PDT) 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=lhIIAcqMYF91fEeMtO+5Bx5waRYhYv5nfW6t1irEE4g=; b=wYww6fnnhGNHiIplyjMggWqEHnKDZ+6g2AFzNWB7CAYKb806lbqsb66g3Q+Qj2l1CG lxE5Ksd6Y3XuyIUrUpdb55Kgd3V5G/aGpuK7YPCslS/ZdGzm4xYgJKSwpzOYdlTZDeSp k/LzzsHlxhqtfyofe6xlIefGjoStrQZWfDJAeW3BrTS6xz4H+J9bnGmfgSnqvjiIlIQP 1ci587Bb+g/X7SOGH/zbxj0A3N8F86Bz/X/04Pt0HqFWHuIW2qCm1iRuEhks1DTZiZ5Z WO7+GylOXqZ/z2TnIzuyxqhOU57gRjrvXsacYHyxtOFpCT81KwmN2he9haaLsX3ighkx 43mg== 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=lhIIAcqMYF91fEeMtO+5Bx5waRYhYv5nfW6t1irEE4g=; b=UPO/FIMa590cdyRwdg7ehCgpJD4j4RzPEfc0T0RRPB89WOhmw4gHXioX72h2hkSWaI LBt/X2KPZ8p+raNJtDxRNu+pFJFiL0BaOsBqaooaG+wb7qbCvStqP3EjQCVVxG68LmBe EEyWYcKAmWwjoi9AOqTz0vYCnN/m6QyiBCSQT8aYx0LF/pqCn6Fuh68efCOV3shqzkUS lr+l4fr3pkiDNEGiuIVCAXR3Jj6syNDVfzdXhNa9Dey6MgSQuWc+l/FkDOrYnlL6qt4v ipBMIv9K13LTj6+dLhCmd6Ga6bTGZ3+D4Z8S4yXrBrxjOn8vleLej+xTR9I0SuodI3Qm ZzCA== X-Gm-Message-State: APjAAAVYMvKlC4E642bdrCLdST2kEmzqlx3OjOLKjyLxX7CGbTE/snYV CXcKi0xX54sP68UMquczqhOurw== X-Received: by 2002:a17:902:ca:: with SMTP id a68mr83329085pla.7.1558719322941; Fri, 24 May 2019 10:35:22 -0700 (PDT) Received: from xps15.cg.shawcable.net (S0106002369de4dac.cg.shawcable.net. [68.147.8.254]) by smtp.gmail.com with ESMTPSA id k13sm2809575pgr.90.2019.05.24.10.35.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 24 May 2019 10:35:22 -0700 (PDT) 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, suzuki.poulose@arm.com, leo.yan@linaro.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, coresight@lists.linaro.org Subject: [PATCH v2 10/17] perf tools: Get rid of unused cpu in struct cs_etm_queue Date: Fri, 24 May 2019 11:35:01 -0600 Message-Id: <20190524173508.29044-11-mathieu.poirier@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190524173508.29044-1-mathieu.poirier@linaro.org> References: <20190524173508.29044-1-mathieu.poirier@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Nowadays the synthesize code is using the packet's cpu information, making cs_etm_queue::cpu useless. As such simply remove it. Signed-off-by: Mathieu Poirier --- tools/perf/util/cs-etm.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) -- 2.17.1 diff --git a/tools/perf/util/cs-etm.c b/tools/perf/util/cs-etm.c index 9e8212c74055..531bbb355ba4 100644 --- a/tools/perf/util/cs-etm.c +++ b/tools/perf/util/cs-etm.c @@ -79,7 +79,6 @@ struct cs_etm_queue { struct auxtrace_buffer *buffer; unsigned int queue_nr; pid_t pid, tid; - int cpu; u64 offset; const unsigned char *buf; size_t buf_len, buf_used; @@ -599,7 +598,6 @@ static int cs_etm__setup_queue(struct cs_etm_auxtrace *etm, queue->priv = etmq; etmq->etm = etm; etmq->queue_nr = queue_nr; - etmq->cpu = queue->cpu; etmq->tid = queue->tid; etmq->pid = -1; etmq->offset = 0; @@ -831,11 +829,8 @@ static void cs_etm__set_pid_tid_cpu(struct cs_etm_auxtrace *etm, etmq->thread = machine__find_thread(etm->machine, -1, etmq->tid); - if (etmq->thread) { + if (etmq->thread) etmq->pid = etmq->thread->pid_; - if (queue->cpu == -1) - etmq->cpu = etmq->thread->cpu; - } } static int cs_etm__synth_instruction_sample(struct cs_etm_queue *etmq,