Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp587737pxb; Sat, 18 Sep 2021 11:21:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwtGi2Aok5Pes53zbcF9t+XgMiwWEmzDkbaFnOMtBlf1wABT2nJ/Ef8MRCGlFqyMpXFBxsW X-Received: by 2002:a92:cccc:: with SMTP id u12mr12500741ilq.189.1631989294638; Sat, 18 Sep 2021 11:21:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631989294; cv=none; d=google.com; s=arc-20160816; b=plcSAw1CYp9ySHsjT34faYtFH53pveKuGZh1ezWqr3ozrohoi+wRPjpvol/lPs6UM0 mlh+zr81l96/MGujXEYXwcMdMhyomvH7Yz/a4tN/sT9lRNVunrESLqkkSEBiKdWq54hX liJ7BMD6KLtnN+ettcyKN75pcC3P5fFTk+clGglGBL5lWeIREBrvOXZZ2E+JBakN9k13 xfqIMV1B1lLKNh4PDun/OqKiVfoWA5uh17pSTmDofuxoGbN007PfS030YWuasS0remlE PywpNgI8PW885j9eirZNao6oKH68QUEd/XB3TziSvUGQ7JU/Z5iWo2vaba7DLWuOeiGN wWVg== 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=fXH5DCEtsCpXk8EhmBVeNlxNZo0MFwbzd7DHHrY62hk=; b=Rll+D+lQaTRogTSGd/F6TV1Szd3+C9B1dpFgoKyN0hJzon7IE3wkJt2dxJQEXctcYv cKOLlW4mfT/pkwODKLf0NsW2f0/9gKWHDs5JXqsRdGrBkl5p3IuXSpN+Q1TfNrPGKw7b HG1fp5lUN9uoKz3PNVL+jGmjC1geJdo9Ly09ABi28hPhDUyXqoKS75VSs7kfGWltjrpy FCgmF1K+E69tK0gLVFEMkIqF6CJA3bCrbNBmXYsW4I9ZrU0pXkSyLqQUgL5t0XirBqqe vmDlUS1yRD6NYdGNs22UPWoBdIX6aFdsc6u1Tz9phlax+uArLAPV2Dh23I9SiuMWw4F1 BlrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=oJ0jNWA4; 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 s26si9970316iov.21.2021.09.18.11.21.19; Sat, 18 Sep 2021 11:21:34 -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=oJ0jNWA4; 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 S244123AbhIRJxs (ORCPT + 99 others); Sat, 18 Sep 2021 05:53:48 -0400 Received: from mail.kernel.org ([198.145.29.99]:54608 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243336AbhIRJxp (ORCPT ); Sat, 18 Sep 2021 05:53:45 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 7DA7360F70; Sat, 18 Sep 2021 09:52:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1631958742; bh=zeepgnv80bX5Cd++yrGR0sCMsP3604fKdamMk3htmcs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oJ0jNWA4ZjZFcv32DT3ceCbaaLuBUH64oxKTqJce5S7vEyjhDVILa7tVhTLyT7bGX 4petWklMlQDSBDe/HS/QIZJLcq9gopNRtv9fIB7PbWr9KRBhF4m5Uw8yRf3CI697ve oSLNcWRFxbhYnAojcfRedMxaOcMKxKa31QBbwg3RaALZMNYwnzISU8FiOmrTKeQTGp 75/fXTzzGOoXCSTUqUw8/Nj+GnmUaVUTdEtyvWxqkmoV9axY2EY8R895n62I4mOuge X+7ZzOedwa5uyMnet6aQyxKk2jU94OoLzye5cXPeoJU1GfECRYwqLYXHjutgBq2DuB d6JGmbeM+T7tw== Received: by mail.kernel.org with local (Exim 4.94.2) (envelope-from ) id 1mRX1A-003b1A-Oj; Sat, 18 Sep 2021 11:52:20 +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 v3 6/7] scripts: get_abi.pl: Ignore fs/cgroup sysfs nodes earlier Date: Sat, 18 Sep 2021 11:52:16 +0200 Message-Id: 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 fe83f295600c..aa0a751563ba 100755 --- a/scripts/get_abi.pl +++ b/scripts/get_abi.pl @@ -550,6 +550,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); @@ -570,9 +574,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