Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp1976303rdb; Thu, 7 Dec 2023 14:28:21 -0800 (PST) X-Google-Smtp-Source: AGHT+IEY/WZJRmzjqPIHXIoFpYfVq0q/hKXVo7xJHuOL63mytlaForiQGL9pyFpNsOsGHnDpJMZb X-Received: by 2002:a17:90b:4a05:b0:286:6cc1:273 with SMTP id kk5-20020a17090b4a0500b002866cc10273mr2922943pjb.62.1701988101464; Thu, 07 Dec 2023 14:28:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701988101; cv=none; d=google.com; s=arc-20160816; b=vf66/Yfcfbpu4r8qjrSKABnw2DYa6TxHD3GTCQBa3XjP+8QQqE6JlC/CLt1RyQfc21 TrEMtO4olm9UTjQ215qUfTc7zhqFQlX6e4HOoVDqldiqV0T+to3Mls3fuKgdvVIgIi77 jMLZJvbB69RifyMwHkAmYCuEF6PlRUNWcXVejMjtFNBIzx8mqZ5SbweNkG8HOyxGk8Ou lngWxNX7TgsxXyJwr52ULD4vuAr8/TFDpIywZj0pHQjEnnjPNq5cV9wY+G7jlrZUSDAn JALLxIBePP5UuXt9QBciMj3Tq8WDfaZimtSAvvOm3zvWsIyOSgVl+Qv2jneDox2Zjf1u jl8A== 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=r710MJZku39ElfC6FKriOkjVADhBjjs3LDqxj4G3cys=; fh=DXqSFHFMGWs8NWhSKawAW+CcN1HWregSaTKgaWTRpeY=; b=cdSqKUkCpTQ+ZvqLvyYwDcXRBbCRKLdJfnSXWfzaJa34MHjUq2u4x0wYyf5hEwEATp I/TiaoF1axuaXRUjtr1S0HDgrqRJMCQRvLjAQMPq3cKn6rJQZwy8cFKDFh7GTK9soRVO m5nbhjzvD5M2M04P4YdeRGs+iFTfImsQFYpMHrnl1AO7oXcs7Ad4ufWAeKJlr2bgbThW 9hNFXZO7B1skyzMCx+Z5T6fcNSbtLWN809Ja9tJwN3jxUvvShxc5eIC0DkMB9t7f7Spx DySgKcdzCtfZNVcGB9Ls13yI7EWmWUuq+7QtR7k9/PIe+fJ5ptRDvHHmc3izrxBqGCDQ /oCw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id x18-20020a17090aca1200b00285a62cc148si1785551pjt.134.2023.12.07.14.28.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 14:28:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (Postfix) with ESMTP id 00D7C83393BC; Thu, 7 Dec 2023 14:28:19 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235655AbjLGW1x (ORCPT + 99 others); Thu, 7 Dec 2023 17:27:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49492 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232331AbjLGW1k (ORCPT ); Thu, 7 Dec 2023 17:27:40 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DFE851BEA for ; Thu, 7 Dec 2023 14:27:22 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A4245C433C8; Thu, 7 Dec 2023 22:27:21 +0000 (UTC) Date: Thu, 7 Dec 2023 17:27:52 -0500 From: Steven Rostedt To: Mathieu Desnoyers Cc: LKML , Linux Trace Kernel , Masami Hiramatsu , Mark Rutland Subject: Re: [PATCH] ring-buffer: Add offset of events in dump on mismatch Message-ID: <20231207172752.01ec634c@gandalf.local.home> In-Reply-To: <866d40a8-4e0c-465c-ab8c-b5d864c1a668@efficios.com> References: <20231207171613.0592087d@gandalf.local.home> <866d40a8-4e0c-465c-ab8c-b5d864c1a668@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=-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 morse.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 (morse.vger.email [0.0.0.0]); Thu, 07 Dec 2023 14:28:19 -0800 (PST) On Thu, 7 Dec 2023 17:19:24 -0500 Mathieu Desnoyers wrote: > On 2023-12-07 17:16, Steven Rostedt wrote: > > [...] > > > diff --git a/kernel/trace/ring_buffer.c b/kernel/trace/ring_buffer.c > > index 8d2a4f00eca9..b10deb8a5647 100644 > > --- a/kernel/trace/ring_buffer.c > > +++ b/kernel/trace/ring_buffer.c > > @@ -3424,23 +3424,27 @@ static void dump_buffer_page(struct buffer_data_page *bpage, > > case RINGBUF_TYPE_TIME_EXTEND: > > delta = rb_event_time_stamp(event); > > ts += delta; > > - pr_warn(" [%lld] delta:%lld TIME EXTEND\n", ts, delta); > > + pr_warn(" %x: [%lld] delta:%lld TIME EXTEND\n", > > Please prefix hex values with "0x", as in: > > pr_warn(" 0x%x: [%lld] delta:%lld TIME EXTEND\n" > > Otherwise it can be confusing. > Heh, sure. I'm so use to looking at hex for the ring buffer offsets, that I seldom add the 0x in my debug anymore. But as this is permanent, and not just a one off print, I'll make the update and post a v2. Thanks, -- Steve