Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp4987924rwb; Mon, 21 Nov 2022 14:59:28 -0800 (PST) X-Google-Smtp-Source: AA0mqf7xAgWu7obZETSuhfG9pctyUUIlsAqDpxZ9PDEKbeOEqvZd6jJFml4wgmVdttOo85D2oqiC X-Received: by 2002:a17:902:f813:b0:17f:8011:dd03 with SMTP id ix19-20020a170902f81300b0017f8011dd03mr1197764plb.59.1669071568562; Mon, 21 Nov 2022 14:59:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669071568; cv=none; d=google.com; s=arc-20160816; b=XKsXfltWwBqd5Mwn1enSszJ6MMvfx+qUxM0soMnjd7RMR6AYG2ismI7hu/8svWdRSI kYR/a3LJcHMMlAVXUpN0qsTLMINWwYT5Y5ITpV/3CZXnPRw9XYMFFVtMsSUo7BfqhXH7 4vgxt6/pJYpNTriV+6r4kogQFrmO7XeFhR0jsUSv39OxhuMUf1yX5b/FaF6paV/iKp/L hrlzFzU0CGV07xQ+yrm3QKv4x+6RKrvmjMv1EnassNDiKoyd0V51J7/pOMGxLIGSPjIz ne7yLwvCEpiSpsYyg6rc2KtqESXJb0Miq1B0upbkvX/kEJyUJLNIKMVnHbGiSF6uYXvY zT6Q== 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=YCNYMs0cZv9zQCDwJH71X2jQlt6w4hwp9C/iJzrrPhI=; b=NvQMYqL4qpeyJARh5Ws4lBM28L1KEloHVjeVAtQYweYxE6HxFsJG/XTQPFvr+R5+A8 nHjZ1FHn3Eh4cwYlgmvpvUYo5XNEYIp5NRUHQs3zpk/hTcjnQTN5lwKjYL/HfQl6H4Uf OhN75K6lidIToUxynoBjpwBqhaZVMUxVOIv4AJo1SPoxucXTee8lNZwXfQDn9fV5hvc3 eJQFjAfJQrUOb3kwPlTgqHLftqu1VON6awvEWzP0heKUU34ECBSx7jEZ2Cfi5En7UIdB gzIBvSUZbZgXepS9QtRfxbOraddZK/GduZyW68Vh7Wyn74OzAlTGHuDnCobMJ/jFRmAr MopQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jz0lZtAB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id kb8-20020a17090ae7c800b0020a755f2b83si4742419pjb.100.2022.11.21.14.59.17; Mon, 21 Nov 2022 14:59:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jz0lZtAB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232059AbiKUWTK (ORCPT + 91 others); Mon, 21 Nov 2022 17:19:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60696 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231961AbiKUWSb (ORCPT ); Mon, 21 Nov 2022 17:18:31 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A1F8854B01; Mon, 21 Nov 2022 14:18:10 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 5704FB8169E; Mon, 21 Nov 2022 22:18:09 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E82DBC433D6; Mon, 21 Nov 2022 22:18:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1669069088; bh=fnLEGCWU0CZRgBgvaBbuBKGV/UYuFQTTg3KVwwtUnK0=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=jz0lZtAB4JavAh0z4IOW5wDsEgkPlXszZH099BDoMFZaZ3So9nqgYTHo+Wgq4gO7M dR+wz34rtB3pWwGaMlT1iS66iV06T9LdU4gyxKyfDHmmHgTPFCmstYGJE/sZHyzRb6 ITVlYokpK1A2uosAtx6dp87P1Zl670aPD9MhogZ9IT52bwcsa+0pCqH6oHm3xAvukg TGxYBwSw8be/Pyf/mlJeVfmDHaxgSNA3CVbXxhRwzOBxuZrWg9y30y9DmmWOVLwNDH bzRXJF8oY7vYiFqNdaX9jlbF/L9BAy19YvhdTv6tT/gFSgFl2PKZnpXYf1NOAspfKL HcFrIVb/BpU7g== Date: Tue, 22 Nov 2022 07:18:05 +0900 From: Masami Hiramatsu (Google) To: Daniel Bristot de Oliveira Cc: Steven Rostedt , Masami Hiramatsu , Jonathan Corbet , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/4] tracing/osnoise: Fix duration type Message-Id: <20221122071805.49e316a39fb86859b5a3156d@kernel.org> In-Reply-To: References: X-Mailer: Sylpheed 3.8.0beta1 (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=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS autolearn=ham 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 On Thu, 17 Nov 2022 14:46:17 +0100 Daniel Bristot de Oliveira wrote: > The duration type is a 64 long value, not an int. This was > causing some long noise to report wrong values. > > Change the duration to a 64 bits value. This looks good to me. Acked-by: Masami Hiramatsu (Google) Thank you! > > Fixes: bce29ac9ce0b ("trace: Add osnoise tracer") > Cc: Daniel Bristot de Oliveira > Cc: Steven Rostedt > Cc: Masami Hiramatsu > Cc: Jonathan Corbet > Signed-off-by: Daniel Bristot de Oliveira > --- > kernel/trace/trace_osnoise.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/kernel/trace/trace_osnoise.c b/kernel/trace/trace_osnoise.c > index 78d536d3ff3d..4300c5dc4e5d 100644 > --- a/kernel/trace/trace_osnoise.c > +++ b/kernel/trace/trace_osnoise.c > @@ -917,7 +917,7 @@ void osnoise_trace_irq_entry(int id) > void osnoise_trace_irq_exit(int id, const char *desc) > { > struct osnoise_variables *osn_var = this_cpu_osn_var(); > - int duration; > + s64 duration; > > if (!osn_var->sampling) > return; > @@ -1048,7 +1048,7 @@ static void trace_softirq_entry_callback(void *data, unsigned int vec_nr) > static void trace_softirq_exit_callback(void *data, unsigned int vec_nr) > { > struct osnoise_variables *osn_var = this_cpu_osn_var(); > - int duration; > + s64 duration; > > if (!osn_var->sampling) > return; > @@ -1144,7 +1144,7 @@ thread_entry(struct osnoise_variables *osn_var, struct task_struct *t) > static void > thread_exit(struct osnoise_variables *osn_var, struct task_struct *t) > { > - int duration; > + s64 duration; > > if (!osn_var->sampling) > return; > -- > 2.32.0 > -- Masami Hiramatsu (Google)