Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1189170ybh; Sun, 19 Jul 2020 11:14:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyffT1Ox8fNF9Ly7yAWQyYW01ULzRMo9LEqBFVUPDc0UVWDdvfuOZYYh3Ui1t796gXaDGQZ X-Received: by 2002:a17:906:6dd7:: with SMTP id j23mr17067779ejt.529.1595182488065; Sun, 19 Jul 2020 11:14:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595182488; cv=none; d=google.com; s=arc-20160816; b=AbEVNPLsHbuCZ0L+zizrv0bOh7+32zQ84g83SpbWiSEowXFFkeBCkQEsG4IdaBOiN+ J8+JJNpuvcqbu0mcx3u9IKUq8Y0LszFx67Qa27YUyqki+9CJrdaqDv0AytZjKSU+zF43 3QUJioo7HvPukpG9LnVJgIVXGOUFoIJyxO5Bg9L9ld7kUKXttiiQ2wIv9xE+YoOQVL33 lUMX6DhrFm0ceXY+qVE/UeOOrXAH2hLU4Qf4GExWq2YaGK7qgB/lJv6zeOZg9Pmc9TyY 8UadpqYd8sDs04dPrybmBbGsAbKeBkAieYWb1ksJcwbHT0sZg/3rR9rxyHvg77BGCfBv QKuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=lM+URdjzlG3HeLgwlhM9L72YfRBZydBTJ8kSst1ENBI=; b=r7XBLVXGmaAIScfJxfQu3n5DWDCLJ/ZWppb/oCk04l4kKolxaFvP+YvT7iREmF2Bcf 2tBLxYUsN0BzlVKsDj2K11VmpR6taadJe9eY7SprsToM1yTqzmIESUKXRjZzL/vsrWvC oBMM48DrzFHIHajkPLCgCK43OC/NgBRWaHqjBqOFxGNcKrUP0w7ohZBvVYdzYcx7dhTS m5W+qw0znIyelnvBKGmbqOxfclSYPjuMQZaB9t88i2MG5JSnlfmScS2qAiWhmA1HnzQM 1BewBYr3JCQMcbsLMoY3wDQDntUT/fdzLQ6XawH6RfhKEt9ZZ49ekXsTO2Ayw1IkTdSM 0JMw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id bo13si10031456edb.587.2020.07.19.11.14.25; Sun, 19 Jul 2020 11:14:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1726838AbgGSSNz convert rfc822-to-8bit (ORCPT + 99 others); Sun, 19 Jul 2020 14:13:55 -0400 Received: from us-smtp-2.mimecast.com ([205.139.110.61]:39671 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726824AbgGSSNy (ORCPT ); Sun, 19 Jul 2020 14:13:54 -0400 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-96-xHmSve_LOseDeD1dzVAj_g-1; Sun, 19 Jul 2020 14:13:49 -0400 X-MC-Unique: xHmSve_LOseDeD1dzVAj_g-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id B2C1B1005504; Sun, 19 Jul 2020 18:13:47 +0000 (UTC) Received: from krava.redhat.com (unknown [10.40.192.53]) by smtp.corp.redhat.com (Postfix) with ESMTP id D50EC74F6C; Sun, 19 Jul 2020 18:13:44 +0000 (UTC) From: Jiri Olsa To: Arnaldo Carvalho de Melo Cc: Ian Rogers , lkml , Ingo Molnar , Namhyung Kim , Alexander Shishkin , Peter Zijlstra , Michael Petlan , Andi Kleen , Kajol Jain , John Garry , "Paul A. Clarke" , Stephane Eranian Subject: [PATCH 07/19] perf metric: Rename __metricgroup__add_metric to __add_metric Date: Sun, 19 Jul 2020 20:13:08 +0200 Message-Id: <20200719181320.785305-8-jolsa@kernel.org> In-Reply-To: <20200719181320.785305-1-jolsa@kernel.org> References: <20200719181320.785305-1-jolsa@kernel.org> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=jolsa@kernel.org X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: kernel.org Content-Type: text/plain; charset=WINDOWS-1252 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Renaming __metricgroup__add_metric to __add_metric to fit in the current function names. Acked-by: Ian Rogers Signed-off-by: Jiri Olsa --- tools/perf/util/metricgroup.c | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/tools/perf/util/metricgroup.c b/tools/perf/util/metricgroup.c index 4096be7a7a9e..ccd80538a6ae 100644 --- a/tools/perf/util/metricgroup.c +++ b/tools/perf/util/metricgroup.c @@ -571,10 +571,10 @@ int __weak arch_get_runtimeparam(void) return 1; } -static int __metricgroup__add_metric(struct list_head *group_list, - struct pmu_event *pe, - bool metric_no_group, - int runtime) +static int __add_metric(struct list_head *group_list, + struct pmu_event *pe, + bool metric_no_group, + int runtime) { struct egroup *eg; @@ -634,10 +634,7 @@ static int add_metric(struct list_head *group_list, pr_debug("metric expr %s for %s\n", pe->metric_expr, pe->metric_name); if (!strstr(pe->metric_expr, "?")) { - ret = __metricgroup__add_metric(group_list, - pe, - metric_no_group, - 1); + ret = __add_metric(group_list, pe, metric_no_group, 1); } else { int j, count; @@ -649,9 +646,7 @@ static int add_metric(struct list_head *group_list, */ for (j = 0; j < count && !ret; j++) { - ret = __metricgroup__add_metric( - group_list, pe, - metric_no_group, j); + ret = __add_metric(group_list, pe, metric_no_group, j); } } -- 2.25.4