Message ID | 20211230072030.302559-40-irogers@google.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> 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 71D43C433F5 for <linux-arm-kernel@archiver.kernel.org>; Thu, 30 Dec 2021 07:52:16 +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=QU9d06da19c3coJPBFRvX3j0XS FyMZVDIYm95rIEgPkjD2EZ2JB0YwD/xWuW/goXxDkHQw/DZWhbc83egNlS7kuDo5408K1CmIQttDO WIJXAwO+d+xqhpF6GlWrQp/b5PFHwdxtLnwmE2yhEBjh/Nlyz0hXMA9QhRHLZq7U+KCWvyZEGYnpO 5MMLkyIhznDTdb/3ERvOdVzX8a2YvoAPpBvjf/LEvYRf4ttZltA3+Un9uPXXCaF7j474p9j/so+bV 25sIChAZbg8ZNI/dEY6F5Ys69fPKAyEgdnqP3Wn98ysJJok/MbDKc7hcRJbdZadqUBNEWfZwAv+TJ pW8RG4Rw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n2qCt-003uE4-MO; Thu, 30 Dec 2021 07:50:40 +0000 Received: from mail-qk1-x74a.google.com ([2607:f8b0:4864:20::74a]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n2plP-003kDk-Nf for linux-arm-kernel@lists.infradead.org; Thu, 30 Dec 2021 07:22:17 +0000 Received: by mail-qk1-x74a.google.com with SMTP id 189-20020a3703c6000000b00476745338e6so8169277qkd.22 for <linux-arm-kernel@lists.infradead.org>; Wed, 29 Dec 2021 23:22:14 -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=MXT7SOzW3mUO/kIlAAQ1kcE1y8TLKmLvjCZQz/QOX3ep0WbLoS3Law/ePU1YrUpVE8 xRU0Z9yjFElnlqxBOpCu4x25LofrmfWuiN8sThs5JRDgUCHo6B6/ceEZngmkDoxK5c59 mUJUyYJ5c1JksoFFiGij8J5BiTp15Pzvr5Znk9OzhqEZuNTI50rmvdtwAncFrqajsvzt DuvLPjm9dRoAEycbkTbmRCBMb3aWICHWKiVWoOSD7XXcr8L3kXJ3qjbbeSumO9ijpPoe vZBYNHiHOoIaoYh2yWmayyLQVl5qbkoF+/VgPTkPvqJKz5baYe4GzheldNdKV1JQbXA+ 6luA== 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=EcMHJ0RpZiqbxKyRNxE4iuofTZoy2qjRg+s9hI67RfA/jR4gc5zO5LtjCA6M0kJSKo bxp75Q7lSDlQMh6SpIHS/JG3VjWh6SQFLFZVnAhpU7szm7D11Y92KmSfmjUXxRorx8ph aUQRiGht21tBWMZJPKuATfcOWkAbOl2Puvkyqs2p1VjlGdSpUv1F694Z/69byhCEguZ1 KjI2UkwWL8UAg2mbXY3u3bVqDABMWa9xUD6JRSroABZDiZUTbCnC3aYxCffsRh6HyhU/ z2qdy9N0d8lBqo3X2XlwciBmfW7grOJ/56fYK91dzjQPH535HGt9U72do4CJqelQd5Uh DMFA== X-Gm-Message-State: AOAM532uPJDBkcVwyu7JR+Jjgkki6f875FDMKO0XDQaHSsZWpeoBDzTw gm9VzIvnTaMPVLcCvs9QEths7Zyw2eUK X-Google-Smtp-Source: ABdhPJyriU9EL/kaz5i6TWu0zvPwflHtymroAnCGFGjX5zO6Eb+Ly8LdUtfYPsbD0NzuYcHoLBLChDPV+Ita X-Received: from irogers.svl.corp.google.com ([2620:15c:2cd:202:31c4:9539:dba1:a82b]) (user=irogers job=sendgmr) by 2002:a05:622a:1790:: with SMTP id s16mr25339654qtk.634.1640848933373; Wed, 29 Dec 2021 23:22:13 -0800 (PST) Date: Wed, 29 Dec 2021 23:20:20 -0800 In-Reply-To: <20211230072030.302559-1-irogers@google.com> Message-Id: <20211230072030.302559-40-irogers@google.com> Mime-Version: 1.0 References: <20211230072030.302559-1-irogers@google.com> X-Mailer: git-send-email 2.34.1.448.ga2b2bfdf31-goog Subject: [PATCH v3 38/48] perf evsel: Reduce scope of evsel__ignore_missing_thread From: Ian Rogers <irogers@google.com> To: Andi Kleen <ak@linux.intel.com>, Jiri Olsa <jolsa@redhat.com>, Namhyung Kim <namhyung@kernel.org>, John Garry <john.garry@huawei.com>, Kajol Jain <kjain@linux.ibm.com>, "Paul A . Clarke" <pc@us.ibm.com>, Arnaldo Carvalho de Melo <acme@kernel.org>, Riccardo Mancini <rickyman7@gmail.com>, Kan Liang <kan.liang@linux.intel.com>, Peter Zijlstra <peterz@infradead.org>, Ingo Molnar <mingo@redhat.com>, Mark Rutland <mark.rutland@arm.com>, Alexander Shishkin <alexander.shishkin@linux.intel.com>, linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, Vineet Singh <vineet.singh@intel.com>, James Clark <james.clark@arm.com>, Mathieu Poirier <mathieu.poirier@linaro.org>, Suzuki K Poulose <suzuki.poulose@arm.com>, Mike Leach <mike.leach@linaro.org>, Leo Yan <leo.yan@linaro.org>, coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org, zhengjun.xing@intel.com Cc: eranian@google.com, Ian Rogers <irogers@google.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211229_232215_837507_8EA82352 X-CRM114-Status: GOOD ( 12.37 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
Refactor perf cpumap
|
expand
|
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;
Move to being static. Signed-off-by: Ian Rogers <irogers@google.com> --- tools/perf/util/evsel.c | 8 ++++---- tools/perf/util/evsel.h | 4 ---- 2 files changed, 4 insertions(+), 8 deletions(-)