Message ID | 20211223074541.3318938-39-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 75C81C433EF for <linux-arm-kernel@archiver.kernel.org>; Thu, 23 Dec 2021 08:18:41 +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=IzlrQMYtb6b49BGPogW0GdfWazyTMYlbj3QXHb/x7pY=; b=UHlxHzPXWGSPsySVMczHOVmDHk cjE8wVsVI3KF9UqExcscHxrTXPuws19hvVxBWYrIXepq2sjKDm5LJhSCpTqbJa0hbUy9hzv5EpJJ+ Xub5imQ3/jVubz0VPiVcno/6H0vGBbCQg2oPo+ZjuoQJV8yRWAc6ROeNPVryiNoN18ZbcSC/NsnJE 9feqlwRWfGN0UdUr/gn1XoWf8OwwU7tT2eUeiyzYiveo5ePZOzGI0XQZYcWGs6hVShpe6KcctsqpF JL47+bSY9HZcFjq6+ymWPmWwBpqDllHmYzRN0T2rAC25YWJ+nvFMuzVdHernzsDXHFuVFr1yqT9o2 hZHRyiSQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n0JHc-00CAyu-Mg; Thu, 23 Dec 2021 08:17:05 +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 1n0IpG-00C09I-Ft for linux-arm-kernel@lists.infradead.org; Thu, 23 Dec 2021 07:47:47 +0000 Received: by mail-yb1-xb49.google.com with SMTP id y125-20020a25dc83000000b005c2326bf744so8491419ybe.21 for <linux-arm-kernel@lists.infradead.org>; 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=1oNrvq3ixAImr/Vg6EzIiiKihcd1rzoddpSd/OyWqxFS8+J3XGkz+qhdf0Js3GRn8v j2GdYiit/n+lbabeVqGmdov6pjBGkkGjQvPhgLhppDmkA80NIl21z+HrgnaOUq99Gb3N XjorHdbl9WwvnAJ79ReXiqgdoF1VKngixrFF830jDhby6N/1LqESNxgIQzlCGS7b9eH7 Dn6cO9vQg/uUQPL21At4YHqeq5kODTLqbRfmj7GJ/g64SixcejaEon+4ipPRfE2pdzx7 wy/S1XWgIe1oQpUNNg+qT0i9ocZncsePbTiwvbdkD3q3fMoc1kq1Rf+LUfytNETFye/B WJVg== X-Gm-Message-State: AOAM531ShePPttE57nl6DtFBJfSBKOKxHerSlHTYChAoc0j3AzIRhNMA BbYoCXRSGJzBYWV30svKmDX/V2q7xDEd 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 <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 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-20211222_234746_593155_7C1DCCB2 X-CRM114-Status: GOOD ( 12.30 ) 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(-)