Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2058746rwb; Thu, 17 Nov 2022 06:06:07 -0800 (PST) X-Google-Smtp-Source: AA0mqf7Qgje2M0EZxcPIgOzzp+hluLtwdMI68cNyFO/QTmTGjTnAd8WNbA89fpzU2DHVK/OONJD2 X-Received: by 2002:a05:6402:5010:b0:467:60bd:41a1 with SMTP id p16-20020a056402501000b0046760bd41a1mr2339004eda.97.1668693967092; Thu, 17 Nov 2022 06:06:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668693967; cv=none; d=google.com; s=arc-20160816; b=KplFngMrwg278VMacOVzTcVjdzSU03tr9bLMl8YJzPKtD8MiZnPzCrVgn02Z5qKpdw Lyi5VwDcu+s2m2PMB9vYc2iKOKT5CemIM71FN8wLtqL8DsczcPqOgGlvlmZ5YA1XpWnI HvPU0dAXJBe9nWMDavqhVJA8dWQj2KOCPJNxrunhF4KlvxrUOLCNaJ9HDRd5nlfb5eiZ XJTt5LdqXoEuLR6/jsg+V+PVdC9DZcx5bx5y6RTOHKj4bovLvGH+Hmws+yhz1+A9IcHy /TvJgfiD5j0QtTvuruBOq7XdS0eAyi6pAMK9q+vXNnoeWmwxbhQuXFQKY8xiM1xQXXKP Xj6A== 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:date:subject:cc:to:from :dkim-signature; bh=kO1emzFMESGmQO4MZxbGE80+0G7F6KLX+OpvoiYrYtk=; b=Tt4YboutZjvYJQ9UA2Hn35RaqJD2xpKlLlEscjrVYHA21X43vdkFQ9yxuxKtj8/A2k VLYr8MyX2UGDniQO5FXlO6hPJVT9QhfqGTapGBhC9kH3RuReN35HCjN5i/qRyk27cUU8 MiXXmRG6FN6jWQ6mGw+n+B+7Rmp+qah8qc/2OEyG0ZlVHlWDaQYRHF72QuvIjd9MlZmi WgnM3X7y8X7PH8R6JHzWfxcsFh1rnYMldidNe2n/x3nTbY/Nqgrtjw7xK80uA6ryzM+o a9aTO6bjmF5kLnaRIHz+OHudboZH38aN98HTUPeA12sh7cgYhLsew4kOfzZ4JlHmHfPa DzCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VD94cs96; 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 c6-20020a0564021f8600b00461ebc19dcesi881082edc.56.2022.11.17.06.05.44; Thu, 17 Nov 2022 06:06:07 -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=VD94cs96; 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 S239145AbiKQNqn (ORCPT + 92 others); Thu, 17 Nov 2022 08:46:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55620 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239700AbiKQNqf (ORCPT ); Thu, 17 Nov 2022 08:46:35 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8F3B871F2C; Thu, 17 Nov 2022 05:46:30 -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 3907EB8206F; Thu, 17 Nov 2022 13:46:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 435A9C43470; Thu, 17 Nov 2022 13:46:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1668692787; bh=EecJOGEYPYmhzQXRbQW6amNA4J6GI5CRTrUe6xQE9Eo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VD94cs96rvcv+HTKDHtXHBa9557YsZ1cfJAdiIgKhDrQUljrl2odEWzQBEG3P+XCw kV+NOMlKb30H4p34KAQr2EB5mHAxV1Mt/rPdRF6iIxpjtULTOGXlDgpkxuQigmC8Qk ic1CM3D/92pjBxit6yL62I+PAQBvodcazJMRoTCf+FC9ksy4hvyqvHG3gtoHL6lrLg qfI1He2OkgzqGoeaDlFkuH2gazPIIho7egqa5lO/qVrQ3p9Y5YK9EajtD6va3ir1Bj shH7miKRiFm5EI6g87OQac6FPL69xgYqodJ8Gg9MJvK2h4NmOMib2egyWeoR5UHirj T0Ak79YuHK7Ew== From: Daniel Bristot de Oliveira To: Daniel Bristot de Oliveira , Steven Rostedt Cc: Masami Hiramatsu , Jonathan Corbet , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/4] tracing/osnoise: Fix duration type Date: Thu, 17 Nov 2022 14:46:17 +0100 Message-Id: X-Mailer: git-send-email 2.32.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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,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 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. 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