Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp696194pxb; Thu, 23 Sep 2021 08:49:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwLimGf/OjtWhQGJPLLe3n0hUjuVSYWU3PSloIcP6WlB7uH0FsvNZNLI+XO3sTFxaULYKOG X-Received: by 2002:a05:6402:299:: with SMTP id l25mr6264987edv.343.1632412149469; Thu, 23 Sep 2021 08:49:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632412149; cv=none; d=google.com; s=arc-20160816; b=fElcEeXIfm6sHGKkERoJMGt2/Z4NB3BGS86YSQZoPnQLBOrv20UpLZdy0Nep52dQ9V tBy3qk84QM1sYwUizi9ZMpauFOLXq5bl5vFevlgQs8ONhfD6d9keSc8NfotHWpRbV24Y 8sK0qaFdZBYlpjp8+aLcGLrAakAUsQ4qOcYtsJQH4ZM+7J4PUGyl+RvnEFuXHZ77NE3D jyQS97XjLu/bspDLbHzGjoU34exJNsI84Pn2XaJ5o1UiqaIEHvmtzM1id+qZx5yMnswk XtahTn08j7ElG/l2KYOCIHsJ74bL0knA/1+3UcuK6Wo+/9leHzhAxBR6Wx5OdYVI51c/ CRrA== 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=nkN8k84CtUHVxZh4jHxfEWBNBkdrjzeUqp6HqxWP4WY8iw6pM0RTvmBN9NV+vs5sAa rHDPttq39FZZXe9Odlvo3qkaes3NLZ91HEzjDaaiQ9zX5G+oVafWCUxRg8n9KapgJO++ PBUOGPh5LICMcQieGjKZsvMJYlZeoOrkpRSQuuGE92gpguW+v3OPRrMvrc0val1WS1t4 r89hosxnIlju4ZaP/cdGqiRgmNpQFg+9ZJOja5kRLosvyukIgVoMKUOccIEP8GTtcOcF pG1M5L/kKJnEDkWFtf8oEkoGHR14FlWJgdn1JKPttzcSttFJsADv7RMRvAtywkqSCy6Y nVaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ju9ZPOK+; 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 e28si6149847ejm.61.2021.09.23.08.48.43; Thu, 23 Sep 2021 08:49:09 -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=ju9ZPOK+; 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 S242201AbhIWPsa (ORCPT + 99 others); Thu, 23 Sep 2021 11:48:30 -0400 Received: from mail.kernel.org ([198.145.29.99]:38354 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242080AbhIWPnF (ORCPT ); Thu, 23 Sep 2021 11:43:05 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6CCA0610C8; Thu, 23 Sep 2021 15:41:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1632411693; bh=msj1HjB4sc3NrsgvWpq1oIvIRROwT8HAcjlFieJYSPs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ju9ZPOK+HTHz2p8VJH2qUYGspJLGfP/AJ0AHGnsQZveVWvJHIAfAegwhN54LGNehX 1sVi2iqIGgqHoiTjC/q8/vWuWQAtLWfqjQSL79om5Smhisb9H9hhPvSNZE0D595kzC eGhw63GsXcFa9I209BnLsMh+eY0sSIhvRfvj/JsV85b1a948hodMHn/BsjVQud5+qr KtvFTqIvm2WSTutdel4hI55O/hshgxZFMfo9hHZNfiFanNF5tlj/8IZlLkBnDblLJ2 DS5VniqNJH669vS0Yl4n2QMbFzKHCAXO0JF+FE41TssvI5kgIZsylhfrfE/Mu3e1Ku QoWCOI/6vvNPA== Received: by mail.kernel.org with local (Exim 4.94.2) (envelope-from ) id 1mTQqp-000p6K-P5; Thu, 23 Sep 2021 17:41:31 +0200 From: Mauro Carvalho Chehab To: #@kernel.org, YUyICHTRdfL8Ul7X@kroah.com, Linux Doc Mailing List , Greg Kroah-Hartman Cc: Mauro Carvalho Chehab , "Jonathan Corbet" , linux-kernel@vger.kernel.org Subject: [PATCH 4/8] scripts: get_abi.pl: Better handle leaves with wildcards Date: Thu, 23 Sep 2021 17:41:15 +0200 Message-Id: <60bb97cf337333783f9f52e114b896439e9cc215.1632411447.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