From nobody Tue Dec 16 20:05:23 2025 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 C5BBEC25B48 for ; Fri, 27 Oct 2023 02:32:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345156AbjJ0Cck (ORCPT ); Thu, 26 Oct 2023 22:32:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52154 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229437AbjJ0Cci (ORCPT ); Thu, 26 Oct 2023 22:32:38 -0400 Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 88CD41AA; Thu, 26 Oct 2023 19:32:35 -0700 (PDT) Received: from kwepemm000003.china.huawei.com (unknown [172.30.72.53]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4SGmmd6wCHzMmJg; Fri, 27 Oct 2023 10:28:17 +0800 (CST) Received: from ubuntu2204.huawei.com (10.67.174.22) by kwepemm000003.china.huawei.com (7.193.23.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.31; Fri, 27 Oct 2023 10:32:32 +0800 From: Yang Jihong To: , , , , , , , , , , CC: Subject: [PATCH] perf python: Add missing util/rlimit.c file to the python binding linkage list Date: Fri, 27 Oct 2023 02:30:28 +0000 Message-ID: <20231027023028.1106441-1-yangjihong1@huawei.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Originating-IP: [10.67.174.22] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To kwepemm000003.china.huawei.com (7.193.23.66) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" In commit c4a852635edd ("perf data: Increase RLIMIT_NOFILE limit when open too many files in perf_data__create_dir()") we started using the evsel__increase_rlimit() function from util/rlimit.c used in the python binding, which caused this entry in 'perf test' to fail: $ ./perf test python 19: 'import perf' in python : FA= ILED! After: $ ./perf test -v python Couldn't bump rlimit(MEMLOCK), failures may take place when creating BPF = maps, etc 19: 'import perf' in python : --- start --- test child forked, pid 1100249 python usage test: "echo "import sys ; sys.path.insert(0, 'python'); impo= rt perf" | '/usr/bin/python3' " test child finished with 0 ---- end ---- 'import perf' in python: Ok Fixes: c4a852635edd ("perf data: Increase RLIMIT_NOFILE limit when open too= many files in perf_data__create_dir()") Signed-off-by: Arnaldo Carvalho de Melo Signed-off-by: Yang Jihong --- tools/perf/util/python-ext-sources | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/perf/util/python-ext-sources b/tools/perf/util/python-ex= t-sources index 26e1c8d973ea..593b660ec75e 100644 --- a/tools/perf/util/python-ext-sources +++ b/tools/perf/util/python-ext-sources @@ -40,6 +40,7 @@ util/rwsem.c util/hashmap.c util/perf_regs.c util/fncache.c +util/rlimit.c util/perf-regs-arch/perf_regs_aarch64.c util/perf-regs-arch/perf_regs_arm.c util/perf-regs-arch/perf_regs_csky.c --=20 2.34.1