Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp1972772rdb; Thu, 7 Dec 2023 14:19:59 -0800 (PST) X-Google-Smtp-Source: AGHT+IHVWAgMhE2+UgexEb5u3kRlry7I7mfpUTVVtRH05fYev8HvkLswXrVPBd9zdnNZE0+Q3+s0 X-Received: by 2002:a05:6a00:1803:b0:6cb:6a27:ab57 with SMTP id y3-20020a056a00180300b006cb6a27ab57mr2682643pfa.14.1701987599408; Thu, 07 Dec 2023 14:19:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701987599; cv=none; d=google.com; s=arc-20160816; b=WBsxA65/JJVDp+0o+rEoKqghFKMHSwS9+aUmafi6cg4TnshyncRhpSZVd1H4o0mbhO /AycUwSqmhFWsYvUgQeRpNPqVgWYDh5/ojD3VJbuRJif49TxsOPZOLnhE/w5dvFMiemZ wirVPyuD+JniJX42479LoHtKYZo5f90abIA76Wlh7OZdkZ79KJv1Tev8N+lLQuU/zfFz r/Ny4MyV4FNa0rqPcavm3XAlGW+mDTEx9PQdpSyHVoHX/LjVqBGfdDlAKZkxAOTvefYr WV/q0QadLrp8cj7Wgv5S9Hu8A4OxfKg6XGjME9JemlUv8URVMlf15UVLrspk/Y7ZDgsm od+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=s4m8lwyCwgm4BP3osb3bIoNXXU/LHW8aY6uHKznmKxI=; fh=ApSZSMqk2cOXZBaXQhOniVNa7xwAQ0YLx1sKJGpf0is=; b=wFhnsAfiSphMUo2P8hkGjCk5piby6SLh6RCVnWRtAQuoMAE6Qa6Zm//DSreWBnNTnD iSk3jsx0UxrXHZDkSEdduWrWodmG3YQor3VywBk3VePrx5jJwiUpfH6SOmAggnOohDyM PfQMhHMla1+8BtEJ+RvTXqWYAJ81kuTw9grWpmu93qo+X369/2T6exbRAgGyWZAgNQhe Yn7C8JPFiHF1kAF3Z5CA2ltA4fInj4LY+3wvoiVMDr8RgFZ3RVtolrGazJSFpuv01DW4 f5jwVAo7q42j6twoM5iZF5lbdh9aTgVv7Za+/0ACSogNJAsHi537Z/+vdjFC34g/lE4n 0BLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@efficios.com header.s=smtpout1 header.b=qNhzJPTY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=efficios.com Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id x9-20020a056a00188900b006cda14566f1si384406pfh.150.2023.12.07.14.19.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 14:19:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@efficios.com header.s=smtpout1 header.b=qNhzJPTY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=efficios.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 8474280EE761; Thu, 7 Dec 2023 14:19:56 -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 S1444089AbjLGWTY (ORCPT + 99 others); Thu, 7 Dec 2023 17:19:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50616 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232173AbjLGWTW (ORCPT ); Thu, 7 Dec 2023 17:19:22 -0500 Received: from smtpout.efficios.com (smtpout.efficios.com [167.114.26.122]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 967B610F1; Thu, 7 Dec 2023 14:19:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=efficios.com; s=smtpout1; t=1701987565; bh=86p3ylrkbz2hpcmZExuM50REXyynwKwbcr5XPixsGws=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=qNhzJPTYRkdipYePc/C6vS7fT5ohZ8VF4yqLBsoiWKJ3QpmsJa1zgc6AEATOzt7yh VgjauIWncZhzOhve0lJbPCv/ls4qL30vMlIQ9MXyPuPQlvyRIIz9PmzvmPDbIf8elc UkzCxVx2Y7NtbSw/4tVIinVsaOg4hYSvnUuWF3sOII/1mz8spT9b3h7Li5adn7Do7x ceWpIs8a/JwvnjzEGd8bzFXiZHNE1rhfxsc36nDaIIpMFZozelByoNKoXDl9ZhXgJY +9LrsZbpDjTc1IAWJODbTqcXl/cytdiGIVBwMhOahh3DzbiPAhDDeodzOpzeYwyP8r CKppzR//kmkPw== Received: from [192.168.104.112] (Sansfil-Eduroam-Externe-212-2.polymtl.ca [132.207.212.2]) by smtpout.efficios.com (Postfix) with ESMTPSA id 4SmTG55KTRzFpv; Thu, 7 Dec 2023 17:19:25 -0500 (EST) Message-ID: <866d40a8-4e0c-465c-ab8c-b5d864c1a668@efficios.com> Date: Thu, 7 Dec 2023 17:19:24 -0500 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] ring-buffer: Add offset of events in dump on mismatch Content-Language: en-US To: Steven Rostedt , LKML , Linux Trace Kernel Cc: Masami Hiramatsu , Mark Rutland References: <20231207171613.0592087d@gandalf.local.home> From: Mathieu Desnoyers In-Reply-To: <20231207171613.0592087d@gandalf.local.home> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,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]); Thu, 07 Dec 2023 14:19:56 -0800 (PST) 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. Thanks, Mathieu -- Mathieu Desnoyers EfficiOS Inc. https://www.efficios.com