From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7DF3F2054F8; Thu, 12 Dec 2024 15:25:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734017124; cv=none; b=tUSZkQTmVzzk/1/u2hB5/hi76eafMI5dp28/gMeKZqUc3SfuMy+JYXunKj10X7gWbLnWWYmCJiAVvYOa7GdgFtMXmxkOo1R2PuiIELaE9fW9PdH88edIVptjGGemmndv4emSqoa42AUuppXJzCCHitA1ypHz4OgFAb/VZPJDguM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734017124; c=relaxed/simple; bh=UX2n90SaQvJakUquo5R/KHgXgFusCtjPjcu0bGoEuQc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=qEhip4vLoJay4Odo3f3iCGwdeqCliyfxGnrsLO8flspJsMJCPdit9gNvRTV7Syp8dLftdPAKH8MBbuLkis4g4MqaVs7osBemyvWa4qAAw1bv3GtSX7wX0Np4GWOyhwi5NTnJQ+xBxbuzNqAsj+9Anxrr/pdVSkelSKgiQGjbo3U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=P6WQKU8I; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="P6WQKU8I" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E12C9C4CECE; Thu, 12 Dec 2024 15:25:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1734017124; bh=UX2n90SaQvJakUquo5R/KHgXgFusCtjPjcu0bGoEuQc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=P6WQKU8IRNVaL2fdin9DS7bUwxm/U+i8AHb/IVgjx/pe8dsNt4V0DN7Ns02kbHiLe hpqgeiVe/V0Mdmn0h9P3mt3i/ydlvLG6f0uE8cttXqmM20HgPLapCZFU7wg8aM0wxQ 76i+bvRZRYW7cURWt/ud/h4YJB6fwq8/UIbupYv8= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Attila Fazekas , Tomas Glozar , "Steven Rostedt (Google)" , Sasha Levin Subject: [PATCH 6.12 360/466] rtla/timerlat: Make timerlat_hist_cpu->*_count unsigned long long Date: Thu, 12 Dec 2024 15:58:49 +0100 Message-ID: <20241212144321.003515853@linuxfoundation.org> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20241212144306.641051666@linuxfoundation.org> References: <20241212144306.641051666@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.12-stable review patch. If anyone has any objections, please let me know. ------------------ From: Tomas Glozar [ Upstream commit 76b3102148135945b013797fac9b206273f0f777 ] Do the same fix as in previous commit also for timerlat-hist. Link: https://lore.kernel.org/20241011121015.2868751-2-tglozar@redhat.com Reported-by: Attila Fazekas Signed-off-by: Tomas Glozar Signed-off-by: Steven Rostedt (Google) Signed-off-by: Sasha Levin --- tools/tracing/rtla/src/timerlat_hist.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/tools/tracing/rtla/src/timerlat_hist.c b/tools/tracing/rtla/src/timerlat_hist.c index f6aa83ff15659..ae55cd7912833 100644 --- a/tools/tracing/rtla/src/timerlat_hist.c +++ b/tools/tracing/rtla/src/timerlat_hist.c @@ -62,9 +62,9 @@ struct timerlat_hist_cpu { int *thread; int *user; - int irq_count; - int thread_count; - int user_count; + unsigned long long irq_count; + unsigned long long thread_count; + unsigned long long user_count; unsigned long long min_irq; unsigned long long sum_irq; @@ -304,15 +304,15 @@ timerlat_print_summary(struct timerlat_hist_params *params, continue; if (!params->no_irq) - trace_seq_printf(trace->seq, "%9d ", + trace_seq_printf(trace->seq, "%9llu ", data->hist[cpu].irq_count); if (!params->no_thread) - trace_seq_printf(trace->seq, "%9d ", + trace_seq_printf(trace->seq, "%9llu ", data->hist[cpu].thread_count); if (params->user_hist) - trace_seq_printf(trace->seq, "%9d ", + trace_seq_printf(trace->seq, "%9llu ", data->hist[cpu].user_count); } trace_seq_printf(trace->seq, "\n"); @@ -488,15 +488,15 @@ timerlat_print_stats_all(struct timerlat_hist_params *params, trace_seq_printf(trace->seq, "count:"); if (!params->no_irq) - trace_seq_printf(trace->seq, "%9d ", + trace_seq_printf(trace->seq, "%9llu ", sum.irq_count); if (!params->no_thread) - trace_seq_printf(trace->seq, "%9d ", + trace_seq_printf(trace->seq, "%9llu ", sum.thread_count); if (params->user_hist) - trace_seq_printf(trace->seq, "%9d ", + trace_seq_printf(trace->seq, "%9llu ", sum.user_count); trace_seq_printf(trace->seq, "\n"); -- 2.43.0