Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp69594imm; Wed, 5 Sep 2018 15:09:21 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaQuPBuKUkaRh2zynsXJ14+jqmedXDNKLygnLVWb4zqDXXhXiXDA3ROjh9XPJmMse83HWqW X-Received: by 2002:a17:902:6bc5:: with SMTP id m5-v6mr40326732plt.274.1536185360961; Wed, 05 Sep 2018 15:09:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536185360; cv=none; d=google.com; s=arc-20160816; b=ql2+Y/IS81gsi6DwyK4LjHcOiDg5IEblwPyG1uMlqBLZoDSErnc06T4VG+DKysNJAZ 8ch0Kchpqx3idoZNgZd144ZCIE2y9UAeN7zWZIgo8PZ2VgCK9XdDdk5jlLWmQr6jgCkD 2QrYk5bndRVwX3Q1t/IvL5ooWLQ4Ibi/9nhZ8lB8Suvnv++JJgHKdHW4F5F3n/pBjmR0 WSMYRg7Pj5zqc4AbOsH3s3ar0IuGLWnn7RzskceTFq1+4G/valgvJewq+ZseW0feN11D Y3jRFVBw+gXHaw/mkr/TMcyjzzVEDPB2gm/p1ZenAM6m6fR2W06cGMfadQ8V/fQZm3AT HwiA== 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=3OqZmLmAg5bOkzZnZv6Lnp9X8kadervoblMersJbcog=; b=We6ig3dYjN9pscKy9Eoz6wTdoQcT1902bNa8JLuxwiU7gq941DVs9S43OrWFkhgz46 jyy7PqausUHq14eLeDI5wpgn0dTBgslRH/lEu8dYoeb2rpRihszWa6w0BFknXvCkLa8D evdaNljzhnQwmQnIT85UPDmgqYFSQFM6iiIldh/dVZp2U1AbrlvLJpDMJKue/IF0JhAo svh4GF/SKyj2V8fzph9yiVmdJLj/mw7A3A9dIsaIBVz4w4modzb/c+CLvK6h/3s0ac+4 426ClMtaiKnBm2jOdyqCCTWleBnEjbOuu80CCPx73tg6AvnX+F/x7SqYhfEzzUPlP849 UKmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=QaOaeXBs; 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 g185-v6si2907083pgc.151.2018.09.05.15.09.05; Wed, 05 Sep 2018 15:09:20 -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=QaOaeXBs; 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 S1728811AbeIFCjZ (ORCPT + 99 others); Wed, 5 Sep 2018 22:39:25 -0400 Received: from mail.kernel.org ([198.145.29.99]:54176 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727593AbeIFCjX (ORCPT ); Wed, 5 Sep 2018 22:39:23 -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 D09D22077C; Wed, 5 Sep 2018 22:07:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1536185232; bh=CkvqqiTVQjqzJ61Dtwf4mks0nNx6zPEiIjnYtqDbRHk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QaOaeXBskBgSv0+lX11ZBZknx833UyJNFZRSjhKjRFk1EwK8F6DkX1fRW75R0j9ca pdpV3x+R8X9qNr0jduMr80/RVmrKA1EEIhg+j/ZCO6L+JFFGqTl13lwQfsCOvSl0PE 4n5H7ZL+3u6ITqmDl7SXqyzR6MZ59ManEOlqVjOM= 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 51/77] perf stat: Use 'evsel->evlist' instead of 'evsel_list' in collect_all_aliases() Date: Wed, 5 Sep 2018 19:04:14 -0300 Message-Id: <20180905220440.20256-52-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 Use 'evsel->evlist' instead of 'evsel_list' in collect_all_aliases(), to get rid of the global 'evsel_list' variable dependency. 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-27-jolsa@kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/builtin-stat.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/perf/builtin-stat.c b/tools/perf/builtin-stat.c index 46181ac492c5..11741f3a8342 100644 --- a/tools/perf/builtin-stat.c +++ b/tools/perf/builtin-stat.c @@ -1154,10 +1154,11 @@ static void collect_all_aliases(struct perf_evsel *counter, bool first), void *data) { + struct perf_evlist *evlist = counter->evlist; struct perf_evsel *alias; - alias = list_prepare_entry(counter, &(evsel_list->entries), node); - list_for_each_entry_continue (alias, &evsel_list->entries, node) { + alias = list_prepare_entry(counter, &(evlist->entries), node); + list_for_each_entry_continue (alias, &evlist->entries, node) { if (strcmp(perf_evsel__name(alias), perf_evsel__name(counter)) || alias->scale != counter->scale || alias->cgrp != counter->cgrp || -- 2.14.4