Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp19325imm; Fri, 25 May 2018 15:08:20 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrTJgZLwm2QgrlHCTLk7+5UUJgJOa11gmxvAPZE+S8SzQwUN2JUsRfSfCoAroJkYXzUXiai X-Received: by 2002:a17:902:8541:: with SMTP id d1-v6mr4430061plo.106.1527286100416; Fri, 25 May 2018 15:08:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527286100; cv=none; d=google.com; s=arc-20160816; b=rVlC1gXAOHhyvb+WvStD37pAsZXagO62Bxoq6Eje5CHOBwEUqXmk8SLUQNUXzpSt8t mc/uAZqGnW9F8snRyIl3J54/cKjilR2cuw0tpIMjvV3gPb3dIYtoAp2/VyX2IneV8JhY x6yxEHRwmH5sRDN7kc51Txv4c5/Wly7wm4oOk0Er4rwMXzQXoPJZS1FN86rEFwzubWcV CuheEEsm/vIJa43DAIBD7BPze4cGy57xyQnCPeYsYs7zXL3893259Wn3jCE5yK7roTJw 1shEJLbc9k6C7v5NaXFHhgy9rZXwTKZGYwNCJAvZ02dMXPjnf++UDSNHcgQ0MwR8b7yE EXhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=3wd8BcEMl/d+jxICAtyg6EpYxkyg8biP37YdWJohzog=; b=fv/pQQ1T9jxRlBfKCO5+SA7RkxR5xf0I7nG6+upScYf94UgNBvFOp7QayxreHN4bDv jLyjuj5HMY3YhCzMVbXnzHqQzOGiIO/tiFvUqiIH4UWOleqH2IL94c2jaonPPBa6QiAM KSNRz7QsWXhWvgZhaKXtioKmzy5JrjlSiO/us48FJ02hjG57LDPODgbWE+tTv9t+cE0D i0weSaL9MMwq5cx1qDSlNzoRczHxWyRQD2nhVgql4mSEsQsVdlzT/h5B0WPt1qOE7gVO UhstWacgVyXvH6GY2TSZtdyVUBdeVwgR4XrVdkauMVGz3HAcLdjF3Gp1Oj43yGFxTyqf +n+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=CyY06nzG; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t196-v6si13161250pgc.648.2018.05.25.15.08.05; Fri, 25 May 2018 15:08:20 -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=fail header.i=@infradead.org header.s=merlin.20170209 header.b=CyY06nzG; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030774AbeEYWGO (ORCPT + 99 others); Fri, 25 May 2018 18:06:14 -0400 Received: from merlin.infradead.org ([205.233.59.134]:47924 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030616AbeEYWGM (ORCPT ); Fri, 25 May 2018 18:06:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=3wd8BcEMl/d+jxICAtyg6EpYxkyg8biP37YdWJohzog=; b=CyY06nzGjQ7y+6+VkTaL8aNR6p QsPsMDzaaIo5jH8ccZyi6gVdlp2e/KOTLQk9+/CDRnF3pPdIrXbpCamHy1r4SstXNcMxPEyh3cQwk w4BhQwX/WgrrOIeV+kuix0/KM9dDE08uuM7oA/30WmZ68UffCF6H2fJ0G3FSEL2vobLDdD+df353V dXBUXrZEMVwLHfT+zZjJHflzCGIIgzoQI80fLxc78ApWH3eyyakIx2Gi8Zwkvmjjna0E9tImYNlSd iWOXG5JRyDJ4ORRR5D86Blbh49CrxkLrgYRNiLaB7zhPil2byJrIaiF/oPZjzbMNmudOVL5Qcf3S5 m5c6K4Nw==; Received: from static-50-53-52-16.bvtn.or.frontiernet.net ([50.53.52.16] helo=midway.dunlab) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1fMKqh-0000mO-2a; Fri, 25 May 2018 22:06:11 +0000 Subject: Re: [ANNOUNCE] Kconfiglib menuconfig implementation To: Ulf Magnusson Cc: Linux Kbuild mailing list , Linux Kernel Mailing List 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: Randy Dunlap Message-ID: Date: Fri, 25 May 2018 15:06:07 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/22/2018 03:18 AM, Ulf Magnusson wrote: > 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? Hi Ulf, Nothing comes to mind just now. I'll let you know if I think of anything else. thanks, -- ~Randy