Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp3555228rdb; Sun, 10 Dec 2023 10:15:33 -0800 (PST) X-Google-Smtp-Source: AGHT+IEi/7jOSTW1cJkvgueG3PItLVT+I5Mub8kJsjYevsjJK0kxqr/uRFZxIa86ro1kBZyPq81V X-Received: by 2002:a05:6a20:244f:b0:18f:f040:86df with SMTP id t15-20020a056a20244f00b0018ff04086dfmr3770399pzc.82.1702232133123; Sun, 10 Dec 2023 10:15:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702232133; cv=none; d=google.com; s=arc-20160816; b=BgQiuGVQlh6l6qd/3+mpDzDT00NbJnYIE7uonJHFA/yTSoVFLIjuh2FGTR9lZ5oYrs L90qU3sccEoqZUipCZSl+D8352CoBsErPPJidbRzDTY1mRN75LJCK/MV6W4z/2jFhfY/ i6X+d5KsVrRh452tq8JgjPTZKTPyKect5rYprTb+AIWI+e6K9N9/0Lg8wYY6YIW/B4V4 VveBorXZrvf3IMR8diCzL1KNYccYcAGfJZkA/uFIvG9mdJ90w7qQCTuaNCO7h6tzDXaQ /ZzGWzA6RTq7/izHH0NLdvRzcLkKTu15umZ9yLdbL42Wash2CWk0ehk7+CvxBKl5AMk9 dWaA== 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=gauLBGRlqcqzs1e5GSf9JpqcUbvk9GPRlgkERdLPevQ=; fh=DXqSFHFMGWs8NWhSKawAW+CcN1HWregSaTKgaWTRpeY=; b=crQQuHvSBcJ9KNcV/l8clz6rFvOQVVyd063pMj5NsmBe8PtOKs+zuYYuM3VUxohoFv Nz8PbcRdmUOqzlzg/Gt/8aFx/FvK0p4AcECkcT4ZEb2bJgcqUsgAAAeJ3sb60UH7d1CD oqp4c3+UjfkQBa3Byt38LtB0eF3bbMidhoWBZ6xmehklJXGgD9jAsfnLOKJAnmU1i5eD aYJ891SlA9o2OB8i4r6JA3YKird3qbiBe3ENjfbQnSenrL2elcE2DBe8d5MFEuik8EIz ij37Dp5thEkjPr7HzQoaPZXGYj6mS01k5Kzx0dLf3qpjYjy4vtrhS50ZsB6W5dzuKNN7 jodg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id m7-20020a635807000000b005c665c81b7bsi4677392pgb.36.2023.12.10.10.15.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 Dec 2023 10:15:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (Postfix) with ESMTP id 8A1EF808495E; Sun, 10 Dec 2023 10:15:18 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231807AbjLJR7F (ORCPT + 99 others); Sun, 10 Dec 2023 12:59:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36810 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229462AbjLJR7F (ORCPT ); Sun, 10 Dec 2023 12:59:05 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 92A41A7 for ; Sun, 10 Dec 2023 09:59:11 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 56A5CC433C7; Sun, 10 Dec 2023 17:59:10 +0000 (UTC) Date: Sun, 10 Dec 2023 12:59:08 -0500 From: Steven Rostedt To: Mathieu Desnoyers Cc: LKML , Linux Trace Kernel , Masami Hiramatsu , Mark Rutland Subject: Re: [PATCH] tracing: Allow for max buffer data size trace_marker writes Message-ID: <20231210125908.5bf1cf7a@rorschach.local.home> In-Reply-To: References: <20231209175003.63db40ab@gandalf.local.home> <2683467e-cadb-4bb8-8c50-87ef052edacb@efficios.com> <20231210103009.29010d00@gandalf.local.home> <20231210113829.780c7097@gandalf.local.home> X-Mailer: Claws Mail 3.17.8 (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,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.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 (groat.vger.email [0.0.0.0]); Sun, 10 Dec 2023 10:15:18 -0800 (PST) On Sun, 10 Dec 2023 12:28:32 -0500 Mathieu Desnoyers wrote: > > Again, it's not a requirement, it's just an enhancement. > > How does this have anything to do with dispensing from testing the > new behavior ? If the new behavior has a bug that causes it to > silently truncate the trace marker payloads, how do you catch it > with the current tests ? I'm not disagreeing with you, but honestly, writing tests that can be submitted, take up time I simply do not have. So it's either I get this working and manually test it, or not apply it at all. This was a simple change which is why I added it. The tests will take much longer to write than the enhancement itself. If someone wants to submit patches that test this further, I'd be more than happy to apply them! It may be several more months before I get the time to work on this any further, and there's still several other features that are in my queue to apply, where some of them will be affected by these changes. Right now I'm just focused on that any of these changes do not cause regressions in the workflow that others have. The trace_marker usage that I've ever seen has been simple writes that are never more than a couple of hundred bytes. The main reason I added this change was to be able to test the subbuffer change. Otherwise I would never had made this change. Adding more tests is on my todo list, and not just for this, but for other features. I do have a bunch of tests I run locally that are not upsteam, but they are mostly hacks that require a lot of clean up before being added to selftests. -- Steve