Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp865008rdh; Thu, 26 Oct 2023 19:33:44 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGGL2D6h37D0KQetYV3cu48bbf/qOeUclJHTVwBChDraIrKFHn00MVSCXKUG9saLtgq4gPz X-Received: by 2002:a25:6b4b:0:b0:d9d:5e9:c65b with SMTP id o11-20020a256b4b000000b00d9d05e9c65bmr1120414ybm.39.1698374023906; Thu, 26 Oct 2023 19:33:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698374023; cv=none; d=google.com; s=arc-20160816; b=Hy990gwxCasqmk8DRoYjCHdaX2o92owYrpDUMCc5C/eH49M0RmpAWzkxOlX431V75m 4Ao9LOwVpDmd4KZXwlcyIFF+UnUyUBG3YH9u53S8+oeDty5NeQcl9xVhLZDLLdKK4015 30DuxCHjfgXd1innZfV/7wVCjzkPXU6SFWeBmFmiucpjJmpK+wvERT0jN1LeEkAmGXoG dSD3k0zdiGr1aP7it2xkJ56x4gsmXlaPSa/DqCh8gkgoNz+kamjmIKboUkjA/orp8ozf hGVK+5xZrptlR2BiTwQEGPv1krZz1UytWbLLpKYWsWKUmViE9UJK6IJVBjWShT5kVbcT byBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=BJP2IYdQCQy5Scx+9TGlhKzl+WEFgcIXtn2pXbZ0DWI=; fh=JXx1mv1fB650HoTkc5GIgpDQ5Ey550GcDyaNZ/s6bYc=; b=bDQ+lCXd3JyUTr4bzXnKWerDwlsBvm5A4czTr4zbs0oE9oGnEICqwINYq9dMjVztom F1xER4tWdWBDgt9Q4aV9PgsJRYHcs/PZu9P1X4w0GEfUpO4dz2KMBKVJI9OswiuiV1oD T6943AUJVsiVxFmCytnPH202a5yjI9D6HfThNy1hXs/PVFUxwDtEugeNzn702ITaAhb2 prDObnpY2+SjU8dzaCbGpMRA5hE8ef2xVHP6hj4Oucvcjy71FgFiC9TewKkV/RBV1gQ+ I/ESdu2owfXB9VQcF/hRfWwyeHbwR+tVH7TpGKI76UW7Kk9dnSg4ZkX7eXfMrB1v2PqF TZvQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id 78-20020a250d51000000b00da03c21d5ffsi1327719ybn.335.2023.10.26.19.33.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Oct 2023 19:33:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 26F4C8074CA2; Thu, 26 Oct 2023 19:32:54 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229600AbjJ0Cck (ORCPT + 99 others); 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: 7BIT Content-Type: text/plain; charset=US-ASCII 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 X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Thu, 26 Oct 2023 19:32:54 -0700 (PDT) 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 : FAILED! 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'); import 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-ext-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 -- 2.34.1