Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp12851502pxu; Sat, 2 Jan 2021 14:08:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJykUyqEqbIiTlini2JoQPsd70Nx1ccdCuxtsguiFy7A/FzJqA4/ZG9Ieh064yAh7YbXf2G3 X-Received: by 2002:a17:906:30d3:: with SMTP id b19mr54067480ejb.538.1609625293601; Sat, 02 Jan 2021 14:08:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609625293; cv=none; d=google.com; s=arc-20160816; b=sYIiiN+Tvy4wdtasv/FSz3281qkQsveZ4nNTyFWIeI6okZnIObwc7ZX2zOf4QL4dAW TKwrPXTK7DWrogV6Fy0yOzgUyaBba3kE41nM3KwoW3Bl0UX5RkMhH7gEkhV+8Kr3ydMR t68F6DoFiKX9v10Bxh7O6lP0SJ2C8oTI6ueVTiiL5h45hMCFgOQZA41dBHDO32O+izSv sgpOQQi4yXhz3heBB3rMh2UFwK1Yux/A1iBq9G9cm5TFSUaOTk+q2rodZAs2wY/tWGOL HIiA9Mwo1KVMltnqmn10ACxuJk9BO7h3xofInJWUzdrv8TeZURs4c8IA3bJio9Vg12s6 HJ2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=vMRZwQFpeKScjqgnQ/70enZKaHjCXDdrAYfk8DY8HNo=; b=RGUmiTIodIr7yAe8CLgwqVY/6sPrvftxg8nuc1bUYFUgIXSOUoyf1rbsIc1i51snaI //vNsV3F+RcIJ2nBEwNBUI5gmUvO1NfPRMn9uqHWN1CabJ1m5IxORC3OHD+kI+FCdKIR 3SX+bLjW2hbQgk1ZZyoGnoShCxFKYANce1zHTx2fqmkvrb0GVjfDQr1wDPToMbkjOMB/ 9gy19rUso2I70WL7zF3LPNJGXybUP6DAfzNhxEc14JcvgIsKMA9CdNAFSKiXpCLCCOaJ l4k7Av6SrSxGmba5CW3FTBl4kNT0DdAmMeWaJOI7qhGPQB6ZJsMkKbKLyp470m9dCVKZ bWNw== 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 w29si28994324edl.176.2021.01.02.14.07.50; Sat, 02 Jan 2021 14:08:13 -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; 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 S1727161AbhABWGD convert rfc822-to-8bit (ORCPT + 99 others); Sat, 2 Jan 2021 17:06:03 -0500 Received: from us-smtp-delivery-44.mimecast.com ([207.211.30.44]:36243 "EHLO us-smtp-delivery-44.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726686AbhABWGC (ORCPT ); Sat, 2 Jan 2021 17:06:02 -0500 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-281-8jTTWlXpO6KBC4XiuJjHJw-1; Sat, 02 Jan 2021 17:05:07 -0500 X-MC-Unique: 8jTTWlXpO6KBC4XiuJjHJw-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 694BA107ACE4; Sat, 2 Jan 2021 22:05:05 +0000 (UTC) Received: from krava.redhat.com (unknown [10.40.192.22]) by smtp.corp.redhat.com (Postfix) with ESMTP id 943CA19727; Sat, 2 Jan 2021 22:05:02 +0000 (UTC) From: Jiri Olsa To: Arnaldo Carvalho de Melo Cc: lkml , Peter Zijlstra , Ingo Molnar , Mark Rutland , Namhyung Kim , Alexander Shishkin , Michael Petlan , Ian Rogers , Stephane Eranian , Alexei Budankov Subject: [PATCH 06/22] perf tools: Make perf_config_global gobal Date: Sat, 2 Jan 2021 23:04:25 +0100 Message-Id: <20210102220441.794923-7-jolsa@kernel.org> In-Reply-To: <20210102220441.794923-1-jolsa@kernel.org> References: <20210102220441.794923-1-jolsa@kernel.org> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 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-Transfer-Encoding: 8BIT Content-Type: text/plain; charset=WINDOWS-1252 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Making perf_config_global global, it will be used outside the config.c object in following patches. 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