Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1387182imm; Tue, 22 May 2018 03:18:58 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpEoqvReZ+/ixazDQlEGCIbgbyVyZLC/7Y6XnhS8leaBKdUGKtpkiraeG1kMIXy+2f36CI7 X-Received: by 2002:a17:902:5481:: with SMTP id e1-v6mr23773941pli.137.1526984338290; Tue, 22 May 2018 03:18:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526984338; cv=none; d=google.com; s=arc-20160816; b=M6aR6WBYnfFrFmmwIVlvVUxZk1SZZqxsTIA2LtInjjEbdFfep+ADM/gI3mMP9osN3q ZLm0CSDuc8PvlMcGEp3ltcQ0444hULSVvUVwdKQebRMT9xRWPF0UefV8AuDh9LafJm8l 19ZOIgMUa5D+0bS0Ti3mF79k2el6UAfmh75z+vQ8LKKJE6dAW33sHJWfb3R7ooL0tWwp PPscYgi3Q2kZhE37GXIJ9QM1tVbBAmk3wM3vHaNkEKCPpLxWgUJuWT3UmIOSqnNkEb4d Vdtw4aXQBnhL5Mha8sLimkO4OB/25AYnKwjxkFfxTTXfr5sPyh58iAdzJ66SYivi4KHh TmUA== 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=ZvFfdJzJ4FqjT4+AYiqGLkkSpHAI00qDSRG25eN7f1o=; b=vfJv7Q83wbFWhGdte7wQkBfPrUayrPMGmZ/X2tldo70UDg00E+6FXmsk1Fd24V/m+K EvPLrCW33stCpkM18pZLOlGWwshE3uVWtfC/YTsu08r2odwbUeaZi9mnHog2EJLIHPIx pPUPstXa6UnVp+4RNUke/s37d8tsD55CJ9IyoxmYtmA1ILthcrlVCtVIoX2eBgEbrPMJ Ze5g88suIgWwvF5RDH3Hb+ICNFZaWsRN8uCw+k2LbTZhp2T1aqOTm/LujAGOkf7Kzxtp re94WZ2fgl2SkLsOTl7bKiUY9R9UFncaUe9Z4vsK6I6ez9goZnE6wIvqTpr/aCpEfT/E Xt8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=efRZG6o2; 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 p10-v6si15757382plk.295.2018.05.22.03.18.43; Tue, 22 May 2018 03:18:58 -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=efRZG6o2; 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 S1751349AbeEVKSY (ORCPT + 99 others); Tue, 22 May 2018 06:18:24 -0400 Received: from mail-ot0-f193.google.com ([74.125.82.193]:35652 "EHLO mail-ot0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751173AbeEVKSL (ORCPT ); Tue, 22 May 2018 06:18:11 -0400 Received: by mail-ot0-f193.google.com with SMTP id h8-v6so20320176otb.2; Tue, 22 May 2018 03:18:10 -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=ZvFfdJzJ4FqjT4+AYiqGLkkSpHAI00qDSRG25eN7f1o=; b=efRZG6o2JXc98yrJPz7p8uaQvG28vxtJX6vOxgLAihpT+wAqexgvwoDqF3ZYkv+HBT qFkswOvRw5By7txAdh3k9L5FJvgBX9QyXp/xDIqisR+0G6NDgy3fsxGVkLip05ETRMpT zcehvi2iSbRXzQzOoWPhYL70BZQLtfC3zx2+07nuhxejSmg0TRMQ6YkHzhQfkawcX8fz X9M4cvqdrEmWFkl35S+8r/PALomK241gtwYw5qS8OVkmPRjTOApeyerU22yy/brrCy58 9mKMBkL2LEIZmkKTY8DQR5vn1jjqZZ0CgYuMdiDXpW09jqkYup1BZhQga0je2c4BBavV wMlg== 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=ZvFfdJzJ4FqjT4+AYiqGLkkSpHAI00qDSRG25eN7f1o=; b=fhwYHXq8ugvEMeSTjf6trGGiJ/wy+FScCXBIDbtcj4K0IaH7S1ZxneerYDWxYbzrwj qlqFPwW+HxoubVE9WtkjRbi3bEXAVy1PjudczhjgmxAg2Fxq+Try3HQY9v5nmrORzBJs KP5Zsq4Vi0HQItgfb70tATKwCs3otGbGcjs53bc1yKYOzLYIgk3pP4ixl6/m85lXhYdk DkjY1no9DRGQXY0VPYId6pf9h1omuT12ix4m107nDY7FMqncVlb9Q0KDf+Jtvjs93dQC fnCLItm3GytH07mo8Ugp0KpmhNvS7k0cva5VdpQEaxC3d7P9+6kTaxLCaiXIOEOKe8F2 DgMw== X-Gm-Message-State: ALKqPwc7KCvtONsue24o+VD8vzz+mB7PRcMdiLMa+shiFMGRKa/NB/SA xddeU1OgdkGjvBbeBywW1tvfNj4OBr1d+2N8W6U= X-Received: by 2002:a9d:3f0a:: with SMTP id m10-v6mr14935709otc.157.1526984290229; Tue, 22 May 2018 03:18:10 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a9d:185:0:0:0:0:0 with HTTP; Tue, 22 May 2018 03:18:09 -0700 (PDT) In-Reply-To: <4310659d-e36f-63d3-88b3-e1c5235679b2@infradead.org> References: <3d9be2f2-3fbe-411b-8529-0e0847f01346@infradead.org> <1378afb3-2b0e-da7a-5721-a8fa727e4382@infradead.org> <4a4b12fc-ab54-20c4-7aa7-a83c4faecf25@infradead.org> <4310659d-e36f-63d3-88b3-e1c5235679b2@infradead.org> From: Ulf Magnusson Date: Tue, 22 May 2018 12:18:09 +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 Mon, May 21, 2018 at 5:47 AM, Randy Dunlap wrote: > On 05/20/2018 08:33 PM, Ulf Magnusson wrote: >> On Mon, May 21, 2018 at 4:45 AM, Randy Dunlap wrote: >>> On 05/19/2018 09:47 PM, Ulf Magnusson wrote: >>>> 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. :) >>> >>> Hi Ulf, >>> >>> What else are you planning to do with /(search)? >> >> Here's the stuff I've thought of so far: >> >> - Display invisible symbols in red (to match show-all mode) >> >> - Search prompts of menus and comments as well >> >> - Have [F1] show the help display without canceling the search, >> so you can quickly scan through a bunch of symbols >> >> Maybe you could get fancy with stuff like finding symbols that are >> related to other symbols in particular ways too... >> >>> /syscall lists 20 or so symbols. It would be nice if each one of those >>> showed its current setting [y,n,maybe^Wm]. >> >> Nice idea. I added it: >> https://github.com/ulfalizer/Kconfiglib/commit/3161affaa5bb8350a39bfd305c56171a25b02151 >> >> Works for strings/int/hex too. > > Thanks. > >>> I like Toggle show-all mode. When I use xconfig, I usually turn on most >>> of its options, including one like that. >> >> IIRC, xconfig doesn't make it very clear which symbols are invisible >> in show-all mode. That's why I made them red. > > Yes, that's helpful. > > > -- > ~Randy Hello, I've added a mode that lists the names of all symbols in the menu now as well, toggled with 'c' ('n' was taken :). Any other features you miss from xconfig? Other suggestions? Cheers, Ulf