Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3912892ybi; Mon, 29 Jul 2019 15:11:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqwWNxt1PeoSawv1umw7Ray5xFf/1M9Tdfr0JaXFc5vcVAey6QinXxGMfEk2rcFbmP4EOmox X-Received: by 2002:a17:902:d917:: with SMTP id c23mr112200335plz.248.1564438316795; Mon, 29 Jul 2019 15:11:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564438316; cv=none; d=google.com; s=arc-20160816; b=zZRxLcjRtOKoOM6VLF89BmXKShXyz+vWE9ZOTF+GgMWrrbbRlHQc0eIGu+xNqGCOVO 1yQWTLkeZHuN2Nl+k/VFjrvM4OaQWk7DgeZaAJSuyk02TJOtJkXzS5ljZWbafXpzlF61 eKi4mpVT6g3Ld6JCn7A2c1P9NVwg5zIMKkwifI/zNLaqvYgeCG5U2yIerpLOEG2za92Q 9fZCqTjVe2iGbRVtv1FrHZETWHWc+am1UVAe5IyDJoK4D8rAGoyo9rn0LmCmLBVIQu8M zQrmwgvCglIR7gDDDqPY+zY7rzTT+7fbyOz+JlZ8fPv8LwwzNc8aADDRJlCPi9S3HGNF VXCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=XDpc8dttTfICfu+NA2rP7d7EK6Xfd1t48iUvlABkY5c=; b=NX/Mo39Z7ge/V7sJPTHWNqH08ruJG8+YoP/sM5SE7QbhBmurDs3ZoiSXybQV/WMriO zbiWA5SN11QgIc2XcXInnSSGI7XyVfjs8H0ZwJknMCjmfeAmdQGQ5vcVzRbXs8GuHhV2 YA+6cD6dBBjfShtG4NyH/UteZhEIaB6Q1J/RwEMeNTNT2obkFpZYRsU6dRKnxznJZary U8W71/tM1kp46blqHyU0kYjJr08Ql7DwBJ1GcOdy2E6F4AjtPulL3np3oQMNhbIwbdQX cyGQccytqFqtNxcyi97W34NqHXpwa7e5smkRai6aXm4nEFoedrBUq/JMtvmTiarS3kk2 sHfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="E6X9hG/q"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j64si32465832pge.556.2019.07.29.15.11.40; Mon, 29 Jul 2019 15:11:56 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="E6X9hG/q"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727608AbfG2RRu (ORCPT + 99 others); Mon, 29 Jul 2019 13:17:50 -0400 Received: from mail-pl1-f196.google.com ([209.85.214.196]:40838 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727481AbfG2RRt (ORCPT ); Mon, 29 Jul 2019 13:17:49 -0400 Received: by mail-pl1-f196.google.com with SMTP id a93so27712477pla.7 for ; Mon, 29 Jul 2019 10:17:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=XDpc8dttTfICfu+NA2rP7d7EK6Xfd1t48iUvlABkY5c=; b=E6X9hG/qC+ZFNxAoh/s2Pax+XfWjHa0cGxosOaBllMvG1GoZ+bG7ht/P+SsHlvVM2i iAKE8UKAG1/U41GXIS9cayYInLH7IhdLfc9d2fM77LE/9ZjF5EAp0NTs1Umd/hYBB8aK ZPWUu/MSUNU+qmL7DyG4FegdgaQ4lSbnnfvmIHoynHJTgZfshP1otKFBvsI9Uw0nDVGF u2gAJ5e8o+Q2z+6XMKTj0WNKR210qYVB2RM8HcZNBnh8Aci3EM3fKgJDZtv7nH7yjLdc a5EsADvAaOmrrvElKx5wG0aHrb7xop8JK3ZevyugGcR3LOoQb7hb6N0oIP1G1cJjeoVZ cQtQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=XDpc8dttTfICfu+NA2rP7d7EK6Xfd1t48iUvlABkY5c=; b=OMGovCymPBtiTNUojnSbqfyzrUNMmSZj+O/QgqmTiBlmbp5rC4bdFdm9DiuDx04im2 k3pJHF1VkaT3WMpirVFyobE4KguxhyyEzcF/wBsgOikI3gwayinLPQEmMEdqtmPialPa oibUHHLA86oNtY4P0i2Plir4izezzGo0FBM7aPPQDptHrBhTaEuW8nkPkwxvcCn/CHxp TXat9Ae637/rZi+hVzsG+ehRF7YbOsJFX2lxntqLy5l2AZulkBw1CW6RYzyeGd/lc7xF ZKIte2ffFJk8vTu8FOwBA3pLvIbOmFfW9EsX2sYDv02HMLpXaUzjI/6C/Js6PSSNkc6A ygcg== X-Gm-Message-State: APjAAAUORT2BUK/X8Rf3slwG0+Z5CXUkxO5IyXMyhxg6WsrySKY6kTBv 8oZGDdpnlenenGNVc/PBovj5JYEfeWsrU3S9mI4fpZJV0ZQ= X-Received: by 2002:a17:902:b944:: with SMTP id h4mr34783730pls.179.1564420668750; Mon, 29 Jul 2019 10:17:48 -0700 (PDT) MIME-Version: 1.0 References: <20190727030110.17208-1-yamada.masahiro@socionext.com> In-Reply-To: <20190727030110.17208-1-yamada.masahiro@socionext.com> From: Nick Desaulniers Date: Mon, 29 Jul 2019 10:17:36 -0700 Message-ID: Subject: Re: [PATCH] gen_compile_commands: lower the entry count threshold To: Masahiro Yamada Cc: Linux Kbuild mailing list , Tom Roeder , LKML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 26, 2019 at 8:01 PM Masahiro Yamada wrote: > > Running gen_compile_commands.py after building with allnoconfig > gave this: > > $ ./scripts/gen_compile_commands.py > WARNING: Found 449 entries. Have you compiled the kernel? > > Signed-off-by: Masahiro Yamada This potentially may need to go lower for other arch's allnoconfig. I'm guessing you tested x86_64? Acked-by: Nick Desaulniers > --- > > scripts/gen_compile_commands.py | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/scripts/gen_compile_commands.py b/scripts/gen_compile_commands.py > index 7915823b92a5..c458696ef3a7 100755 > --- a/scripts/gen_compile_commands.py > +++ b/scripts/gen_compile_commands.py > @@ -21,9 +21,9 @@ _LINE_PATTERN = r'^cmd_[^ ]*\.o := (.* )([^ ]*\.c)$' > _VALID_LOG_LEVELS = ['DEBUG', 'INFO', 'WARNING', 'ERROR', 'CRITICAL'] > > # A kernel build generally has over 2000 entries in its compile_commands.json > -# database. If this code finds 500 or fewer, then warn the user that they might > +# database. If this code finds 300 or fewer, then warn the user that they might > # not have all the .cmd files, and they might need to compile the kernel. > -_LOW_COUNT_THRESHOLD = 500 > +_LOW_COUNT_THRESHOLD = 300 > > > def parse_arguments(): > -- > 2.17.1 > -- Thanks, ~Nick Desaulniers