Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp577844pxb; Thu, 23 Sep 2021 06:33:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwXE0FEyQHVmOl1Mm6zMS/RU2MUOyUH+TL1PI8xtt1vKXb02VXefd7zMEjoh6QtaQFaJg4c X-Received: by 2002:a17:906:7208:: with SMTP id m8mr5024207ejk.82.1632404019056; Thu, 23 Sep 2021 06:33:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632404019; cv=none; d=google.com; s=arc-20160816; b=O7KfmRh17B4gtv24ii7aT9wevdSSL5SH5Hk/EmEdUQ6Nmt/0G72mZV09Q2yCqw9L+4 +KnhfK8fbluyn9aUFU0rziwBPzPCVah7EPcuZpxeTjWmeWpxrWpcqSl116IYsR9Hk6VD Rdcrgcboi+0W/fDrUY8EvwyzpWW+j5gPmFAdp3jxU3SWuG/vGHi9fTFe2DiRE7PdOkSM Fyv2ri2c7D+eXWaXUJ0YD5PU6UBl2aQ3PBGWd1ql/fZStTS597LShXFno9G+AoP9zbT2 3U5V1Agg3DPAl3wpUYpgyHpPnRNch2mcEZEXMe1T16kO+fHDyCnBhxrZabcSYRQBbnyC g4uA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=XLmYsSK4ztdoaZw5hZnCLwy4+F49ILR1Uj9JhF5DuJo=; b=XM+iwiozWpD4sceY/pAJYkpOeLUskZncUVBqtaAvB7U28y6NrOzWJSkbNltB1RqA4w neZ90aGu86s9p/azc/uLBlL+VWtlRmTZbs75NLglfiiSpyX0SGg1jGL2VO4O3JS1Dx8f /AiyZ9hDzuyt7SMe+ah83XOY9t4Qcj5UO2Yxde8EkmA49I2GgPPF5FzQF2+mZ2yAcryW lNiDrbOo5vCalMOVBrw2bbJsa9lgjaE3HQa2fWSh6N5ZJadP0rr+jjA+fOlcuLNQ8h63 qXPtbWD405MAxD7D/3vqJHI31B4nX26mn6T4SDr+RopUi+G8O9cDhm6XPDOfljGRZ+Ip 3OIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MQBNG1oc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 12si5898495eja.664.2021.09.23.06.33.14; Thu, 23 Sep 2021 06:33:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MQBNG1oc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241548AbhIWNcV (ORCPT + 99 others); Thu, 23 Sep 2021 09:32:21 -0400 Received: from mail.kernel.org ([198.145.29.99]:44090 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241222AbhIWNbq (ORCPT ); Thu, 23 Sep 2021 09:31:46 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id C0A9F61278; Thu, 23 Sep 2021 13:30:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1632403814; bh=msj1HjB4sc3NrsgvWpq1oIvIRROwT8HAcjlFieJYSPs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MQBNG1ocba3HbisA6audvQ3c3CGkS6sar9a+6cECKnCc4DvVQN3fmdUMd5zuGVxgC qnvFMHwIsu5JZ+b4HOaDECAWlbcCLmukFB8VVglRC3Xyg3Y4LCWC8bIhxh3rlSLUEg lnxQ1KayR8ceu1z9eWpa7OFtX7MwZ/eh2X2tBewHP6GFfg1H8WW9M7W9fA5dgm15/b WD12TBS5H9wCWlcyHQdTX3z/X++xFQandLKpSquaDLb77E1oix1VEaT918G8q6DrMg 4QkItnmICvH3NafrNgQCIKkxOER8VEyZktNwLSh2wwNnzs+WF+OZ+zVObx2z4Jp7be HSYq9QaXlDnIg== Received: by mail.kernel.org with local (Exim 4.94.2) (envelope-from ) id 1mTOnl-000neM-07; Thu, 23 Sep 2021 15:30:13 +0200 From: Mauro Carvalho Chehab To: Linux Doc Mailing List , Greg Kroah-Hartman Cc: Mauro Carvalho Chehab , "Jonathan Corbet" , linux-kernel@vger.kernel.org Subject: [PATCH 09/13] scripts: get_abi.pl: Better handle leaves with wildcards Date: Thu, 23 Sep 2021 15:30:07 +0200 Message-Id: <79b7d3f8e57dce31e11f8a2d410877b1c803c8a8.1632402570.git.mchehab+huawei@kernel.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: Mauro Carvalho Chehab Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When the the leaf of a regex ends with a wildcard, the speedup algorithm to reduce the number of regexes to seek won't work. So, when those are found, place at the "others" exception. That slows down the search from 0.14s to 1 minute on my machine, but the results are a lot more consistent. Signed-off-by: Mauro Carvalho Chehab --- scripts/get_abi.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/get_abi.pl b/scripts/get_abi.pl index bb80303fea22..3c0063d0e05e 100755 --- a/scripts/get_abi.pl +++ b/scripts/get_abi.pl @@ -665,7 +665,7 @@ sub get_leave($) # However, there are a few occurences where the leave is # either a wildcard or a number. Just group such cases # altogether. - if ($leave =~ m/^\.\*/ || $leave eq "" || $leave =~ /^\d+$/) { + if ($leave =~ m/\.\*/ || $leave eq "" || $leave =~ /\\d/) { $leave = "others"; } -- 2.31.1