Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp6237101imm; Sat, 19 May 2018 21:48:15 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqe++ZqZwM4gnc3MckTZPmO/qGsGto07bOUgFnAxIpqUaJySRbUGX/iAPx+MHvRhZ+ny+WD X-Received: by 2002:a62:428f:: with SMTP id h15-v6mr15371646pfd.156.1526791695199; Sat, 19 May 2018 21:48:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526791695; cv=none; d=google.com; s=arc-20160816; b=AqTq0bTiQ4MhSernf0zJgNADma3Rx1aJYir/HtmBwTRvLHNQMmECa3AjKS0iz3bzq0 5q2mt/gLbNiydU7Ew0zpG/oLUFuU7ujR5TMmgXzGLusO1o3zBPsKo15rfUeFD2t48YMQ phUumI66XniwXhlS+NcfHOEZNnCL6giN4nWZ7Eo7Se/ek5zp29nCexCrXOAAry8S0Uaw edCSAtlQvVyHeX0Pw/h5z4H+d9h6kj0hNwZOK+SMzUHPN8vVl8XqAFmMdcBsT8tGUuyb m7LW5NhOPb7htAVOI8Mby3Drbe5jV9TH8BqLBAA29XoJ+kgEYLeXJGGxQRP4dSjYQgvD jCYg== 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 :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=k2IYNwGWVoh0fc6r5eX0qmOdbyoTNJiMocBU7w7++4I=; b=CFJe/l36lmXscxKHWsEI84Vc5fGwMGw8Q2NbrcxRtKUe6HPDW0Ot61qACP9qRykfxn lLNxUPbg8RbM0YyAVPvBw69WBTNy1IIvSWaeoXPdkmes19aAmx+0Mch5zju8qcikYl2+ yQdBVb6mme/aST4vwDD2rQpyE+5l9dWnvTkAKOPuAXEPvNxqMj699w4MLRvPlmsPoKb0 8tagurn06s7ejHV+ld3PRWzpaemhGWNCeoxTwgmEGUf4Cr3w+Na7sU4l6AIxWo1YwCLZ FUCkmX8X0/4HPapvT/BjqpHdXZpMh7IL1siXLORA98qbDzZlDtW4rLCLvTACvQQLZcKy 6tBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=c+RCOa7W; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e18-v6si9023214pgt.3.2018.05.19.21.47.34; Sat, 19 May 2018 21:48:15 -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=@gmail.com header.s=20161025 header.b=c+RCOa7W; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751026AbeETEr1 (ORCPT + 99 others); Sun, 20 May 2018 00:47:27 -0400 Received: from mail-ot0-f193.google.com ([74.125.82.193]:34191 "EHLO mail-ot0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750742AbeETErZ (ORCPT ); Sun, 20 May 2018 00:47:25 -0400 Received: by mail-ot0-f193.google.com with SMTP id i5-v6so13494364otf.1; Sat, 19 May 2018 21:47:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=k2IYNwGWVoh0fc6r5eX0qmOdbyoTNJiMocBU7w7++4I=; b=c+RCOa7WBZNbcvU4fvd4y/NNy6WNwro11rvdD4gTCq1pKFvB4Qm38TTcm74f+9rXJ2 HKinA0nzBv7Goh27d0kYkAn9R2vy9NrXuLFmr+QPF0Oxj5tMrTaQO3IjFwKTThMq24bo d9lNHvE8yw2sUIh7AChwrNywwPTrAW34+jpVokuaQNBGUoSDzoBKHAwj/RsbUudlLhau 7ihnhD7N7TFdqLARLQFZGUE+3ISlfPosi/O/vubyOZe21TmVl/57+CitpHqyxpvmj2Hb xWbYjlS/a+4rUxuDCsg5dchKB+sw1+17vOqWVY/iuCUFl3qVG1Noxk2qtpPXUSxym1qu VKxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=k2IYNwGWVoh0fc6r5eX0qmOdbyoTNJiMocBU7w7++4I=; b=ptwtI2IXk+wszJFokHCWQznMOtUhFodhCqgLhe28B5KxWgxX5g8zmG8g3zuE+s+i5t l/6cuB93fVWgK2PSYGSyjCEZHnNjmbnqGSKsrnAv+9qM6l/aQK0vLQf6dZXun5M3i6p2 uCicfTxtm7QEo2qPnePGnyhBA4+mA0i8NMWF+cug/GzO9GFumbYHCkpjX7qPgrgFI6Rp EUwZeD55oj0Ioek9W7fUhQF7igue8RWc5vyLCq8Ba/vQE+aZJ5GRSsuz8qcKUnI+Q3ze MxgNyZvWVLei8nwD0jRkCed6e6pH+eAtKcHiR5pNdx6RzLNUZU6oYokWwwtLlnZNZfX0 vn1w== X-Gm-Message-State: ALKqPwdCB8+i04oGzyZEjyJLfpo5yjubDGe6Ek9fxOQKrIstyu4TbsRU DhWhMJV7yRscOW30Lt/ZHYvY1m7I9DihLMdAzgE= X-Received: by 2002:a9d:3f0a:: with SMTP id m10-v6mr9860667otc.157.1526791644847; Sat, 19 May 2018 21:47:24 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a9d:185:0:0:0:0:0 with HTTP; Sat, 19 May 2018 21:47:24 -0700 (PDT) In-Reply-To: <1378afb3-2b0e-da7a-5721-a8fa727e4382@infradead.org> References: <3d9be2f2-3fbe-411b-8529-0e0847f01346@infradead.org> <1378afb3-2b0e-da7a-5721-a8fa727e4382@infradead.org> From: Ulf Magnusson Date: Sun, 20 May 2018 06:47:24 +0200 Message-ID: Subject: Re: [ANNOUNCE] Kconfiglib menuconfig implementation To: Randy Dunlap Cc: Linux Kbuild mailing list , Linux Kernel Mailing List 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 Sun, May 20, 2018 at 6:03 AM, Randy Dunlap wrote: > On 05/19/2018 08:45 PM, Randy Dunlap wrote: >> On 05/08/2018 09:59 AM, Ulf Magnusson wrote: >>> Hello, >>> >>> I've added incremental search for jumping directly to a symbol now. >>> Regular expressions are supported as well. >>> >>> Some screenshots below: >>> >>> https://raw.githubusercontent.com/ulfalizer/Kconfiglib/screenshots/screenshots/ss10.png >>> https://raw.githubusercontent.com/ulfalizer/Kconfiglib/screenshots/screenshots/ss11.png >>> https://raw.githubusercontent.com/ulfalizer/Kconfiglib/screenshots/screenshots/ss13.png >>> >>> The last screenshot shows how things might look after you jump to a >>> symbol. The jumped-to symbol wasn't visible in this case, so show-all >>> mode was turned on automatically. >> >> Hi Ulf, >> >> >> >> Hm, OK, I used the trick that you supplied a few weeks ago and I have the UI now. >> >> ARCH=x86 SRCARCH=x86 KERNELVERSION=`make kernelversion` \ >> Kconfiglib/menuconfig.py >> >> so yes, a real Makefile target would be nice. :) > > I want to see all kconfig symbols that end with "_DEBUG" (so excluding > _DEBUGFS). Using: > > /.*_DEBUG$ > > shows me 6 symbols: > ATH9K_COMMON_DEBUG > DVB_B2C2_FLEXCOP_DEBUG > HAVE_DMA_API_DEBUG > IP_DCCP_TFRC_DEBUG > NFS_DEBUG > PM_SLEEP_DEBUG > > so where are the other (approx.) 176? > see: > $ find . -name Kconfig\* | xargs grep "config.*_DEBUG$" | grep -v \.orig | wc > 182 364 9179 > > > Anyway, something for you to look at. :) > > -- > ~Randy It's related to how the search is done. Searching for "DEBUG\b" (word boundary) instead will find all of them. A string is generated for each symbol. For symbols with prompts, this string includes the prompt as well, so you get e.g. AB8500_DEBUG "Enable debug info via debugfs" Those strings are then searched/displayed. What you got with your search was all symbols whose names end in "_DEBUG" that don't have a prompt. The nice thing about searching both the name and the prompt is that e.g. "debugfs ab8500" will find the symbol above. I'm also planning to add menus to the search, by generating 'menu: "menu title"' strings for them. It's a bit awkward/unintuitive that what you tried doesn't work though. Maybe the symbol name could be searched separately from the prompt, though I'd be a bit sad to abandon the super simple single-string-per-entry implementation approach. :) Thanks, Ulf