Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp1821680pxb; Fri, 10 Sep 2021 15:06:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwasRv7M7e4/zM21VAKBOk9XvxfMaePbbmH9g5mJSUt7uaPnIA9vuYi4dBnMvLuxOQOjV3r X-Received: by 2002:a5e:8349:: with SMTP id y9mr8557713iom.34.1631311575431; Fri, 10 Sep 2021 15:06:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631311575; cv=none; d=google.com; s=arc-20160816; b=vIKXxoHED1v4MYqjDFyj9Y1Pi3XVet6rqON31mZ2jxjuDQHRHkWsQYlQBUHqVgOYxy CaRIu2umr7+qXYYHwENTPMiz4eKrhLG9ouh/ilWzaz/61BtI8KzynTcyH/0S/Ny7/FaS QIRI51564nFMqvoV/iMr7bl2tlrCQk7i4dQkWoaiN1XW1qXTHVdM/mYNHZ2Fx1zYiyAF DqncN7SMHa8uVJUMO9I2Rui3Lc16TthdrfzT7gjPkPltaAWrtc48NqwwEd2GH49vVOYx t2gi2pycFyEkWsd3ZoR/axf0pspGKjbNYylPXejJXocMJq5m4SZR2IVr7V0P4831sg+3 ly2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=dcqU9ZKZN47g77fb/rE27/hZjysW8Rw23gLua/TqJ3g=; b=tH2InU6Yw+zukfgyN5p/l0qVfocdrXaoUSxHwTyBVftJrtzaLoivcO1MRv/7W9yAmf eRyinzuzm2Jh3zXd8aioQtCnVOnvXnupZ6PG2J6YHzeX/H3ECruh15PeKwLh6+Qy//V3 SXMOKgPwETRrbzVSiqAY/ow7daHfvwq682qOCgQVt5vWjPc1R63AVMFThGngADWMC74c i+1Kjm2aCww4gL2+MvHTvfMGKu6qrYWJeR+d98F6IDuyuKn4Fj8i9dJSrtV4Dc4tVI35 4tzvZ/tPE7KRPDBSB/hhYFhUINY7EyZcca7Gz3/sfHmued++HpSahkchqhAF4jgO8Lu9 Bymw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=m6aWXd2G; 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 o7si5777379ioh.56.2021.09.10.15.05.56; Fri, 10 Sep 2021 15:06:15 -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=20210112 header.b=m6aWXd2G; 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 S234306AbhIJWE2 (ORCPT + 99 others); Fri, 10 Sep 2021 18:04:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46998 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231812AbhIJWE1 (ORCPT ); Fri, 10 Sep 2021 18:04:27 -0400 Received: from mail-ua1-x92a.google.com (mail-ua1-x92a.google.com [IPv6:2607:f8b0:4864:20::92a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 306A5C061574 for ; Fri, 10 Sep 2021 15:03:16 -0700 (PDT) Received: by mail-ua1-x92a.google.com with SMTP id g16so2096832uam.7 for ; Fri, 10 Sep 2021 15:03:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=dcqU9ZKZN47g77fb/rE27/hZjysW8Rw23gLua/TqJ3g=; b=m6aWXd2Gw4Bh6WEXuh6E/mhFWW2qOUaAXVIKQaGVEYvVg7FIGyKJOCA2XmKv0/l78E gkhKmn+zzD+ejrbhHZ5EfsAZYWV4wCaPUYDsdBpSIsoE1bRK7ErgU/yG65o84Z8xPwFn M+yeUkABwCrQlIwgMbXLVqKZdyS14pBia6tMJKUhttjVErg93dBD0Te7wH7/qlhrBpUu qvFGyWeEIVl8KWDteL7cEd3ogiiiNdbCy2xxO3DgaWzodE6YJXBwLuEIQUaPW1Foq6PZ hlC7P3yR+0tYq7Jav4Xg9d5+/PnVUH0za3AP6UuA+fvAeKhqINk8VlaPpTp+1pRCdLKx tU0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=dcqU9ZKZN47g77fb/rE27/hZjysW8Rw23gLua/TqJ3g=; b=QVcqZfHtCdzxWC/sRQDz8O+EPH3hZ5/GNLgjT7VSUIonrJXdtro3qKKXRONDw3eO3b FQ4msRAA4BL+GSjQZzDoB2L0jrAyzjVLic4DGLa9zedvp2HwiA7qObeEW/HpAopJTcIh zC3N+n8hjVDB4ZZFsCzHe47VHmu9ZnnUy5MD7BijLzSgn1aJUrsWsYuf1+6sKEzTiJw9 3bzDO+aVFiGUpGXynJYDibFDlaTci2i01fWSJVr1+kr4qNZLgCWJlJxhe5KnwxKDq5zY CC9laCd3mLz3aooG/fYXZjgJ2sATdV0uKTadcc2U/FKYh6S3MLibeUAs/0mrfHHVPxUh h7iQ== X-Gm-Message-State: AOAM532u9/fSZoGqB3HufTiM1iJSy7BB47qNaKuZFZfxB3gDA1j34LmF +EhT72YITvOp3ZdAMgGou24zsCS8GNPShTFaDIuEuviM X-Received: by 2002:ab0:1647:: with SMTP id l7mr7838728uae.128.1631311395250; Fri, 10 Sep 2021 15:03:15 -0700 (PDT) MIME-Version: 1.0 References: <20210909161755.61743-1-ahalaney@redhat.com> <0849504a-b7ed-f448-6d66-1a9fd5ad70ce@akamai.com> <20210910182445.vao7uhqveaen25tk@halaneylaptop> <20210910201635.4d3fhhrwvcusdwk2@halaneylaptop> In-Reply-To: <20210910201635.4d3fhhrwvcusdwk2@halaneylaptop> From: jim.cromie@gmail.com Date: Fri, 10 Sep 2021 16:02:49 -0600 Message-ID: Subject: Re: [PATCH] dyndbg: make dyndbg a known cli param To: Andrew Halaney Cc: Jason Baron , LKML Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 10, 2021 at 2:16 PM Andrew Halaney wrote: > > On Fri, Sep 10, 2021 at 01:31:22PM -0600, jim.cromie@gmail.com wrote: > > On Fri, Sep 10, 2021 at 12:24 PM Andrew Halaney wrote: > > > > > > On Fri, Sep 10, 2021 at 11:14:45AM -0600, jim.cromie@gmail.com wrote: > > > > On Thu, Sep 9, 2021 at 3:34 PM Jason Baron wrote: > > > > > > > > > > > > > > > > > > > On 9/9/21 12:17 PM, Andrew Halaney wrote: > > > > > > Right now dyndbg shows up as an unknown parameter if used on boot: > > > > > > > > > > > > Unknown command line parameters: dyndbg=module params +p ; module > > > > > sys +p > > > > > > > > > > > > That's because it is unknown, it doesn't sit in the __param > > > > > > section, so the processing done to warn users supplying an unknown > > > > > > parameter doesn't think it is legitimate. > > > > > > > > > > > > > > > > > > your usage is incorrect for what youre trying to do in that example > > > > what you need is: > > > > > > > > params.dyndbg=+p sys.dyndbg=+p > > > > > > > > dyndbg is properly unknown as a kernel param, it isnt one. > > > > ( it was called a "fake" module param when added.) > > > > $module.dyndbg is good, since its after the $module. (and the dot) > > > > it also then inherits the "scan bootargs for relevant ones on module load" > > > > behavior > > > > > > > > > > > > > > That example is (slightly altered) from > > > Documentation/admin-guide/dynamic-debug-howto.rst, > > > > oh dear, I see the lines youre referring to. > > I am surprised. > > fyi, those lines are: > > // enable pr_debugs in 2 builtins, #cmt is stripped > > dyndbg="module params +p #cmt ; module sys +p" > > > > is your patchset removing those lines ? > > if so, ack that part. > > > > > I can change the example used to be a little less confusing (using the > > > module keyword is confusing, I could use something like > > > func or file instead of what the docs use as an example). > > > > yes please, I saw bad usage, thought faulty premise. > > > > > Is that what you're after, a better example usage of dyndbg= being > > > whined about in dmesg for the commit message, or am I misunderstanding? > > > > I guess Im inured to it. Heres my regular version with a similar addition. > > > > Unknown command line parameters: > > virtme_link_mods=/home/jimc/projects/lx/wk-next/builds/local-i915m/.virtme_mods/lib/modules/0.0.0 > > virtme_initmount0=/root virtme_initmount1=/root/sbin > > virtme_stty_con=rows 27 cols 109 iutf8 > > virtme_chdir=home/jimc/projects/lx dyndbg=+p > > > > most of them do something, just not for the kernel. > > > > I dont think this is worth explicitly silencing. > > rather rip out the misleading doc. > > > > Ohhhhh, ok now I think I'm following what you and Jason are saying. > > dyndbg= parameter does need to process the whole cli, for cases like > when $module.dyndbg= is supplied but $module is a builtin. And you are > saying that this syntax (although it works) > 'dyndbg="module params +p #cmt ; module sys +p"' is not the intended > usage. > > So converting dyndbg= to act like ddebug_query= won't work because > $module.dyndbg="+p" should work if $module is builtin or a module > (settles my open discussion with Jason). yes, $mod.dyndbg=+p works now whether $mod is builtin or loadable. that must stick. if bare dyndbg="str" works like an alias for ddebug_query= (its amazing what one forgets) then I agree the warning is misleading.