Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2717425ybt; Tue, 16 Jun 2020 13:13:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy9Np6c5MgiHqhukUepITcfyK/+KV3XzXxU7m7x14Bi4eS29LmexAh/+yxTloQGdh8oP5x6 X-Received: by 2002:a17:906:c155:: with SMTP id dp21mr4259805ejc.92.1592338415631; Tue, 16 Jun 2020 13:13:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592338415; cv=none; d=google.com; s=arc-20160816; b=fVN1wHSK4le8swvz/Segf7MGHWrQ8mP+0S/ouFcT7g4cNBwro976ohSsKTIRnjzaZg 5sd5aWFo6j8XYU5BhxXkzYyIBwbmNVKeSaoz/oQjmSXvnkxtaPajThftJ9eXWxc8rUbx Qbk3J4N1kfJg/sBqEnkVRmrKk0FDdLuQqe0vG5c42kZ+VDxJU74MhmzT6K4Sv1JKONNE McmfmsSFEG55pF/sxjIIr2m1Tzs24N9T1oeznD45AFW/kvFG+Itrq4xm3QkQ37IP1udP N45zGIVGC+vjidxkMET6RqeXlC1WJ9Odmxuj2mrzsB/PFaTob1FRZ+4RRK1/1cpyB6en uVVw== 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 :in-reply-to:references:mime-version:dkim-signature; bh=cVMWjFScpVollEOaNkFT8lSb179zymvf6bAuLU3nZ8g=; b=QdJ8b5J+rGm52/MBH0pBEQB/DrCk+8Kg/pkBtanEEqK7rb0497yGcvsdcrQlGHUVdM tgxiZQ0AQD6+Ia8J8T8sIr6XSIikXUcJwrXt7pMVAob8BIA+0fTLvHO0OJPK1l4HWbL2 /yBHQKm7lMDNBdIwgZvrx9Bgc/4MrgmhVrN3vzApScT4sOPxmmPw7D9zGp3a9O1TD1T2 9MJiaWie0lutdeSTorDQKc5Bjs0a1XgSrPRsG196l4F67tSuVBPOQBlTiAz5vAkoGSrD 8yaPzKv2VwBOJLuaLEuusi/Ezohd7cSGpVqHRLxEyKPczmtRIeY3eOLj1Q88EBMUnI/N umJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=F1NFK1Is; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id dn7si11167082edb.219.2020.06.16.13.13.12; Tue, 16 Jun 2020 13:13:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=F1NFK1Is; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1730998AbgFPUJZ (ORCPT + 99 others); Tue, 16 Jun 2020 16:09:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59014 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727962AbgFPUJY (ORCPT ); Tue, 16 Jun 2020 16:09:24 -0400 Received: from mail-vs1-xe42.google.com (mail-vs1-xe42.google.com [IPv6:2607:f8b0:4864:20::e42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B1FBAC061573 for ; Tue, 16 Jun 2020 13:09:24 -0700 (PDT) Received: by mail-vs1-xe42.google.com with SMTP id r11so30693vsj.5 for ; Tue, 16 Jun 2020 13:09:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=cVMWjFScpVollEOaNkFT8lSb179zymvf6bAuLU3nZ8g=; b=F1NFK1Isz0JIvcb9r87G9yspaDOOrupvCmuU/LAcJSn7u8WAmPr5qOibsWhJDSAbxP a3OFOdRsjDt2zI3ptL+pYtfB9xBHqQ1RomcjZJBHiFpqV62dqNSQeN2FOGXbOLTvpslr KCNa6gR+VdOLXF2ivweaOgfh0WnSXhr584BplLueb24vGG/nk7eyDGz3i5ki9iXSI1Zg xZbFe/s7r11uFZVsMNYZq2yn39WEI0gcZGvz1KdRR6uTNZ6mlayN+LdgQY5J+V/g/mjQ b0DqZJtwpP1nmW32d+jO9IpF0Efg54SkbLlgdjem9NxI8bUHZ1DE1hHii3bQPyE0J4BE fJFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=cVMWjFScpVollEOaNkFT8lSb179zymvf6bAuLU3nZ8g=; b=VIumRW9b/nmz99Fd8G5o53F1apIwXwEjneXUmeEAmJhGM/6wju7MSLeHt37q0UhwmI 8Xn7hMnqsfyreuxVU/wA80htCf3AEixVieb8jLSLa8XJ3niWbR6pkyp0ituR6rnmJrs9 n+vNjsW7j3SqSN4qPwoed0/APgOFwxss2ss5Lx7VDntnN6eNMTZ5NXyDT0CjOwBcpMqL Q6mITlaYAD5RQAa6jR0F9Z5Nq9SnSlkGQKL2dNZ/yy0mGi2e4A3rvzF+7M12myuO0h24 dOn0IrAWMDp0s9TaERJX2YxhnAKAf/O5fPp/3e8QFrrJD/NPJDqYG367XF4ACUB4m/N8 hvdg== X-Gm-Message-State: AOAM531xQO/y5zc67HLwOE7h7Vz7zLmVx/BQGi2rebQit+GxHlInz6cc QMGHSe+FC3J158j2NPCdjPRbjMIBNXYtSNwm4ak= X-Received: by 2002:a67:3211:: with SMTP id y17mr3218081vsy.56.1592338163782; Tue, 16 Jun 2020 13:09:23 -0700 (PDT) MIME-Version: 1.0 References: <20200613155738.2249399-1-jim.cromie@gmail.com> <20200613155738.2249399-20-jim.cromie@gmail.com> <20200616115727.GN31238@alley> In-Reply-To: <20200616115727.GN31238@alley> From: jim.cromie@gmail.com Date: Tue, 16 Jun 2020 14:08:57 -0600 Message-ID: Subject: Re: [PATCH v2 19/24] dyndbg: accept query terms like module:foo and file=bar To: Petr Mladek Cc: Jason Baron , LKML , akpm@linuxfoundation.org, Greg KH , Rasmus Villemoes 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 Tue, Jun 16, 2020 at 5:57 AM Petr Mladek wrote: > > On Sat 2020-06-13 09:57:33, Jim Cromie wrote: > > Current code expects "keyword" "arg" as 2 space separated words. > > Change to also accept "keyword:arg" and "keyword=arg" forms as well, > > and drop !(nwords%2) requirement. > > > > Then in rest of function, use new keyword,arg variables instead of > > word[i],word[i+1] > > I like the idea. But please allow only one form. IMHO, parameter=value > is a common way to pass values to commandline parameters. > I dont see a basis to prefer one over the other. we already now accept " file foo.c:func " that might argue for file=foo:func but file:foo:func is what youd expect reading left-to-right > Note that "keyword" and "arg" is strange naming, especially "arg". > I think keyword is clear in context. query_term is suitable, but no better. arg is pretty generic, without overloaded meaning like value ( like lvalue ? rvalue ?) almost as old as 'i', but generally a string (not an int) Is there an alternative you favor ? > Best Regards, > Petr