Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp6251974imm; Sat, 19 May 2018 22:13:58 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoa4eYR+/iuulBiYA9K+83v92Gt/XOAK8KRrwGcUVTDrVujgZ1Z7p1rJWXawhQfrAgxwjIs X-Received: by 2002:a62:ec6:: with SMTP id 67-v6mr15366327pfo.36.1526793238848; Sat, 19 May 2018 22:13:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526793238; cv=none; d=google.com; s=arc-20160816; b=BLEs2ABWQUP01/3WF5rZCYtX/yE8djaBMNVSLc1xBb7xfemBC+mvIty+xYEkPNMXgT 0tFaAj4ZCMPITixeKr42i8M5MhdSyNPa3W1aSIA6QOlh/tm2h3RY6HpRf4DYzwycHQAb 1wS0jZcukN9Axz3WjgLOZ75bokcmJpQNT/PiPAKctcKhuneqwjOa2RBO6a1bYmUuVVZG b3W4Xq1yQbLov0e5BhkcibRGKZWYH3S1+pAxo+P87oksSRSLRaMeRryvwRaZ48tf+eA4 dmnvmOpxOuyV6h7lfm9XVTXXAeWLkXslEyqENCrtRi6FGkG4KmZzGD/Wc+ZZejH8I91H gbpw== 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=sBE4j7AFxxHM/1CQrryNgOfwe8vUtgMKM+RtUEaXXL8=; b=eVamukYki6SuBIUpb+4bYjNV957K5JNhqIFHEcuoxiBvle4tU5EMi9Z0KPFTWLqWXG iNoI7v9jgjDO7iUP2KTRumdb8czs63IvIb4/cYD7rec5oMiZ4WR41eimtdmWIQ4rXOqU 7NCiw7s6Rm4COBXjymviDZ+igAG1kjL6Yj3RPSFRHGX0j0+mvWh10n2J9JWVbazmAwvl wu0+Md6Oa97pObmIJywUfV0l9YIRoUBDnulF/Y9AegTZ8oFdhFs6Lrir//lra81pssVz ogjnrgB4qUXQyJWqa/FmZTOjmmNvxttCC+w3HFqelHRF5mVRzDLMEwJo+ddUF1bHW8uv Kxgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=K9jVtOug; 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 t5-v6si11415306ply.598.2018.05.19.22.13.16; Sat, 19 May 2018 22:13: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=K9jVtOug; 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 S1750932AbeETFNJ (ORCPT + 99 others); Sun, 20 May 2018 01:13:09 -0400 Received: from mail-ot0-f194.google.com ([74.125.82.194]:44588 "EHLO mail-ot0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750800AbeETFNH (ORCPT ); Sun, 20 May 2018 01:13:07 -0400 Received: by mail-ot0-f194.google.com with SMTP id g7-v6so13482838otj.11; Sat, 19 May 2018 22:13:06 -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=sBE4j7AFxxHM/1CQrryNgOfwe8vUtgMKM+RtUEaXXL8=; b=K9jVtOugJvmC3tBCv1Drp3/scJwpjTW8hffdDDUkoOSYBSKgDdMUfXmgu/G89zkGbk 1gI5jn/SlKAZVOecXo4XsgMlrA6Q/xrO3Yt1PSLu5fJZiuZGGjOMdk8Y5ASxeIaSjEub s9dQ3AQ7DNKrsgdcrgaYtiQRF8ZBfXmCKJNcm7c/YO0Gx6oKMQMIQMLoRdYfB9HOmWID 4CNbbnI4nytJahejEmNAN8pqHSuyHxTmOEoDTeMz0wsdv9jU4x/l5iO15SkhJph4B09F 05KJ7Qy9ukp5RAuXbXiH/s5mekbOZC/D1NxoI2pfhFIl+haezopry2p3RuOnSC/PToXt 0T7Q== 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=sBE4j7AFxxHM/1CQrryNgOfwe8vUtgMKM+RtUEaXXL8=; b=M82jqwK4C4GMBr28uhx/tyQPcIMDH2HC4egiYL/tlEK4xMjs4eBwOH/zt7XSgcGsfu iIwsc/9svmELv3qSTgxsRX0L+0uh50SrX1yJFDYbYnERMI88cZeuKfPuxXTXCVrv0QYP ICzekY80ZIunywURcNpk5NNKUbhWSonbUeHYCu6rLh5Bm8L2qlRdJafHeA9f7h/4XjSY RV/D6fGlSCp0hU5baqQhGsP/R0w4XWN9cH2098pYuo6fKxRYhJyWDxllFWHVlxan8xw+ g4/97/XFe/Cyr8Qyfh5NLpk4X0Zgj8+N7F2fUTV6sDT4+n8FMX/su1wXOu8kTUmVAdAd y9Zg== X-Gm-Message-State: ALKqPwfQxtHtEifJ3vh6ZRKquY9q88aJ51J4voQooldSHrXmLUENo024 D9tNpxXyJ6dqL7BDYFB0jPE4ECh40TxDUdDgS0Q= X-Received: by 2002:a9d:5e0b:: with SMTP id d11-v6mr9738882oti.148.1526793186405; Sat, 19 May 2018 22:13:06 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a9d:185:0:0:0:0:0 with HTTP; Sat, 19 May 2018 22:13:06 -0700 (PDT) In-Reply-To: References: <3d9be2f2-3fbe-411b-8529-0e0847f01346@infradead.org> <1378afb3-2b0e-da7a-5721-a8fa727e4382@infradead.org> From: Ulf Magnusson Date: Sun, 20 May 2018 07:13:06 +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:47 AM, 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. :) > > Thanks, > Ulf Need to make that "_DEBUG\b" to avoid getting a bunch of hits in prompts though. Searching the name separately from the prompt might give nicer behavior when regexes are involved. People might not expect e.g. 'debug.*info' to match for AB8500_DEBUG either, but it would, because the prompt has "info" in it. OTOH, for searches like that, you'd usually just type "debug info", and then narrow it down with more words. Any opinions? Cheers, Ulf