Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp3485067rdb; Sun, 10 Dec 2023 07:33:44 -0800 (PST) X-Google-Smtp-Source: AGHT+IFLnyO3XYfqdzmdPHtM9Fm5tXfiKuvK4FzpiMgm9RXpuLclnNZRDcnejcSS5TuXnzvY2LSR X-Received: by 2002:a05:6808:1d5:b0:3b9:e43f:51de with SMTP id x21-20020a05680801d500b003b9e43f51demr3645504oic.117.1702222424062; Sun, 10 Dec 2023 07:33:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702222424; cv=none; d=google.com; s=arc-20160816; b=zMP6OiPTb9MgjvJfxP36jvtrDL77mXzMXP0uSAvE/khbzEz7aUfyreH6ztGaU097kZ 0DCypMdQo9P1G5HUL2X9Y4LsSwiWLhCXSvuZBogVCkX+YMcBPZ238UTWFlDqRR7DPF8s C7o9aUKOlejnAT7Nc/vWgTjf/YyskJrwZBCDbQvUUeJ0B5Caqm78KTNDW3aWrzBQ9H6f ygpEWrqk58wssLTK280qqMunGqmdXkc8nixTKvBTsWIZlMGcyNLWJdvHo3CHIRojLlC+ MuiFrEys9XqhNfvIwC4iPGPD4SSKuOl0psVpRYK//xWdpkIRL5Io5Ixkl5yVyMdi7VQf xnIg== 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=C30viTKo379vnurZ4QGFrYh5VngLr8VWjmuF0O1FHqU=; fh=DXqSFHFMGWs8NWhSKawAW+CcN1HWregSaTKgaWTRpeY=; b=ovYyxY6RK3pe3AQUb+w8LeM2Kz+sFaQutfCaYHpM3bJDxe2xISvRF7VlaOsJqhaHK+ waclmt4dUuxHJ8K+1mjQL5iuW2lCJ+aTlO4aCWwR/nFpR4M7S+A9AUJ77s2GF1BD/ntq wvOzl2Jna8JBO6Zqjt2YjfGTqeLTUR0ph6rltShWqMSua93lpbvQQ7D7w80XYsQwJa1X XiMTXunAXi5deZvEp+Mt45P+00CKh5vN070UT/nIT0eTs6cM0QZoPnnoNZBlUAWPqOAX xzCgrmpLLEB7SunkiBEty1EgAkWfUIfIJaUK8ZEM2rTF/cI4szoaHZUNhhnvSPEIXu22 Nclw== 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:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id h7-20020a63e147000000b005c626c40a55si4636449pgk.134.2023.12.10.07.33.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 Dec 2023 07:33:44 -0800 (PST) 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; 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 Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id B03148092EC1; Sun, 10 Dec 2023 07:33:42 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232270AbjLJPdd (ORCPT + 99 others); Sun, 10 Dec 2023 10:33:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41666 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229584AbjLJPdc (ORCPT ); Sun, 10 Dec 2023 10:33:32 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C096193 for ; Sun, 10 Dec 2023 07:33:38 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B4212C433C8; Sun, 10 Dec 2023 15:33:37 +0000 (UTC) Date: Sun, 10 Dec 2023 10:34:15 -0500 From: Steven Rostedt To: Mathieu Desnoyers Cc: LKML , Linux Trace Kernel , Masami Hiramatsu , Mark Rutland Subject: Re: [PATCH] tracing: Have large events show up as '[LINE TOO BIG]' instead of nothing Message-ID: <20231210103415.5afd45ca@gandalf.local.home> In-Reply-To: <18d6a5e5-f7a5-4a86-aa0b-eec38652c0d5@efficios.com> References: <20231209171058.78c1a026@gandalf.local.home> <18d6a5e5-f7a5-4a86-aa0b-eec38652c0d5@efficios.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=-1.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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]); Sun, 10 Dec 2023 07:33:42 -0800 (PST) On Sun, 10 Dec 2023 09:11:40 -0500 Mathieu Desnoyers wrote: > On 2023-12-09 17:10, Steven Rostedt wrote: > [...] > > <...>-852 [001] ..... 121.550551: tracing_mark_write[LINE TOO BIG] > > <...>-852 [001] ..... 121.550581: tracing_mark_write: 78901234 > > Failing to print an entire message because it does not fit in the > buffer size is rather inconvenient. Yes I agree, and luckily it hasn't been called out as an issue. Note, I hit this because I extended the trace_marker buffer before increasing the trace_seq size. Otherwise, the trace_marker just breaks it up. This can now only be triggered by internal changes. > > It would be better to print the partial line, and end the line with > a tag. Agreed, but I don't have time to do that (I already spent way too much time on this than I had allocated). I decided to just do what the trace_pipe currently does, and leave "print partial line" to another day when I can allocate time on this. Hmm, this could be added to the "TODO" list that was talked about in ksummit-discuss. -- Steve