Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp7167025imm; Sun, 20 May 2018 20:34:08 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpOEiYz3K7LmqzI8qP1F8Iyf7vw6pq6vQhep2E2rlHnawD6uIoWCrSc8HK2f1zGdhxtmnSe X-Received: by 2002:a17:902:ab93:: with SMTP id f19-v6mr19144327plr.392.1526873648708; Sun, 20 May 2018 20:34:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526873648; cv=none; d=google.com; s=arc-20160816; b=XyilSRHz95vnzJSZMkesrTHzfj4vKZVf83rF5U2M8pCmBHBxNqUkQj+UpDq6wbl7Oa 332i5Np2hV7vDmEGnNj0lbtoYxtgQoJOiyw4dqKD1jXKlpSsVLSrXVLBIxQrXiqBPgAY 4+HzMYnjL7wlSnn1F4AteLM2hwOcAlCggL1TO/5oB93Iqvvn5854iqmcdfTMSYj9WM/w pOuwkJr6JstxdEM5zuxPVGKP6nPtay7PhyNlsJpoCq1P8SmEtltDOW0YG2pdyMhmjHZD D7oKltGOPMmVNKEcGrO0EIj6xa0A/8o+TfWwVTyhhrJ+tSDmdhWcCbycoOXMUW4SI4LE DC0A== 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=UexRVXdAz4xYlcslgw+ct8crXHzNemlfzqL+dSiC5Ko=; b=YNx4WfQtQoATYu5j8U62znY6+tLSVK4bhJdVT6BW2+3tTd7ouaHh9g+hOp1R9Be33s qhP3bUlXoGtXHjY4iTQ4gaK8tDkP+1sjL+8ra2biz5WCmJwUPMRDK/+4yAocHrbmmPMa +wTGBMzc8PcsLuKMmK7JoyuVfnZlL19GkFc1SUvrdqaeeJbUMgj6i0iC1MVRMMuL5wwp YWLwtTc1vSjxhqPQ4FWpCAhBZcbKrkSJr92wfyP4hrLlygXLFuiTejR1S5DMQym2HlDx yckmpHc6EZSbG4A+Q0d0jQByPg9/EVCJBpSWtzGjJff2iKeW/trObnL+isjzhM+WgCaI ULzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=W4w1Men/; 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 u2-v6si10298962pgv.246.2018.05.20.20.33.43; Sun, 20 May 2018 20:34:08 -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=W4w1Men/; 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 S1752541AbeEUDdf (ORCPT + 99 others); Sun, 20 May 2018 23:33:35 -0400 Received: from mail-oi0-f66.google.com ([209.85.218.66]:42485 "EHLO mail-oi0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751524AbeEUDdd (ORCPT ); Sun, 20 May 2018 23:33:33 -0400 Received: by mail-oi0-f66.google.com with SMTP id t27-v6so11817424oij.9; Sun, 20 May 2018 20:33:32 -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=UexRVXdAz4xYlcslgw+ct8crXHzNemlfzqL+dSiC5Ko=; b=W4w1Men/uKmLyG8JpifVhMTzPXRFqH8pC1q2QlBApTqf8vhWV1d7aVgQjwsI9c+VfH 0cmBW6TgM2R8694N2soLHNvGnLqH4Vemcr5k9alUIX9DnvfAyHeBBli1J7RNw4Id+Wc5 UeEV8a1CbEWBb7jcWThZhyCly8S8u1Wg7P8Djn1CkfKHpiCqgbpnBFqcXMVCZmQr8zNF /MDAdibSk6a/Szxy6Hcb09ek1MlgnwMttUPKonajKbwt+M67lBfYsHl67b7aJKOFFIYN TWSUcLtwgouy6mqHVLHDSUoF5dAIP9AoTqdq8fIDmDg/Maci+dT94yhOZnnW7rRi1Uk7 CnwQ== 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=UexRVXdAz4xYlcslgw+ct8crXHzNemlfzqL+dSiC5Ko=; b=hHbFKiTPrwqwOsT1lWwufuSH8vfqcNYowJ/S/b6eNCsxdJCo6URA6Fmt0WQ8SZdDVr HWirjRaQBniDjLGXTUyJmXSAXhQuwFUm4nf+ByjO2A349CYlvuKKaabXa4gwVLFTZxO0 ZmNzEanT1Yvlki75TAuSs0TNFEalEFQ6fRbLLb5o3nIGYH36Yv3w6M8rQ5SwMV2U9zVw xRZTpIpGFQ8z3DjPsGVqubt0cFdC3GDPZzBZaM7n4H+5pOJXbdCSAVbhy99pmtwODBlk TOy8/U2D3HBDA+DEaUF1dKxUhK1L07e+NuAmN8kA6bx54EcCE4qRXEwqkXeNbm9HP5Sa R6dw== X-Gm-Message-State: ALKqPwd4RBia6ku2XWLyUXkR53gn3RAhotwb+AKSSdZg80Y5enmfM/wq mDE7/O93T1RfBFRTRhTZtn+m4r5jc6/RINNpgBVpbD2n X-Received: by 2002:aca:a906:: with SMTP id s6-v6mr11102818oie.101.1526873612558; Sun, 20 May 2018 20:33:32 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a9d:185:0:0:0:0:0 with HTTP; Sun, 20 May 2018 20:33:31 -0700 (PDT) In-Reply-To: <4a4b12fc-ab54-20c4-7aa7-a83c4faecf25@infradead.org> References: <3d9be2f2-3fbe-411b-8529-0e0847f01346@infradead.org> <1378afb3-2b0e-da7a-5721-a8fa727e4382@infradead.org> <4a4b12fc-ab54-20c4-7aa7-a83c4faecf25@infradead.org> From: Ulf Magnusson Date: Mon, 21 May 2018 05:33:31 +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 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. > 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. > > -- > ~Randy Cheers, Ulf