From nobody Mon Feb 9 21:20:02 2026 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (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 BC9A82116F8 for ; Thu, 23 Jan 2025 14:24:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737642263; cv=none; b=ctMG/jFNRRPHn+Jpn2jggKV65FqWlqOaajmwaMCThOnhrNOmOVaoEqbHCd2rRWws1iiDbiyWwHoORmyyB1xSqQhBiwpWzSD2qfO5IBOzKYepisLGLPI7QUo3+GAPAcLXTLIkeg4ctCXdqW63mm+G15+vUlsW1mukrL8hIeIYgXk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737642263; c=relaxed/simple; bh=vzV1pu569wUAZZPK2GM3xIcUxpgyTnYsnbHAqylWgVM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=WY6Q3PhjytTcXA/5OajmzzuCAYJgkbEYkr/RIXDdx8uvmZwPcO8f5lAjZsaI8CMUPiLpQtbVOz1abyasFC8tu+jj3HvwOAvRjaEpKrNsm8vAcWB7U6dOEvKIdVCW2JjzPksHHgvj7qszvG7fSPwGkXm20R+aw9vezjrPNA4vE1M= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=WXGFsaAN; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="WXGFsaAN" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1737642261; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=vhEbJ0twsd+a13mE/uEYxjwrWT3AcdPk5UPVwuPtOrE=; b=WXGFsaANcMYs26m9WQ92mF6+KSRWMDmR4HTrzNzWWDHnNiZsWmFNco3YTyMfu8JwJMOWUr pYA0kh7RHOexRTIu9H6DKatqXQ4nYzbgjXuelIIZ3Dn+FJusQVfCTW6x1tFHJPm/eWK7+U +Kz/qddrnC0mZf9obTHXTNfvBrbcDs0= Received: from mx-prod-mc-02.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-588-OUpqexOXM2qDqRPhMcYNVw-1; Thu, 23 Jan 2025 09:24:16 -0500 X-MC-Unique: OUpqexOXM2qDqRPhMcYNVw-1 X-Mimecast-MFC-AGG-ID: OUpqexOXM2qDqRPhMcYNVw Received: from mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.15]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-02.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 90E261955DCF; Thu, 23 Jan 2025 14:24:15 +0000 (UTC) Received: from fedora.brq.redhat.com (unknown [10.43.17.159]) by mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 6AD28195608A; Thu, 23 Jan 2025 14:24:13 +0000 (UTC) From: Tomas Glozar To: Steven Rostedt Cc: linux-trace-kernel@vger.kernel.org, linux-kernel@vger.kernel.org, John Kacur , Luis Goncalves , Gabriele Monaco , Tomas Glozar Subject: [PATCH 4/4] rtla: Report missed event count Date: Thu, 23 Jan 2025 15:23:39 +0100 Message-ID: <20250123142339.990300-5-tglozar@redhat.com> In-Reply-To: <20250123142339.990300-1-tglozar@redhat.com> References: <20250123142339.990300-1-tglozar@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.0 on 10.30.177.15 Content-Type: text/plain; charset="utf-8" Print how many events were missed by trace buffer overflow in the main instance at the end of the run (for hist) or during the run (for top). Signed-off-by: Tomas Glozar Tested-by: Gabriele Monaco --- tools/tracing/rtla/src/osnoise_hist.c | 1 + tools/tracing/rtla/src/osnoise_top.c | 1 + tools/tracing/rtla/src/timerlat_hist.c | 1 + tools/tracing/rtla/src/timerlat_top.c | 1 + 4 files changed, 4 insertions(+) diff --git a/tools/tracing/rtla/src/osnoise_hist.c b/tools/tracing/rtla/src= /osnoise_hist.c index 214e2c93fde0..21376c00bcb3 100644 --- a/tools/tracing/rtla/src/osnoise_hist.c +++ b/tools/tracing/rtla/src/osnoise_hist.c @@ -440,6 +440,7 @@ osnoise_print_stats(struct osnoise_hist_params *params,= struct osnoise_tool *too trace_seq_reset(trace->seq); =20 osnoise_print_summary(params, trace, data); + osnoise_report_missed_events(tool); } =20 /* diff --git a/tools/tracing/rtla/src/osnoise_top.c b/tools/tracing/rtla/src/= osnoise_top.c index 45647495ce3b..3d3daf12538d 100644 --- a/tools/tracing/rtla/src/osnoise_top.c +++ b/tools/tracing/rtla/src/osnoise_top.c @@ -280,6 +280,7 @@ osnoise_print_stats(struct osnoise_top_params *params, = struct osnoise_tool *top) =20 trace_seq_do_printf(trace->seq); trace_seq_reset(trace->seq); + osnoise_report_missed_events(top); } =20 /* diff --git a/tools/tracing/rtla/src/timerlat_hist.c b/tools/tracing/rtla/sr= c/timerlat_hist.c index 4403cc4eba30..c18b3456a3d5 100644 --- a/tools/tracing/rtla/src/timerlat_hist.c +++ b/tools/tracing/rtla/src/timerlat_hist.c @@ -656,6 +656,7 @@ timerlat_print_stats(struct timerlat_hist_params *param= s, struct osnoise_tool *t =20 timerlat_print_summary(params, trace, data); timerlat_print_stats_all(params, trace, data); + osnoise_report_missed_events(tool); } =20 /* diff --git a/tools/tracing/rtla/src/timerlat_top.c b/tools/tracing/rtla/src= /timerlat_top.c index 059b468981e4..8869a0988955 100644 --- a/tools/tracing/rtla/src/timerlat_top.c +++ b/tools/tracing/rtla/src/timerlat_top.c @@ -435,6 +435,7 @@ timerlat_print_stats(struct timerlat_top_params *params= , struct osnoise_tool *to =20 trace_seq_do_printf(trace->seq); trace_seq_reset(trace->seq); + osnoise_report_missed_events(top); } =20 /* --=20 2.48.1