Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp1755453lql; Wed, 13 Mar 2024 07:23:38 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUJ6N6jZh8OgO0BfFKGUcqgqStfPRKjj52CL2XMarXv/VHOBF/QxfJVkTH9FjLtiEJAv5IbH4rDY2CK+dWy9RQBvoRfIbYhfi+mj1KmKw== X-Google-Smtp-Source: AGHT+IGuvLEKyc/tr3j+Cn9luqfVBFhvyBe1/rvLgDHj+oWJ6RxQGT1E3tFrFiDFJLf09vxMKlm+ X-Received: by 2002:a17:902:e74a:b0:1dd:a134:5680 with SMTP id p10-20020a170902e74a00b001dda1345680mr10848977plf.69.1710339817754; Wed, 13 Mar 2024 07:23:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710339817; cv=pass; d=google.com; s=arc-20160816; b=C1+tlMYiHyeeBqfv8wOCSDlX2FZ1qs7dtCFJpkHG/nxotCdcAfGyKUoTDq30aAy+xE UDcwTwYOMzcdq2RXV85Kwz2JAftpxeDRRJTNiyYPZr7VbDnI7ev/XPZTg0MRq4MyAbD3 zRs4iY1N5cC4YDPe21rou9yFQDX/Q29kNwSF7aPJpJUcNnzbA/ISXnQaRR/TXEjEdNBy 7eBSqoCkt31qT3sZuiwYPeBB6s8TsS77E1XDdqr388dRjqpi1uEYszHpIb642AnDvUdg hBX/ynv2Bk93T7D9gezPj5ysEyPc5I3sfLxvJQKBXvFFzycrN5Pz/x/DEWSf4Lhw+PRe speA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:dkim-signature :dkim-signature:date; bh=rI193fJDLU/y2cWHTwdgLD8Oka3XevL6LyppQimuzjM=; fh=Ui9pGx3ZNC8pmGUiDIsxDgorocN3pgLNdUyPxHh7n3g=; b=CTaZmDZHqQ9FYTVtWeviwGKOixYMfMqsCfrXVCzFmPqpDH9l33QorZ0L9f0W/DUYa3 oPwBLDpbWL0yTATlerG2/HvqRA5IafQp7OnAcRvkqSP8+6b/Ureka7/JZHO9gvWIrTIy MmDI4Lbw05zaIdrW++j6Bx7vLWdQW7V0TdWCxLn7lHG2wTCuO+9449c5l1XZCLDZwDHe cviBI/UKk866/bG7nbSDnbO6W6gRDGI5E5wFJ9Prq8j6zs5Sq2UM0q2UYx6K5IP3R6ib kefdaGGFFkz/PSRJ3HcsPOUtbfSx5jVnfOP/zez3hDeXxhXJKZFiYqNzKAFDKnh6+4qE 4CfA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=1hXvkL1Z; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=h8KyTIjh; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-101609-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-101609-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id ju22-20020a170903429600b001db8cd74953si8883615plb.112.2024.03.13.07.23.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Mar 2024 07:23:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-101609-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=1hXvkL1Z; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=h8KyTIjh; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-101609-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-101609-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id AD955288EEC for ; Wed, 13 Mar 2024 14:16:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7898746441; Wed, 13 Mar 2024 14:15:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="1hXvkL1Z"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="h8KyTIjh" Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 08517482D4; Wed, 13 Mar 2024 14:15:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710339355; cv=none; b=nXH9UY25J1WbaejIY/oIyUlx/XHcg06xD0a5aayyOyBqwxxZ8PQGJzcTpLawjtovohIg9jzVZx2JyiQ2G3/Qs473l+mIVAxuDlx8WpeyRA4ZMLTB8LEvycthT1gMUYT6smNEZqHBr5u4Ck8ru11dIpQaDVbFoGL1PMaHSVZOY2I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710339355; c=relaxed/simple; bh=WpNypiDUbIttvmRZkKiZ5UNvBc+73ezSZ8gMtTGp8RQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=DS1Ct7JooyWDbyK7czCMx6KLXLTEsHGSSawnGp04VF3VrYnO82VS8uVYALb4dwanW3I7TEMPU7fq8ccVde4AsaxdsITKGFnfHbvwQoq6/THliWRzTRqCamzFhwHnJM8Er188ZuUZIjR9kKo7iTZ/VOfetee7FqcyJm3v4twTW7U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=1hXvkL1Z; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=h8KyTIjh; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Date: Wed, 13 Mar 2024 15:15:50 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1710339352; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=rI193fJDLU/y2cWHTwdgLD8Oka3XevL6LyppQimuzjM=; b=1hXvkL1Zg/IhiS075mOGe9ZU0T4/6WK/nwiua1qSKzQlOHStZQrv4dOeJPtn9dUEF32h+b n51CM6FTNuHGeJhd4QgkruPmi18/fHD5PMfV3BsjnBhVa+olyUGzydvSUQtW3vhALmw7LU u+mrk9ru/rWzbgaQxNP48T/6WvEG3+OJhV/9X2sNVGQSLAfqMAkXBYyKHT+F/KEGU/2TJX MY2L84ig2L+cfjsXBNyzTQKBWV1UaPVr/nuudxR7DEdIQln7fIRnybIXlTp+bag9XMy2nL 7AL7HaSkH6qfgUIbmt5NbxEulDFAyEr8iD3dY3uvXHdAZ/PtNT/IzHI24tdVaQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1710339352; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=rI193fJDLU/y2cWHTwdgLD8Oka3XevL6LyppQimuzjM=; b=h8KyTIjhtVY8rAzk8nCvbHrXPCRFSv3lon8hw5z3qffzk7/z8PcZMD1+MD9UhiI4+i6T2B OJ6b0gBt196JxxAA== From: Sebastian Andrzej Siewior To: Arnaldo Carvalho de Melo Cc: linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, Adrian Hunter , Alexander Shishkin , Ian Rogers , Ingo Molnar , Jiri Olsa , Marco Elver , Mark Rutland , Namhyung Kim , Peter Zijlstra , Thomas Gleixner Subject: Re: [PATCH v2 0/4] perf: Make SIGTRAP and __perf_pending_irq() work on RT. Message-ID: <20240313141550.eG5aJcAq@linutronix.de> References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: On 2024-03-13 10:47:33 [-0300], Arnaldo Carvalho de Melo wrote: > /* For exec'd child. */ > static void exec_child(void) > { > struct sigaction action =3D {}; > const int val =3D 42; >=20 > /* Set up sigtrap handler in case we erroneously receive a trap. = */ > action.sa_flags =3D SA_SIGINFO | SA_NODEFER; > action.sa_sigaction =3D sigtrap_handler; > sigemptyset(&action.sa_mask); > if (sigaction(SIGTRAP, &action, NULL)) > _exit((perror("sigaction failed"), 1)); >=20 > /* Signal parent that we're starting to spin. */ > if (write(STDOUT_FILENO, &val, sizeof(int)) =3D=3D -1) > _exit((perror("write failed"), 1)); >=20 > /* Should hang here until killed. */ > while (!signal_count); > } >=20 > So probably just a test needing to be a bit more polished? Maybe. I'm not sure where this is coming from. Either someone should kill or the signal should be delivered but, hmm=E2=80=A6 If the signal isn't coming then it might one of those without a perf counter. > Seems like it, on a newer machine, faster, I managed to reproduce it on > a non-RT kernel, with one exec_child remaining: Okay, so no regression. That is something ;) > - Arnaldo Sebastian