Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp68234imm; Wed, 5 Sep 2018 15:08:01 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbS7OTs6cjTTFm/XZVR0/FjucaQuPwqrOIzJ8YoZziP+/L4+D0oZH/NxWyxv3REIJOtJTmM X-Received: by 2002:a62:4808:: with SMTP id v8-v6mr42892144pfa.89.1536185281720; Wed, 05 Sep 2018 15:08:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536185281; cv=none; d=google.com; s=arc-20160816; b=t46T/9oLhUnivpFcODTSDmotZmO4oCnBPj47V43lckPcJvz7OSVRwK3mobGPU2Q9LC KVYDAEIc7l2627CQ1iTI5XBdU1Ph+5rnJK2XaceOs1LNiA1ZXMPxH6tFJuObEC7ncQzM yrh0iXNV+6qNmyIRnxRLoDSdvasyYcYmzgzRtmwL0ODtWOFg9JVIyatBsqzdaV8DryKk dMqOZqtXDNp12uNgEYnPm4KcNQq+usnmktbWecB0n639fy6XYJTSI8Ow6klWLYEQqgj1 f6okcmIKtI1r9iBFmHr6BunEcRTv9xiPlQ2b3wNWWw7w39KXlZ0dkwsHexp9YuQeQSBR 1T7w== 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=6jcbZkU4M9a2prXQAZv6yZSv0dPgIt4dSfZcfE7Wr0Q=; b=lKQEhfkJEBadFTfQ7m5xBGflTtQutL7T40kY4zrJaHQaX9N7MnetRPt4v5sPnit/88 R+x7WRp3aTDCJrF+CxMy9oerjAMhl274B7YX6BCGGqncr/iWcx0C9Jw5chYYkfX1Je52 G7O2ZA4iBpbCxluCpkNgFl4dg63C/U3kLOMXG91mQStblcA05UMPKA1d31/DHezwn1oP yD/7jIOnXEhV+MemdLmCz/GqjiN+cwkY8TgeaSmSM0wcS04I3/bMhlApPMaYBG7UGwjs jyt9VteWlmqHQ8PGKfpBNlMktUUtfjHQ1toH62LhpLs2vaKQBJCE6NbCxnW4ZVk8rHpI kIlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=LdeJXbDT; 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 bg2-v6si2958029plb.243.2018.09.05.15.07.46; Wed, 05 Sep 2018 15:08:01 -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=@kernel.org header.s=default header.b=LdeJXbDT; 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 S1728450AbeIFCiO (ORCPT + 99 others); Wed, 5 Sep 2018 22:38:14 -0400 Received: from mail.kernel.org ([198.145.29.99]:52658 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728389AbeIFCiN (ORCPT ); Wed, 5 Sep 2018 22:38:13 -0400 Received: from jouet.infradead.org (unknown [179.97.41.186]) (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 DA3132077C; Wed, 5 Sep 2018 22:05:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1536185162; bh=fSGMJ4gWUhGSZ0sZsjEvuBdzjAokzffsxRSJfwuWYi4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LdeJXbDTxf7Wz2RoDxovZy4Pbkq9Bi5/y9UJHeuSDDcxtdIOumd49e85AO77FyZOH lm037/eA/e/lFv3huPHme7Te7bC41tEopiHfD65jcukISb2vCL6hR0y27CjjeD3L4X qX3Q3E6OoC5jEoy0CF4dSGtjDiWMt75ke+nRRtZ0= From: Arnaldo Carvalho de Melo To: Ingo Molnar Cc: Clark Williams , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Jiri Olsa , Alexander Shishkin , Andi Kleen , David Ahern , Namhyung Kim , Peter Zijlstra , Arnaldo Carvalho de Melo Subject: [PATCH 26/77] perf stat: Use evsel->threads in create_perf_stat_counter() Date: Wed, 5 Sep 2018 19:03:49 -0300 Message-Id: <20180905220440.20256-27-acme@kernel.org> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20180905220440.20256-1-acme@kernel.org> References: <20180905220440.20256-1-acme@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jiri Olsa Get rid of the evsel_list dependency, here we can use the evsel->threads copy of the struct thread_map. Signed-off-by: Jiri Olsa Cc: Alexander Shishkin Cc: Andi Kleen Cc: David Ahern Cc: Namhyung Kim Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/20180830063252.23729-2-jolsa@kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/builtin-stat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/builtin-stat.c b/tools/perf/builtin-stat.c index d097b5b47eb8..d389ed623715 100644 --- a/tools/perf/builtin-stat.c +++ b/tools/perf/builtin-stat.c @@ -293,7 +293,7 @@ static int create_perf_stat_counter(struct perf_evsel *evsel) if (target__has_cpu(&target) && !target__has_per_thread(&target)) return perf_evsel__open_per_cpu(evsel, perf_evsel__cpus(evsel)); - return perf_evsel__open_per_thread(evsel, evsel_list->threads); + return perf_evsel__open_per_thread(evsel, evsel->threads); } static int process_synthesized_event(struct perf_tool *tool __maybe_unused, -- 2.14.4