Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp35163rwd; Wed, 31 May 2023 18:37:16 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5c4OVr7IebYUHYeeC4tbaGhZjzuL5w3sKF9ItwOUR9+GmP+gXa6Uh0wYj0q1xfq9FXt4qz X-Received: by 2002:ac8:7f4c:0:b0:3f4:e0cc:739c with SMTP id g12-20020ac87f4c000000b003f4e0cc739cmr8529128qtk.27.1685583436131; Wed, 31 May 2023 18:37:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685583436; cv=none; d=google.com; s=arc-20160816; b=XWa2HOIIhLxwMHke2/sif6jI8OLd2LZ0kBP4kOWJSkGC08bxCTdUtRYgu75tM536Ap SRDRPreCoBfGj8t4Zh1sVeJ/IBDzCx4OSV/PbSQdLewu3Sv8bkG/01LKC/ptgIXwqdZh Rz7LdOA5Zk/bB97dW91Wn/BgjP+Agzupo6j81V887utAFo6gdRgg6xL4u/kVDRsWQN7l TaR3cEoUyHRMiMF5b/hqKtxW4M2BTxQvSozmh3V2uKWkVSz0SWd1CZt57B2Jkna/rFLA DIOzUJGb6rQXPB/QCFmwuRSVuRY+AdC04CjoC7pcH8YKnuVHwGBrQ+8h/7s0nCmeTi87 DdnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:feedback-id:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from; bh=GkN0zUD3mbpKqPkt8q0X49j4v+BOcyGVqXkTDzXlrn8=; b=Irg+Hd78MIupCJUK9TrfQeI8RbGiWhp3E13ZULB/8GQvlhuC/WwT1w9UpC0EvXlJnH xZmO92jc402mhKzAXwP7c6Ccj2zOvF5FXZXiZBu6WL81AtlK6y8Ahn8VkAammslOkVSi UmZfvK/h8PWjWE/HOztJIpBxhRE2wuCKEVZfdGx3T4MPA7LZBo24P6y1WOErAfwgv5i7 RKQZ30wSxCmTzPr1/YLSQSjoBii5FtSI7ISPsakQGd8hka4EwfrrfkHCtemQrP4C2qQw ZEQdyDh344CuQzn7QYoIlBrzWHrZOHj9yjwnBAAIalYdD8RePKmOR+YbmyMNiPgBdQ6X SjZQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z190-20020a6333c7000000b0051b7b83d6b1si1999081pgz.241.2023.05.31.18.37.01; Wed, 31 May 2023 18:37:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229741AbjFABGc (ORCPT + 99 others); Wed, 31 May 2023 21:06:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35648 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229469AbjFABGb (ORCPT ); Wed, 31 May 2023 21:06:31 -0400 X-Greylist: delayed 103 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Wed, 31 May 2023 18:06:28 PDT Received: from bg4.exmail.qq.com (bg4.exmail.qq.com [43.154.54.12]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C6E77119 for ; Wed, 31 May 2023 18:06:28 -0700 (PDT) X-QQ-mid: bizesmtp70t1685581457trmehb6e Received: from localhost.localdomain ( [112.226.6.6]) by bizesmtp.qq.com (ESMTP) with id ; Thu, 01 Jun 2023 09:04:15 +0800 (CST) X-QQ-SSF: 01200000000000B0J000000A0000000 X-QQ-FEAT: JLSCbNHoLcDNOd2oUAvDOT/7RABR1rYhxrNDE7mnragaK9lvTSmoDIJtP4MiF leSc4QLMYtVWlKX9VSTSWXbBGJ7+nHlqzJrI74MfxtYs92ntbDdDKsXZKgk6hVbAyFohRwg KjF1MFJMasScKzQ+UnNHMqwKjBH4LKBHAdqG0/L4xu35Hh5zjhm4wJrZxkRIC+9tUgm1/r5 ugcwYfW5anB7LS3ES8oIl9xfZeh8Hm3aecDopIGOTm0BFNYY1DGj7HDszVglqZO94KSc8oh Z9CZzzLhRJnVIYi1NASAJrpDGxd5kovpNJpf0Rgl+3GrH935R4MpJAWHIhPiJqsRdb99ipf Ywjskb+OKqGOJUxBN+eB35QoqjQFQ== X-QQ-GoodBg: 0 X-BIZMAIL-ID: 16329342022388256243 From: Jialu Xu To: gregkh@linuxfoundation.org, cristian.ciocaltea@collabora.com, masahiroy@kernel.org, vipinsh@google.com, cmllamas@google.com Cc: linux-kernel@vger.kernel.org, Jialu Xu Subject: [PATCH] scripts/tags.sh: improve compiled sources generation Date: Thu, 1 Jun 2023 09:04:02 +0800 Message-Id: <20230601010402.71040-1-xujialu@vimux.org> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:vimux.org:qybglogicsvrgz:qybglogicsvrgz5a-1 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use grep instead of sed for all compiled sources generation, it is three times more efficient. Signed-off-by: Jialu Xu --- scripts/tags.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/tags.sh b/scripts/tags.sh index ea31640b2671..938dba219534 100755 --- a/scripts/tags.sh +++ b/scripts/tags.sh @@ -98,7 +98,7 @@ all_compiled_sources() { echo include/generated/autoconf.h find $ignore -name "*.cmd" -exec \ - sed -n -E 's/^source_.* (.*)/\1/p; s/^ (\S.*) \\/\1/p' {} \+ | + grep -Poh '(?<=^ )\S+|(?<== )\S+[^\\](?=$)' {} \+ | awk '!a[$0]++' } | xargs realpath -esq $([ -z "$KBUILD_ABS_SRCTREE" ] && echo --relative-to=.) | sort -u -- 2.30.2