Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2211314rdb; Tue, 3 Oct 2023 13:54:22 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH+He/LZL3aKgRthvTaVMWRdaOJhCr+CIYpRikRSnuRPjzoWSf5hZHn40ssiMj1wDaftwbO X-Received: by 2002:a17:902:bb84:b0:1c1:fafd:d169 with SMTP id m4-20020a170902bb8400b001c1fafdd169mr644619pls.3.1696366462552; Tue, 03 Oct 2023 13:54:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696366462; cv=none; d=google.com; s=arc-20160816; b=t1JgnOl91LdwrV0Wht8BlRov3HU+jHam6XdZJsQRpAzzzajwlelBPq33ne45vaoXIq Gzfd+Hu81qsyDy2/RlXEOVJs9TfxUJ2zFzQgD+rnmEEiaV5FcDe27tDVT/NfLHCbUsVA yjMObSMzBVbK0TC8Hlqs0Z2XqCcW6f7O5yxruDqYgQ/xMhxuZKNNaldZryViVq6CmPcG KnewzAZ09w40g5M+tNiVJB5WOcinKhNJprUPJYoBXcWG/YZHinZBhwyQb7IfjB+dCvlA zBfxX5qISjyz2gUSZG32xsACN2vdssmd73a0w79uuSZ+xwiXHvOfdTOAQVVK5ZI+IF7Y yPIQ== 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=vSF3rAZ/OYaS8r3BMyNvB7IqKeUPgct0QtaKI/2kXKU=; fh=k7CZhNQ6ycn1WhxH+zbtZnkXR/tW6MerrKmYgV/bBCk=; b=KfbyYa2t3UHc4OeIsIhaB9OFsU0xHzPaQUrWBWikhHP+LuEpAsfFwmXQ5l9/EE1Sfk oZCEBwdsHZ3G7UfPg2A9Z/Mz6J2hSCV38gHzULniDEfv2Pf1W3JAAY2/cqaVbjuk0lng ZcQa7e1VIQiAwW9pZ6i/N/zoPjm2DRrHZBd/sOwTlupKSd3SDe4AWFRXJ5ieMKQ5N/iA 3Ki2Pv9oVgzgwekzLALwiik/uTuQew+SLSfNmbSAN0REPs9yIbkx3HdEnJyBF862J42H hqQhsrSV9AA298Z4riAj1/GEN8R8TE8zLC+LYO+PCHQPQuuED1URK6W/xzlXreb1BioN H3rg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="bh4aG8/q"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id p7-20020a170902e74700b001b8b437b01esi2332311plf.350.2023.10.03.13.54.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 13:54:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="bh4aG8/q"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (Postfix) with ESMTP id 2B20782265C7; Tue, 3 Oct 2023 13:54:21 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241117AbjJCUyT (ORCPT + 99 others); Tue, 3 Oct 2023 16:54:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42644 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241100AbjJCUyS (ORCPT ); Tue, 3 Oct 2023 16:54:18 -0400 Received: from mail-ua1-x931.google.com (mail-ua1-x931.google.com [IPv6:2607:f8b0:4864:20::931]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 00FDEAF for ; Tue, 3 Oct 2023 13:54:14 -0700 (PDT) Received: by mail-ua1-x931.google.com with SMTP id a1e0cc1a2514c-7aae07e7ba4so673296241.1 for ; Tue, 03 Oct 2023 13:54:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696366454; x=1696971254; 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=vSF3rAZ/OYaS8r3BMyNvB7IqKeUPgct0QtaKI/2kXKU=; b=bh4aG8/qSiH5vYhLQGU5t6mVxNmu+WjiglaIC433cj4KuO7peQV/oo/l1jq+hNMWXl q8I6ZV5FVEo3XF6JEHB9buZ6ICNWZX/kTJUJ+uoX2t29zux+E4gzO0sQxqgwjxaJsHUG 4d/jUQ/BKiDZjfD7ZeCNxWVFJhdwUPK3VjuT1sjBb/Woxta9Z2cO4sMU3berFT1wg0v7 S5AF8qzmWeTRVWJhwcTmFyg1MJX13hMn5vbRcnAjpS51yxAiKpRP0/15UPdXS/2qHSFq 5pzEIjtKlhTxPMAv8gbo3Fajbnmudg/0+Fb7+MRiVzH1V7yruH8yU6amaBtNrZCIaBJx wTpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696366454; x=1696971254; 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=vSF3rAZ/OYaS8r3BMyNvB7IqKeUPgct0QtaKI/2kXKU=; b=ZtlPcS8Usf6OJwhAtDB1z0D5r12RL+jJ9isZphcBKreWPe+vBhw4Kz5Gj6KZ8SO4NU uSgSeEF/BHpIi8apNB08kBOBz9yTx5P7/C5+pBaH0AdvH1wSv4V7KO7ZxX6n9fBoENCn LsWdgaNovTLqAGOBq/8esbOI7GmFL2GVftZ6/xp6ezsV6Vv0bwM6Fd3EWlaa1NBImYkT Ko37fL7/1WNTyPQqhKljULqtcH4Ua7QevCp9X9THM1aWk3yuB/ixY8o8Lzzf2ZYioKQM dUxjxiKrjuI8pwoy/o7YubvABK9mSkuWDmqZMIFpurs3/9LtixiU1B0je/t2Kq68tCm1 WdNw== X-Gm-Message-State: AOJu0YyPhDhGweKsZyIWWejG2Xn/SCt1liJBoGeAlhhVHh8TbEpdzYCw PazdYs85/39eTtK2hROMmt4yGG2hVgSjra92G1o= X-Received: by 2002:a05:6102:3a76:b0:454:6dc6:cd5e with SMTP id bf22-20020a0561023a7600b004546dc6cd5emr510382vsb.15.1696366454006; Tue, 03 Oct 2023 13:54:14 -0700 (PDT) MIME-Version: 1.0 References: <20230915154856.1896062-1-lb@semihalf.com> <20231003155810.6df9de16@gandalf.local.home> In-Reply-To: <20231003155810.6df9de16@gandalf.local.home> From: jim.cromie@gmail.com Date: Tue, 3 Oct 2023 14:53:47 -0600 Message-ID: Subject: Re: [PATCH v1] dynamic_debug: add support for logs destination To: Steven Rostedt Cc: =?UTF-8?Q?=C5=81ukasz_Bartosik?= , Jason Baron , Andrew Morton , Kees Cook , Douglas Anderson , Guenter Roeck , Yaniv Tzoreff , Benson Leung , linux-kernel@vger.kernel.org, upstream@semihalf.com, Vincent Whitchurch 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 (howler.vger.email [0.0.0.0]); Tue, 03 Oct 2023 13:54:21 -0700 (PDT) On Tue, Oct 3, 2023 at 1:57=E2=80=AFPM Steven Rostedt = wrote: > > On Mon, 2 Oct 2023 14:49:20 -0600 > jim.cromie@gmail.com wrote: > > > hi Lukasz, > > > > sorry my kernel-time has been in my own trees. > > > > What I dont understand is why +T is insufficient. > > > > IIUC, tracefs is intended for production use. > > thats why each event can be enabled / disabled > > - to select and minimize whats traced, and not impact the system > > > > and +T can forward all pr_debugs to trace, > > (by 1-few trace events defined similarly to others) > > or very few, giving yet another selection mechanism > > to choose or eliminate specific pr-debugs and reduce traffic to > > interesting stuff. > > > > Once your debug is in the trace-buf, > > shouldnt user-space be deciding what to do with it ? > > a smart daemon could leverage tracefs to good effect. > > > > IMO the main value of +T is that it allows feeding existing pr_debugs > > into the place where other trace-data is already integrated and managed= . > > > > At this point, I dont see any extra destination handling as prudent. > > > > > I'm fine with either approach. I kind of like the creation of the instanc= e, > as that allows the user to keep this debug separate from other tracing > going on. We are starting to have multiple applications using the tracing > buffer (although most are using instances, which is why I'm trying to mak= e > them lighter weight with the eventfs code). > > -- Steve > Ok Im starting to grasp that multiple instances are good (and wondering how I didnt notice) What doesnt thrill me is the new _ddebug field, it enlarges the footprint. can you make it go away ? I have some thoughts ..