Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp577649pxb; Thu, 23 Sep 2021 06:33:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwgag25rtX99fVdwQrmcZy2pZ+kbUIA+IWQXYN5s9agP7QX6DO2V3Uev3OiBmpTmr706IB0 X-Received: by 2002:a17:906:a0a:: with SMTP id w10mr5170570ejf.416.1632404007981; Thu, 23 Sep 2021 06:33:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632404007; cv=none; d=google.com; s=arc-20160816; b=URzPjGPIQGaw/G4gwxnCZtvhexAzF2yr9KMTLEq2i8B46KOZ1dUME7TzBsNeCG2sJm eoXs/BVbQDUTdoa1r7j67lP7b5/14YddFzTpQUSPZp8qRNIS9Nu+aeBTgHNxrv9HyxgS d2/5OizEJzShVOG7hQ5WTSTTPyDjRA8oO+EWgSieo3U7EnVMe+nc2Yn+HvWCcz4M99xN 0DCH+5DTykgzMKrJbGylDpTSqNrQ1DpCh4KY4Uc0PUiAG17NrMZ0SlagRbptImVyIA6C cdAxYhZJ2bLhQUZZHuW55TjBpmAf2+RG06VI1hNEg9v2onlbCs/7/3iuPzHx2toWAxCW AnLQ== 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=svKrMBeLTDl2kyAwX0X/F6FC09Xumt+1mKUTiCS+Py4=; b=Tqli2n5vgqCH3iXkNG6tBwwZ/vBA2u9NCOK691cd/x0HerKJr4/g3Pd4c+nrOC7mUB Gn8eJmD9U7YzU2LJ0DifOwj06T9fTaOAFuB+W0SWVSLsDTx1FIUgxfiK9dUtTLkMia0A 9sWHTyJmkzjP+OXf42kaK/FpOrzKdyuoRr3XSFe+1MZUfiCc8OXQHMka7SPiEknZxQJF Cti0MK5XG9h16ahO8pucVu7t5D2J1Xt+51VP8p/qHfhu8SNb28xBzMkWnRCDbEWvFROk luQ077o6JMJQ4Lsf/r6gTLOKSp374icDpejmmeXHllSMD9h5Zp8BYOun06wqA8frZfZW txog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WYFpmt17; 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 14si6179056ejj.313.2021.09.23.06.33.03; Thu, 23 Sep 2021 06:33:27 -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=WYFpmt17; 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 S241459AbhIWNcH (ORCPT + 99 others); Thu, 23 Sep 2021 09:32:07 -0400 Received: from mail.kernel.org ([198.145.29.99]:44086 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241188AbhIWNbq (ORCPT ); Thu, 23 Sep 2021 09:31:46 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id C2A0261107; 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=FYVJM2GwGMS5WMys6r7EKWhr4H+w6ngEGjF+61p6Uwk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WYFpmt176UES0I88W3A9CrfNXITMkDwcv0e5kczSBg3/2uiA4lcnV6xTzrnpc1rz9 DqsYpGasmEuLFghb5mIJsNOowOTSFr+ZgDOAvUoLgMb6Cm9qsRLPFc3TWDA+Mo181C d4UN8bMydm0qQX101lZUvuEvdH+J0tQaJMu8AoerWEZM/aoEgIuPwQRL3xh06dzffH FIzBYlbEq7DI5DUlzYVqQP1ME7ZPtRYq5gstlxYVupgkuP8lgnyXnD95mnpWjfH1Xp fdc4k4aJVbZY+aIpCvs6m4VeppufS3WjMEOVpSNVh39QRxGlArkNwLNIN+RbVSeZOK jzh8ciZbHeczA== Received: by mail.kernel.org with local (Exim 4.94.2) (envelope-from ) id 1mTOnk-000neA-Sm; Thu, 23 Sep 2021 15:30:12 +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 06/13] scripts: get_abi.pl: Ignore fs/cgroup sysfs nodes earlier Date: Thu, 23 Sep 2021 15:30:04 +0200 Message-Id: <3e2f5591b350c769cdf1a896c14555f4b7b94e6a.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 In order to speedup the parser and store less data, handle fs/cgroup exceptions a lot earlier. Signed-off-by: Mauro Carvalho Chehab --- scripts/get_abi.pl | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/get_abi.pl b/scripts/get_abi.pl index 8f69acec4ae5..41a49ae31c25 100755 --- a/scripts/get_abi.pl +++ b/scripts/get_abi.pl @@ -551,6 +551,10 @@ my @files; my $escape_symbols = qr { ([\x01-\x08\x0e-\x1f\x21-\x29\x2b-\x2d\x3a-\x40\x7b-\xfe]) }x; sub parse_existing_sysfs { my $file = $File::Find::name; + + # Ignore cgroup and firmware + return if ($file =~ m#^/sys/(fs/cgroup|firmware)/#); + my $mode = (lstat($file))[2]; my $abs_file = abs_path($file); @@ -571,9 +575,6 @@ sub parse_existing_sysfs { sub check_undefined_symbols { foreach my $file (sort @files) { - # Ignore cgroup and firmware - next if ($file =~ m#^/sys/(fs/cgroup|firmware)/#); - my $defined = 0; my $exact = 0; my $whats = ""; -- 2.31.1