Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2185078rdb; Tue, 3 Oct 2023 12:57:20 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHdlDrhfTNtsh7dsNiDHQZT21knOFNguooyrHMVOBLWRUbHYZF9tLAaMQF0kmqsp4JAdypG X-Received: by 2002:a05:6a00:1d94:b0:68f:c1e0:a2c4 with SMTP id z20-20020a056a001d9400b0068fc1e0a2c4mr5440280pfw.3.1696363040031; Tue, 03 Oct 2023 12:57:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696363040; cv=none; d=google.com; s=arc-20160816; b=LnTgdt+hq+vnAynk1weCifndxlDXPXZcfNv+yb0+ZQICnN8vm3vTpeqG8OEi4er+7E MQE/dzjPv1XGzfOryJMVBrrUYbF6glteK7K+5KXo1P6mwoJtYh77CGt4sdFQKBvOIHCh 3/leqTHKi7dL7ep0LJ9dXRZc4z/VqDQ9oIXEdRQAgD3d444OVPVeTp+BEWt2KhfVhSC1 iQidFf8rCq824PxJYMynmWiOVNcLhf4nBp3qdRl9ltQSykd9p0VXrqZLV2ExlVyGZoHP RLM0GF2BJ7I+TwpsM6gCFSUaAfOvElpotbICBju+tqeuXBdeoTdrt3RMUCm+xaVPv8xb 3T/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=3ZfSwo+WtFuHcKn97gYLESOJmTrxZZc/DYfDQ9Ic+E8=; fh=/8Lx9iEpSDJIj/p+F9LAubd45jNzWhkjmipzQY582wU=; b=hC5o61UomvEwu34EmewdrjnoATDbPv6kKJhe+vftkhbxJDDSf5NYV+i5Fi3VphqbfD MtP0Q8+MOSAMpDIt9NZBLUY7NcbOZLHfurPXkpNRBqbIqZ5mIqMpNSopGTYcemhoJwL5 4JLyl/qp41k9az8Q3icKhiPhdwj8Uo1sFUH54LKEUw5Dgl38RwFKGW3D12+u88/DNyyh VSQpkiiTHsiIN7bS+E3yz0K1e9Hbl05WWrxJ02RI1IlR4/MWXWwVfW6V7+eCOHPBIXW5 SuGqBO73JBoykW/WbF0ybM48KU5vJdPCQBKmslv/0w2kFUPHYv53JSWn89VPwEUyj4K0 +YIA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id u3-20020a056a00158300b0068a5877bfaesi2256326pfk.382.2023.10.03.12.57.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 12:57:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id EB63B818CC91; Tue, 3 Oct 2023 12:57:17 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232046AbjJCT5K (ORCPT + 99 others); Tue, 3 Oct 2023 15:57:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55240 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230390AbjJCT5K (ORCPT ); Tue, 3 Oct 2023 15:57:10 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DEB60A1 for ; Tue, 3 Oct 2023 12:57:06 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 381E8C433C8; Tue, 3 Oct 2023 19:57:05 +0000 (UTC) Date: Tue, 3 Oct 2023 15:58:10 -0400 From: Steven Rostedt To: jim.cromie@gmail.com Cc: =?UTF-8?B?xYF1a2Fzeg==?= 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 Subject: Re: [PATCH v1] dynamic_debug: add support for logs destination Message-ID: <20231003155810.6df9de16@gandalf.local.home> In-Reply-To: References: <20230915154856.1896062-1-lb@semihalf.com> X-Mailer: Claws Mail 3.19.1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email 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 (agentk.vger.email [0.0.0.0]); Tue, 03 Oct 2023 12:57:18 -0700 (PDT) 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 instance, 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 make them lighter weight with the eventfs code). -- Steve