Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp371941pxb; Wed, 29 Sep 2021 00:53:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzm07zcV3sKOy6pRy70GRWI/a+gr0AG6W18jp4A3bfswi6XO+H0Ki5+NE4/+4tXWa5voaLO X-Received: by 2002:aa7:8426:0:b0:438:3550:f190 with SMTP id q6-20020aa78426000000b004383550f190mr9768055pfn.19.1632901990607; Wed, 29 Sep 2021 00:53:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632901990; cv=none; d=google.com; s=arc-20160816; b=VP3ATtkNn0iA58gdAOfCb5T5zjK1abOnfrck5e8pwn+dqI9mjqPq8Aiaq7l84SovIr Pi2uHkCESfBQTYiUdeGsruXVOD7R5NUwIDUzeucpY336YV38Rwm2+xkEy0BowQm8xutW GkMg1ZHntumiZqQNCLe/bkUKu/k8DaJFBaLeo/jzbiAQTMw7V038x65pJgAVTeCmiu2W uh/+mFSYrJnBl6gDH4bzdqN1wvXJBsg0cGKUZPsRwOxwefFIOh/cZ2E6kDnH8ao8e9yR BVkHr18LBYs7iAZZYMKaFTnhdmwPznYLoeTaj3cisZxi2Vd2qVs70EWlO/Zuj2Bdf40l vuog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=SzDnDofqowQWATJzwN3lEF4Keu9dZB+7C+BqKonslvk=; b=t1RpMiBRPTgvx3985KQjkafPhz4G1SNe8boeGbwMvNqeKakBQ3bsTw5/5CMU+9Ob7X V2Diy3mgn7SVWJn53mRIcuLSV8SKO5tldqHUtZfhFAP0Jd5FzKCTYPO2RmJX74q7Itqg ewO3xbLOryqYvVX/HsrjtFebAw71RIe5gxiTErXHNOT7/SEZQjg1PvSiY/dLZ1bhc/2b tXlmBabWKr2cIzo69rxheWDNfYNC6UVcBR2mHHrXAjF8AurLWoA1NSfac/1j1jQCvyhf Y4ZSiZ/Wwz+pHah2kAmncY0cED6seCpA8AOiSdVXH2c+bbf60jYzVEmw7NHJ6MrPPqsu pxOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=lYy210J4; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z132si2290114pfc.153.2021.09.29.00.52.56; Wed, 29 Sep 2021 00:53:10 -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=@linuxfoundation.org header.s=korg header.b=lYy210J4; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244542AbhI2HOp (ORCPT + 99 others); Wed, 29 Sep 2021 03:14:45 -0400 Received: from mail.kernel.org ([198.145.29.99]:59832 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244486AbhI2HOn (ORCPT ); Wed, 29 Sep 2021 03:14:43 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id BF3936137E; Wed, 29 Sep 2021 07:13:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1632899583; bh=VI48gGecE8JRkm15ynMz5sFO5LaSB24AzwL9LS1SRIM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=lYy210J4wAdrB2yLJvtCtKejQjQ80diGsETt1cajhixscF5ZqTcXuoShT7USrNfG/ r1bbBZHJEr3IHLTZBBUHPPRMtqG1AlWqenynvulBGjqbyZ9+3+cIfFZjEiv1MbpuEv sfxXH+AASE4cyUtysbT75sWfZRFt15Ik5Ca0jtYo= Date: Wed, 29 Sep 2021 09:13:01 +0200 From: Greg Kroah-Hartman To: Mauro Carvalho Chehab Cc: Linux Doc Mailing List , Jonathan Corbet , linux-kernel@vger.kernel.org Subject: Re: [PATCH] scripts: get_abi.pl: make undefined search more deterministic Message-ID: References: <5dc55fd42e632a24a48f95212aa6c6bc4b2d11fd.1632865873.git.mchehab+huawei@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5dc55fd42e632a24a48f95212aa6c6bc4b2d11fd.1632865873.git.mchehab+huawei@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 28, 2021 at 11:51:32PM +0200, Mauro Carvalho Chehab wrote: > Sort keys on hashes during undefined search, in order to > make the script more deterministic. > > Signed-off-by: Mauro Carvalho Chehab > --- > scripts/get_abi.pl | 8 +++++--- > 1 file changed, 5 insertions(+), 3 deletions(-) > > diff --git a/scripts/get_abi.pl b/scripts/get_abi.pl > index 841d889747c0..d32dcd7cca5d 100755 > --- a/scripts/get_abi.pl > +++ b/scripts/get_abi.pl > @@ -775,6 +775,8 @@ sub check_undefined_symbols { > my $next_i = 0; > my $start_time = times; > > + @files = sort @files; > + > my $last_time = $start_time; > > # When either debug or hint is enabled, there's no sense showing > @@ -909,16 +911,16 @@ sub undefined_symbols { > } > } > # Compile regexes > - foreach my $l (keys %leaf) { > + foreach my $l (sort keys %leaf) { > my @expr; > - foreach my $w(split /\xac/, $leaf{$l}->{what}) { > + foreach my $w(sort split /\xac/, $leaf{$l}->{what}) { > push @expr, qr /^$w$/; > } > $leaf{$l}->{expr} = \@expr; > } > > # Take links into account > - foreach my $link (keys %aliases) { > + foreach my $link (sort keys %aliases) { > my $abs_file = $aliases{$link}; > graph_add_link($abs_file, $link); > } > -- > 2.31.1 > Much better, now we are at a reproducable 10 seconds on my large box. Thanks for all the work on this, now to go and start adding the missing documentation :) greg k-h