From nobody Sun Dec 14 14:08:28 2025 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.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 1E53A22D4F0 for ; Thu, 16 Jan 2025 14:50:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737039013; cv=none; b=s0YiX3k3UKhEiXqCKVPR8G/HNAsWcv/0xx5At6z58nyPxLzPSwTY1tzMS/MsgffhW7PIQRb7u2OYhqTiiZaw2z1+LzGYSRrG4v/Jf/zaRM7EHHag92ZdctPOtBhGWMafT2EMoJ+nKBYo9jdvV5jUW1vDqkSkQaRHdJ0CRyMZUH8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737039013; c=relaxed/simple; bh=ZA0uznOxxOkReK0eBx1x1YFyXkxnbMJp2BWmAkgSaH8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=fZ1iZXUj6DyCBfkj6a3R87xZQXY0SvH8UkVbZnqPoIhlsaEr1CV3iOhba659qrd8Aps/D2QOWUj8nzKMsf3jNY/u6AEeQSSEfSy7rCpYuTNRGPKDBLVSyMqBZZr9kRoNMuxLq1EOOq7TdGLVrRmQC8scyKrnap3B7DOA5dzxPIo= 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=dGwbRMkL; arc=none smtp.client-ip=170.10.129.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="dGwbRMkL" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1737039010; 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=ljB/jTPeegmqKMNR9/yFI/zpZzn2PMwEe4k+JPxJfXk=; b=dGwbRMkL+3T4j/xwerdos48T7425Kk6QnaBVM2MyFHoW4tjjf8zPLxBoyet0IxCLkpZSqK lBonNX7joMb3LdPvUM30fmVd7ZiUILtP3hACboD/ZNoDO3QENcg4XFfTEcga0RO6FRh8nB Z8x33tJ+CMgNAuihXY7c76LwurapBxE= Received: from mx-prod-mc-05.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-3-snPktqXaNYGPrE2floSaGw-1; Thu, 16 Jan 2025 09:50:08 -0500 X-MC-Unique: snPktqXaNYGPrE2floSaGw-1 X-Mimecast-MFC-AGG-ID: snPktqXaNYGPrE2floSaGw Received: from mx-prod-int-04.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-04.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.40]) (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-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 9DF351955F67; Thu, 16 Jan 2025 14:50:07 +0000 (UTC) Received: from fedora.brq.redhat.com (unknown [10.43.17.159]) by mx-prod-int-04.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 234E319560BF; Thu, 16 Jan 2025 14:50:04 +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 5/5] rtla/timerlat_top: Abort event processing on second signal Date: Thu, 16 Jan 2025 15:49:31 +0100 Message-ID: <20250116144931.649593-6-tglozar@redhat.com> In-Reply-To: <20250116144931.649593-1-tglozar@redhat.com> References: <20250116144931.649593-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.40 Content-Type: text/plain; charset="utf-8" Apply the changes from the previous patch also to timerlat-top. Signed-off-by: Tomas Glozar Tested-by: Gabriele Monaco --- tools/tracing/rtla/src/timerlat_top.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tools/tracing/rtla/src/timerlat_top.c b/tools/tracing/rtla/src= /timerlat_top.c index d21a21053917..d358cd39f360 100644 --- a/tools/tracing/rtla/src/timerlat_top.c +++ b/tools/tracing/rtla/src/timerlat_top.c @@ -903,6 +903,14 @@ static int stop_tracing; static struct trace_instance *top_inst =3D NULL; static void stop_top(int sig) { + if (stop_tracing) { + /* + * Stop requested twice in a row; abort event processing and + * exit immediately + */ + tracefs_iterate_stop(top_inst->inst); + return; + } stop_tracing =3D 1; if (top_inst) trace_instance_stop(top_inst); --=20 2.47.1