Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp5029383rdb; Fri, 15 Sep 2023 23:16:19 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHtxKZmcxVz6bXtHkF64/A7bwZ0vgPIB0oYbMPv5REqtdNytbvd1+5qEablPEifGjzTqtA0 X-Received: by 2002:a17:902:e744:b0:1c2:c60:8388 with SMTP id p4-20020a170902e74400b001c20c608388mr4078888plf.6.1694844979133; Fri, 15 Sep 2023 23:16:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694844979; cv=none; d=google.com; s=arc-20160816; b=QXiDR8oFozKMLdQSdPTdoBLC9ZU3CJKdzDJeIK95fhwci+ThhlXaJdWJIyjAY0EteP uAhZrthIwnOXd2rVY5sM9XDUeAEsK4IHYjGplagVCu5aGIhCpwMJn/nfSkrYSB8JHSc2 feLWFe5QVumT1TXjRpfwCvzDfEV7MuX2lcdIWMfj+Py7BpK1Z9i6E96Mh6DLTjnfWGdP SSszL/ib1MP7iZJd92U5RmV86XIi21b8Ww5VdzokAyj7ej210NaooDu7MaiO7OvcEDsn H1UdIJOs1gh4z8bzRbk6BvEWjrqH3H8AtpqyNpuIpZaRYrDqn9SqNMPiIrcxiLvFR3NS Jijw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=kReLlOpbjXtB6mBGpHGtzlOr1ohS4HF7Y/gf2MYN7pQ=; fh=e4uVqClAeo8GicXtdoiaoGFcyrtzZav3HI80KnniNiM=; b=X3Ql3yEJ29mgS3ViYKApnl3iXe2Rjj3AEG/oMuEee5/robmzzeTcHsnTe0I9irNMBA CQovd8D0Ayo1dEJjaAsLG53qSo8nfARIW4FczEa56JvseGN6udwmgoc/ZOqQEwIsYivd 3qDXIK6Geq6pVU11k/nM2SWcMoMPthwbgrPwxqFua0kSUDHtA+WMRh2kovlE1Xzk7nca R5FPuMGEOzIQUheODPxZC5pLSU//4SGyANZWXXz24wLw4rrmtnf983oFwxXaXz+CzuEY O85WIru625oJ4st0cmx/KjX+6QCBfuR6x/YY+fZqkvg6BLTK0l6xDE96mr18c5rBIZ6g vNWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Ebk9KhPk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id p12-20020a170902c70c00b001bdcd2e1706si4498784plp.196.2023.09.15.23.16.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 23:16:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Ebk9KhPk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id AF4FF81D2D48; Fri, 15 Sep 2023 11:03:31 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236095AbjIOSCy (ORCPT + 99 others); Fri, 15 Sep 2023 14:02:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37598 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236283AbjIOSCh (ORCPT ); Fri, 15 Sep 2023 14:02:37 -0400 Received: from mail-oi1-x233.google.com (mail-oi1-x233.google.com [IPv6:2607:f8b0:4864:20::233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0A156E69 for ; Fri, 15 Sep 2023 11:02:32 -0700 (PDT) Received: by mail-oi1-x233.google.com with SMTP id 5614622812f47-3aca1543608so1597394b6e.0 for ; Fri, 15 Sep 2023 11:02:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1694800951; x=1695405751; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=kReLlOpbjXtB6mBGpHGtzlOr1ohS4HF7Y/gf2MYN7pQ=; b=Ebk9KhPkE8KeKb1zthzI6SQRuW9/TJ8Ku4wLMddSu1jmnEjLUYBPM48lSO+a1iujp1 5jmJhioIkEVPJlW1ssEU4NZGu+SVma5yflgYVaxUcPGpLmxwfNYXf0Wfyb/hkJ33KlWv OhyNGIcf+pq4hM51PhqlZsRayvzIc8GPNxejTvwfTOvg6UjgT0rF7iWmMdJv+UwQTnAd ZecRtd4enoFXQYJEnyhV1yTPvwyyl0sSWTtPzW+UW8JrbcUcFlbqE9/IQC+w7krnARa2 jzYexftIDk8nKTv/N2Qv9qZI4Kp0MZh9lBTYlyB9ZROC+vOBmsTyVMmYYLz8EaT/NC0m dR/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694800951; x=1695405751; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=kReLlOpbjXtB6mBGpHGtzlOr1ohS4HF7Y/gf2MYN7pQ=; b=ZRSroyC0GTJDoyFHGqZk5xRwuNxuzcmh68jhKC6VMyX5XyNcOIH7I66BaVABwXnjvq xIetnOV/V6bJo4r4pWZIZpCa2szTFksrd6zCVGZNLG7AuLaH5gzXBkW1vlSlpya3wVnU xol8aKbbT4oYUta8ZLnFwG+2D2y7mgsjpAc/x8TR2DebVnhY9s/bIfbB9tc7/RHpw3lE aoynQZ52iOembu6nYTWpBvz3SYDAf9oYPUAjI6Ng0MlnRJ0ILm9cmHyugkQo52NVov5Y iaDprPCRnyoRbWYfBZSCbH+jwvsITHDG3h9WWZ0tJ9hR4wssrdBux3BVa071+x+Pvmsu kQqw== X-Gm-Message-State: AOJu0Yx40KiAoEEZTSRMOx5edzQ5bDZ/BDYxdBrtaJVaXX9zxLWIzwu3 0hW3UrYwSfd4kTv1NRgs5PZ74+7GKhmUFJuzeR69v9GVqLY= X-Received: by 2002:aca:d11:0:b0:3a9:c2d6:41e7 with SMTP id 17-20020aca0d11000000b003a9c2d641e7mr2442267oin.54.1694800951243; Fri, 15 Sep 2023 11:02:31 -0700 (PDT) MIME-Version: 1.0 References: <20230915154856.1896062-1-lb@semihalf.com> In-Reply-To: <20230915154856.1896062-1-lb@semihalf.com> From: jim.cromie@gmail.com Date: Fri, 15 Sep 2023 12:02:04 -0600 Message-ID: Subject: Re: [PATCH v1] dynamic_debug: add support for logs destination To: =?UTF-8?Q?=C5=81ukasz_Bartosik?= Cc: Jason Baron , Andrew Morton , Kees Cook , Douglas Anderson , Guenter Roeck , Yaniv Tzoreff , Benson Leung , linux-kernel@vger.kernel.org, upstream@semihalf.com, Vincent Whitchurch , Steven Rostedt Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Fri, 15 Sep 2023 11:03:31 -0700 (PDT) On Fri, Sep 15, 2023 at 9:49=E2=80=AFAM =C5=81ukasz Bartosik wrote: > > Add support for selection of dynamic debug logs destination. > When enabled it allows to configure destination of each callsite > individually. The option adds a framework (described by struct > ddebug_dst_ops) which provides flexible means to add a new destination > for debug logs. On top of the framework support for trace instance as > destination is added. By default destination of debug logs is syslog. > Syslog can be set explicitly by using dst keyword or is selected by > default when dst keyword is omitted, for example: A while back, Cc: Vincent Whitchurch proposed these patches: https://lore.kernel.org/lkml/20200825153338.17061-1-vincent.whitchurc= h@axis.com/ his approach adds a single flag, +x or (my pref) +T which sends the pr_debug to tracefs, independent of +p. Steve Rostedt offered feedback on one of the versions, and one could read that as provisional acceptance. Ive worked his patchset since, it is here: https://github.com/jimc/linux/tree/dd-trc-11 (it has some unrelated bits too) but it sits atop another patchset: https://lore.kernel.org/lkml/20230911230838.14461-1-jim.cromie@gmail.com/ or for git remote add https://github.com/jimc/linux/tree/dd-fix-5i syslog and/or tracefs seems sufficient, do you have a 3rd destination ? thanks