Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2482542pxb; Mon, 18 Jan 2021 20:43:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJz1s8g+NG6UCiGfuAQl6zX0gqbFdYL8SVvAkxplHZMuwNqMPZbwW4JaI4wga8Zo9UbhaeYp X-Received: by 2002:a17:906:c254:: with SMTP id bl20mr1785632ejb.336.1611031424127; Mon, 18 Jan 2021 20:43:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611031424; cv=none; d=google.com; s=arc-20160816; b=hVR56doHIwhxoL55BADTbOh4riez/BshFR9xoFIaa+ook2tQAdA/Ew7YQ9CMi2kSuk xM0PSOHSx45d+jvh6Wk/XlHD4DoSMDLGqi+M+jNHX1l/y4bEOaMPuEalHzzn73hwadL4 1ZfH27MHFWzXaOH5y55ix/jF10307HV4Jygd/5ekvY8Smv+DrJM5jXCs/jy3FWAv15B+ lbMY5pliN4hb7ma8w3ADm6FN+Ou4ZMLI/7+JMLtV5LXsBMkd4iTuZXQRMY+CQDuJ+iKV 8XMKk9LbUNPAGs0F0+5tqHQ1v1o67qhU+3YGnG/usek6ak8wx3v1q8pHvsjoSNszpbMD oN6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=GpPKS2FVdexj9AqmCv6OTp80thTP20WpDUtYY3JAGeI=; b=Tbv3U9JOluTnSc+wHy42TQwexR77avNtkjFowgORkdq9e3coMfnGfrdcay5ooPeAP5 rHTXdH53tfDME0OB4MP7c9PWOUX4VgvqxGy6mpQTQF1fF1UICUCmnmTRSCO+u/lP0Jgd F5urGJ68rqfWxJqrWehjMwYVfDg6LGVHUs42zTECpvjZ/LNFN+nR9ycFGYkrA2EEsrR5 BudF7ykF9WXegY29fppdhroHPi068Bvvr4zS2+/cc5BXE67YgJVCiFBe/kK4wO2PRqcr Rua2DAKF9fupZw0lM5dPQeDOCqcevwMK+NCwo+4UXG1tKnOh0UgMUE0iU+w1+G/8+oHQ RKyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CbghjvFG; 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 x18si1069815eji.400.2021.01.18.20.43.21; Mon, 18 Jan 2021 20:43:44 -0800 (PST) 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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CbghjvFG; 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 S2406425AbhARQH3 (ORCPT + 99 others); Mon, 18 Jan 2021 11:07:29 -0500 Received: from mail.kernel.org ([198.145.29.99]:35636 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2406409AbhARQGZ (ORCPT ); Mon, 18 Jan 2021 11:06:25 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 48AF822472; Mon, 18 Jan 2021 16:05:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1610985942; bh=zRzNpYETySFvElMPmAn1EDRcJKD6ENrHFykLFQlHWBw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=CbghjvFGnS+lndRsHx9yfTSzUxjSkIGYfBz3gEHkJqA10T8OJFNvKNjDdfB4Z0ccw wSY+ojjfLiAmdAUw2x6z8DG1+8E7ICohycEfOHDUY5/SfO9txHZl8L/fDyNdn1ZmrX BnALXzcF5WCxrTbBHr3xODh0I89YKYRAgdhJlMtTw6CZyqwPIpBGcQxw0dMlPRXQaa 42QCQCLq+ct9EvLIhWSd6Ir2DFzw6ykGOZkuI1d2lwwgHMUQK/Pi0SWrJaqNDUDS0G Yx68+Fvixbnpfl2q8w+N76YWhD9udHenjiPqxEksl5Lz5ZaJIQoqk1+pYE5cs4evqd 4K+wfih0tvn8g== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id 1B34640CE2; Mon, 18 Jan 2021 13:05:40 -0300 (-03) Date: Mon, 18 Jan 2021 13:05:40 -0300 From: Arnaldo Carvalho de Melo To: Jiri Olsa Cc: lkml , Peter Zijlstra , Ingo Molnar , Mark Rutland , Namhyung Kim , Alexander Shishkin , Michael Petlan , Ian Rogers , Stephane Eranian , Alexei Budankov Subject: Re: [PATCH 06/22] perf tools: Make perf_config_global gobal Message-ID: <20210118160540.GF12699@kernel.org> References: <20210102220441.794923-1-jolsa@kernel.org> <20210102220441.794923-7-jolsa@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210102220441.794923-7-jolsa@kernel.org> X-Url: http://acmel.wordpress.com Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Sat, Jan 02, 2021 at 11:04:25PM +0100, Jiri Olsa escreveu: > Making perf_config_global global, it will be used > outside the config.c object in following patches. Thanks, applied. - Arnaldo > Signed-off-by: Jiri Olsa > --- > tools/perf/util/config.c | 2 +- > tools/perf/util/config.h | 1 + > 2 files changed, 2 insertions(+), 1 deletion(-) > > diff --git a/tools/perf/util/config.c b/tools/perf/util/config.c > index 4e0455a6bb5f..6984c77068a3 100644 > --- a/tools/perf/util/config.c > +++ b/tools/perf/util/config.c > @@ -526,7 +526,7 @@ int perf_config_system(void) > return !perf_env_bool("PERF_CONFIG_NOSYSTEM", 0); > } > > -static int perf_config_global(void) > +int perf_config_global(void) > { > return !perf_env_bool("PERF_CONFIG_NOGLOBAL", 0); > } > diff --git a/tools/perf/util/config.h b/tools/perf/util/config.h > index bf68e4acea73..2fd77aaff4d2 100644 > --- a/tools/perf/util/config.h > +++ b/tools/perf/util/config.h > @@ -39,6 +39,7 @@ int config_error_nonbool(const char *); > const char *perf_etc_perfconfig(void); > const char *perf_home_perfconfig(void); > int perf_config_system(void); > +int perf_config_global(void); > > struct perf_config_set *perf_config_set__new(void); > struct perf_config_set *perf_config_set__load_file(const char *file); > -- > 2.26.2 > -- - Arnaldo