Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp3919299rdb; Mon, 11 Dec 2023 04:08:34 -0800 (PST) X-Google-Smtp-Source: AGHT+IF90oWqamXGAXl24eoXD/WvRfB2erCv0/d5WHrQ2a3sg/0nyBFKWIAWnPeRgQsb+9i8Cnwz X-Received: by 2002:a05:6a20:8429:b0:18f:97c:ba13 with SMTP id c41-20020a056a20842900b0018f097cba13mr2123135pzd.109.1702296514213; Mon, 11 Dec 2023 04:08:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702296514; cv=none; d=google.com; s=arc-20160816; b=rKvJdYXyZO4kbffTMRr7w4AuFMwKoGO7n6KbIgfUl8rGAzkPb1SZe8iEGf8PncIDVg HTXvQA8UIZU2J525cpcL1e4SoyMV48k4vGpKuZkTh3oJ7yKOI6rWG7YuasXuFK160McV HtP9kZDZ6sDyDNH20MvWFdNjQue8xOS8FLB6HZzx9RXp9Umuu8tANAROiM1nMQT64kwm T1riOOxxUxOW4KyibJGyFiNlgnvh/oLZKiv2x1eaA/BGQ4ocEFWBNFPTbCR3bQZww+h3 zMlhWR1lBVPAEIkyQZ+gi95D3gJviqSwG+2hRXeXUpkTItOc2WS8NuRBUHc86tJ5Meac 30Ng== 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 :dkim-signature; bh=mem2u6EydTWe4KGSzXofMS8xRKRBdaw7u+G/QIQ8A/g=; fh=BrYUyGznwFZa6yeRncq7ftDKYYfA3C3izEoj3T+7CWU=; b=Kia0fAGTUL0Y5fPzrMMjOflEJUkr7vlbSaqGMmRVaP46G5zTVIClKp9UklJE92bZYD 9O2Y7xgOehGKObDYwRhiVexsv8Eo/37BUcybNNRGYpq66CUajeITv/yio9Fd27LJ2pRP QTsHT8qSUSrh5eOuPbT9FREaeiLnrNyvPRtdaeCKGigVmE/whm3+Tg9MH/P7yLJX7Yih cQ8LoRWeJyYztr5st/eGoIemou8rkgE+4qqjZM/YXQ5Hu3Ragj+hmWmdy+SjAknqpIpg kjGJIJi/45OHLMolhL+D+mEA6P0ilvkz1cJEs3JFEfOUcb57Fmhtz9bUbxx4WYoeu3XQ 6j9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UPAKLlpA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id p125-20020a634283000000b005c666162409si5941286pga.637.2023.12.11.04.08.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Dec 2023 04:08:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UPAKLlpA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id D3FE4808FBF5; Mon, 11 Dec 2023 04:08:31 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234458AbjLKMIR (ORCPT + 99 others); Mon, 11 Dec 2023 07:08:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50092 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229768AbjLKMIR (ORCPT ); Mon, 11 Dec 2023 07:08:17 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CF7109B for ; Mon, 11 Dec 2023 04:08:23 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A8F69C433C8; Mon, 11 Dec 2023 12:08:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1702296503; bh=H48TlKvi4BGnZcxJ7Nx9B60tEixMLubEf6s1qwzEUuA=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=UPAKLlpAij5Mf2DLLVZoINgoQGRex/xDfJR7/eZsus5A8CNzh2phm2unAjVKrbZMu jWAW4MT516TOaj6fzNPz8p6FZBXNid1u3zgSbE9hUs9SYC2EjuxdZeSdbhCXPmpOHP LJliGFzHUgMBJueF8P6FfF9jwGW3LMNkFiy6Q3nQd+FicBqKF3u7Ioipkr9YbVfOLK hDTtkhGRM6auhxiSP5rWLDU7eItiCnRRjIj5Rweo9FsF0SbcQFRX8EBpFOk8QX4RPU 56QzGuPISVuUEDZ5Y4tdRawpfjb3ev3Qxc3NRiO/c5beVLure3Kg1/0pW2z33lD1wX M1eTpFKtH2i5w== Date: Mon, 11 Dec 2023 21:08:19 +0900 From: Masami Hiramatsu (Google) To: Steven Rostedt Cc: Mathieu Desnoyers , 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: <20231211210819.cd4f7b3df09cf0eb584e51b9@kernel.org> In-Reply-To: <20231210103415.5afd45ca@gandalf.local.home> References: <20231209171058.78c1a026@gandalf.local.home> <18d6a5e5-f7a5-4a86-aa0b-eec38652c0d5@efficios.com> <20231210103415.5afd45ca@gandalf.local.home> X-Mailer: Sylpheed 3.7.0 (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=-3.7 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI,NICE_REPLY_A, 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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Mon, 11 Dec 2023 04:08:32 -0800 (PST) On Sun, 10 Dec 2023 10:34:15 -0500 Steven Rostedt wrote: > 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. Rather than the broken output, I would perfer this output. > > > > > It would be better to print the partial line, and end the line with > > a tag. But how long the partial line length is good enough? I think that big (and long) user marker maybe not for human, so we don't need to care about readability. I think current one is one of better solutions. So I'll give my Reviewed-by. :) Reviewed-by: Masami Hiramatsu (Google) Thank you, > > 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 > -- Masami Hiramatsu (Google)