From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 672E5C433EF for ; Wed, 5 Jan 2022 06:47:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:From:Subject:References: Mime-Version:Message-Id:In-Reply-To:Date:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=OPaztarcIWufaffQ5WThzGTaMP1rday5upCUSRFn8X0=; b=VkzS8/xxXH6BzsVV58PiFkKs9S d8OGvSeh89aNIhjBUF3YXtMLwaWlFzw8d0yO+A9EoYMSibVGTgn+UQx89v8gY9S8M0MgtrVxyykBN /QORBxhNlxJ3JkMDxk9QQF4G896OWgCwH62Z3NwdjeAj1vWa/gDtFVr3ItDQdfrm4e6bQNADgaYKC cwZAjwGxlMSDeWsPon/ZpHBXyIBf87u0wBp2F0HJiULeV08GubX/VK3b743E5S2x7Rvl1XphdnSZb z89SKscTEEPyl2MB1/z6MS2/31Vw9Cwz+1ehbJMUQ3eNnKY+1/Vgd6ZIKJXCWPNfqLJEhuxCWfpDb PTpFTc4w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n5035-00DruL-R4; Wed, 05 Jan 2022 06:45:28 +0000 Received: from mail-yb1-xb49.google.com ([2607:f8b0:4864:20::b49]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n4zaA-00DgRU-7p for linux-arm-kernel@lists.infradead.org; Wed, 05 Jan 2022 06:15:35 +0000 Received: by mail-yb1-xb49.google.com with SMTP id v189-20020a2561c6000000b0060b5814a17eso55738155ybb.22 for ; Tue, 04 Jan 2022 22:15:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=z9Tf8Q4+BM5aumLuJFIjYqIwLRxLkiAzP1niqb/X+d4=; b=jkujgjBLTT3h9KKEmYDVCkFAPtUkFYS8HCyUVrge2WFiJckFCjZQRaJRCFebsjIrgm PY8DEABju9DTjD2PNiEwlMzMjVqttB57+VlG5QUg7/yPPUd/QXz+KnHE7mT2h0UDHvET B8fkSNSltuX8zDN40GxhCc3d7iYd/5UKXAclMyf5P9B0JDxBXnUWJeut6dYQMcpHr3Cy PI8h5t1+2ks0vLmUTH6tECasa4+ZYgaMN0s7gprIv+wPXNaP2SoF0TkUNKdIgpA/9OPo 7rnORPwJdfdlldewDdZ+msIh4LfnbW4GNjnW848Ub2EJA/2VtLhIPqsw0YSht1iA0e9u Dzig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=z9Tf8Q4+BM5aumLuJFIjYqIwLRxLkiAzP1niqb/X+d4=; b=h+atLHwDC8W2DV/P7bePH2DLpnTL26p+SPtqozMB3+YQ0G4pMJ7l8xAr/0re/47xsF 5o6I7om1fOkCx2w573Z2mOJSlNdtFw9Y5Qtp9O0TajxvE+awxbngVBIr9X0DnwfV+Fxg 7DPXaY8KgeW6D4/EMng8co6lxzDZFGlIHT3vmKiKSmTUymcCUKydwtll2smEDHv+WXb+ ZYgkmLIBF98uyzsbLNhBuftmYiaLpoHDpJI6jU0OMGsUDBXOx/6kQEDCw0+RiOdc2RfD fVWBN+PRhh8lNebzhgS/iN7dAE1ym6oEWA6ddrIzbzyQ2XOzYulePgfcV84XJv/kPbp9 11MQ== X-Gm-Message-State: AOAM533XoN4HijZQXE+zQ3/HZdsoUdSja8R8yoG9I3Yf/c5n+QuriU9s /UuPNbcjnOjwwmBnYvq8dnaap6F4MJ15 X-Google-Smtp-Source: ABdhPJyy6HehMHXqdWnhi7VRSyiwU6JJU89gF1Mo6uJqWqgqR8gsfo6YYt2sbh7jNyIMQxS6dRZR/H63Q3nM X-Received: from irogers.svl.corp.google.com ([2620:15c:2cd:202:3af1:caef:2937:5d2b]) (user=irogers job=sendgmr) by 2002:a05:6902:154b:: with SMTP id r11mr34534690ybu.358.1641363332606; Tue, 04 Jan 2022 22:15:32 -0800 (PST) Date: Tue, 4 Jan 2022 22:13:41 -0800 In-Reply-To: <20220105061351.120843-1-irogers@google.com> Message-Id: <20220105061351.120843-39-irogers@google.com> Mime-Version: 1.0 References: <20220105061351.120843-1-irogers@google.com> X-Mailer: git-send-email 2.34.1.448.ga2b2bfdf31-goog Subject: [PATCH v4 38/48] perf evsel: Reduce scope of evsel__ignore_missing_thread From: Ian Rogers To: Andi Kleen , Jiri Olsa , Namhyung Kim , John Garry , Kajol Jain , "Paul A . Clarke" , Arnaldo Carvalho de Melo , Riccardo Mancini , Kan Liang , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, Vineet Singh , James Clark , Mathieu Poirier , Suzuki K Poulose , Mike Leach , Leo Yan , coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org, zhengjun.xing@intel.com Cc: eranian@google.com, Ian Rogers X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220104_221534_315711_E5A06496 X-CRM114-Status: GOOD ( 12.58 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Move to being static. Signed-off-by: Ian Rogers --- tools/perf/util/evsel.c | 8 ++++---- tools/perf/util/evsel.h | 4 ---- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/tools/perf/util/evsel.c b/tools/perf/util/evsel.c index 4b3ba4408af2..8911ebde54d6 100644 --- a/tools/perf/util/evsel.c +++ b/tools/perf/util/evsel.c @@ -1666,10 +1666,10 @@ static int update_fds(struct evsel *evsel, return 0; } -bool evsel__ignore_missing_thread(struct evsel *evsel, - int nr_cpus, int cpu, - struct perf_thread_map *threads, - int thread, int err) +static bool evsel__ignore_missing_thread(struct evsel *evsel, + int nr_cpus, int cpu, + struct perf_thread_map *threads, + int thread, int err) { pid_t ignore_pid = perf_thread_map__pid(threads, thread); diff --git a/tools/perf/util/evsel.h b/tools/perf/util/evsel.h index c3db41282400..84e597f6c395 100644 --- a/tools/perf/util/evsel.h +++ b/tools/perf/util/evsel.h @@ -301,10 +301,6 @@ bool evsel__detect_missing_features(struct evsel *evsel); enum rlimit_action { NO_CHANGE, SET_TO_MAX, INCREASED_MAX }; bool evsel__increase_rlimit(enum rlimit_action *set_rlimit); -bool evsel__ignore_missing_thread(struct evsel *evsel, - int nr_cpus, int cpu, - struct perf_thread_map *threads, - int thread, int err); bool evsel__precise_ip_fallback(struct evsel *evsel); struct perf_sample; -- 2.34.1.448.ga2b2bfdf31-goog _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel