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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 439DCC433EF for ; Thu, 23 Dec 2021 07:48:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347501AbhLWHsv (ORCPT ); Thu, 23 Dec 2021 02:48:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40816 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347089AbhLWHr6 (ORCPT ); Thu, 23 Dec 2021 02:47:58 -0500 Received: from mail-yb1-xb49.google.com (mail-yb1-xb49.google.com [IPv6:2607:f8b0:4864:20::b49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7425BC0619D8 for ; Wed, 22 Dec 2021 23:47:45 -0800 (PST) Received: by mail-yb1-xb49.google.com with SMTP id p133-20020a255b8b000000b006086e19f89fso8559049ybb.19 for ; Wed, 22 Dec 2021 23:47:45 -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=wM2F9YGkn6QITwu+SCK05wcndw1aQWuNO5bNevKaVrE=; b=I3VaHfG8SUE4Gt75X2npP4PVqrzNQI8mhPK/WMyNaMczZyFE4lEeZ1v5XP+qfE++LX UNrc3/Mao4f1U4CzploAaO/UNGOnxyLLE25GfvGxFm+SXdA6+HdNfDce+6AG4KhR4D50 komQGpOo+IEhp+A7dk7STB67/rqJeWdHbjITILfjkQqWbHhf04fjo17PdPuwH1868JX0 yPnH9v14Qqd6LXNbWGQrpn+gCOOfEJMy3Kk/IGfMM5KmZrRKL3nCL/JCQ1XgydSk/u2g ebZ5srkMSUF23E/szNLp3gdOeXkOEhmfFH8Jn41O8yGmp/hFy0snw57T1Kw1313pFInK uORw== 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=wM2F9YGkn6QITwu+SCK05wcndw1aQWuNO5bNevKaVrE=; b=ti0H+6YcWrAVOnw1AfxW4g8mWXNt+M26OPKeVwsVc5wTp8YQSmxhEPrM0tlt9iUWU8 A4aqOl/0Zcn9/Wq3JF4lhMKFEKoXsdlN7sXa9hlekAbI/EPP4ekWGULvn4iCZ8i6keX8 rRrVwVXGbkdifXJRcwIG4/7B2yZZA6050rUfR/AA6kfh3tLMkepmOf4/UoBZQrMyQeCz CNVDRI64Q/hnaJdlwFMxf1gMwcjUFHSw1iwlWFtmDdr1xCLqIIDQHumWzsmX3aSuEzfQ t9NG6YSDZrLjoejK03MhXnDscXtCSUZ/SbAZ0cVHaz68nc1YdDG4ueIqOXtysaU6ROif 9LDQ== X-Gm-Message-State: AOAM531Urwtd+Su3UXPHS0/MSdhlAUOPHr8BglbrJMKH1rPAX0TkEJ15 jKos0eM5nTh0w6R19CrvfLGetqKiV+M6 X-Google-Smtp-Source: ABdhPJy5p01OjIn0FII81SwAXYoRLRKDnND7XSXM7c5skduqLeZtLt2qI1Kg2O0zZxHK/3gbVHDbQLfJvgjP X-Received: from irogers.svl.corp.google.com ([2620:15c:2cd:202:4fef:90ff:589d:24ca]) (user=irogers job=sendgmr) by 2002:a25:4d8:: with SMTP id 207mr1592266ybe.320.1640245664700; Wed, 22 Dec 2021 23:47:44 -0800 (PST) Date: Wed, 22 Dec 2021 23:45:31 -0800 In-Reply-To: <20211223074541.3318938-1-irogers@google.com> Message-Id: <20211223074541.3318938-39-irogers@google.com> Mime-Version: 1.0 References: <20211223074541.3318938-1-irogers@google.com> X-Mailer: git-send-email 2.34.1.307.g9b7440fafd-goog Subject: [PATCH v2 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 Cc: eranian@google.com, Ian Rogers Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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.307.g9b7440fafd-goog