Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1541657pxb; Thu, 4 Feb 2021 16:13:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJwb3VMd6wL9PmZVmXZWLJYSBRLPHv6zZbRh8sR5fhgYK1TX5L5zhj3Py36K5HbhnO+4jdoL X-Received: by 2002:a05:6402:524a:: with SMTP id t10mr1064404edd.270.1612483987697; Thu, 04 Feb 2021 16:13:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612483987; cv=none; d=google.com; s=arc-20160816; b=wSGSv6MLJ9Dzm7OQkfTkBLzf4sO/JncwYmHpowzPjfQVFa66n8cndR8SEmpNx5j2k1 OI2d1l3ddmlh59L/q0bbFX6IE1FcJI7EvjsXr+ZPUlnZz92hN4sMTXfsG9BvYNgs7w11 4E+3WZHNsbwoGKPi7cCzG99IVZvUNqbT+qUfm/GqE5cu99i6RESZ/4S91DMgmnZ3HLHu /dRl8ztDNbeaN288LoIg7MlPclf6lBBoX7sLA3GMDGb3PYEJxf0nKVLwLivPVqNmJlJz KTZO8pkYbepAkO4UXSlayybPbYljrBuw4hs1cHbyBaWjmL+HtITpjM6th/PAXcdZ/A9A ogfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=ePYsbz/Ln3PkjTT3PpYfNH1nViM4YQOhcoRTdWBwceE=; b=ToBh0IfPQ61XTU4DYT54GGO7UuXbwO9s/m9eACFQKtULT56LA+k3JZCoy5cieXk1+0 3yGGy7v3gq8VWcXfb4mzhRvnUjOKWp3lRUBgmPCbwC6b+iAk53TV2Yyv9XcB0x7tHqM8 xkl4utrYmR0vnSz5z8ZsfTCCuz5gTAbKvDggOJbVp02sAQV/i0IKG0wUtNYZ0fJGD7qU FLomaaTwCwauxmj1eynoyg4MDISUBbfu57TEAMEhtw7lrDAInnyxx5znW3ZawPlRnPJo o+Ziupss+MosF9a+gY8h895/l5po7fDLkoTBBvlQgFbwOLh8FLhorPsS9FrpAn+DaNzY DnDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=merlin.20170209 header.b=JmjcodUI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id mp42si3797215ejc.119.2021.02.04.16.12.43; Thu, 04 Feb 2021 16:13:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=merlin.20170209 header.b=JmjcodUI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236253AbhBDNHt (ORCPT + 99 others); Thu, 4 Feb 2021 08:07:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36546 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236225AbhBDNHs (ORCPT ); Thu, 4 Feb 2021 08:07:48 -0500 Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BA1F6C061573 for ; Thu, 4 Feb 2021 05:07:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=ePYsbz/Ln3PkjTT3PpYfNH1nViM4YQOhcoRTdWBwceE=; b=JmjcodUIScdoj1V6E/QIco7ZHN LPwf2oXsyFswzerSBjzhEREGzqFuNGFp69ubOQ72aRBfEXC+iFzFzHoxKLDT1BGxkKk/8IAe5hD8L i6UNsmv8l/FmXQ3tAype+dCDQpB2KyUUDhlPFxM8kiuJLsYueD95r443t1pJ+51hfZ3opOovTrwrW Lxo7SspRcSuLdy1E3D827H3y3RgVt24D6px8rqYcvnuwTiojXtAXcnRQnnbfktQnRZJmAt5ArXCu8 UKblZ/xibAwtx3nQCAsQA0Jm89SINP4e8/IWqiuo1ZXUg2cJ4wDXw8BpnrfdWQvPwhb4XQRX+PUNF UuO8vVpQ==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1l7eLd-0004xM-2c; Thu, 04 Feb 2021 13:07:01 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 8336030066E; Thu, 4 Feb 2021 14:06:59 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 6842B2138F7C2; Thu, 4 Feb 2021 14:06:59 +0100 (CET) Date: Thu, 4 Feb 2021 14:06:59 +0100 From: Peter Zijlstra To: Dmitry Vyukov Cc: Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Will Deacon , LKML , Matt Morehouse Subject: Re: Process-wide watchpoints Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 04, 2021 at 01:09:13PM +0100, Peter Zijlstra wrote: > And I need to dig into that fcntl() crud again, see if that's capable of > doing a SIGTRAP and if it's possible to target that to the task raising > it, instead of doing a process wide signal delivery. Hmm, so it might be possible to extend SETOWN_EX to allow {F_OWNER_TID,0} to mean any current thread. And I think SETSIG can be used to set SIGTRAP, although I don't see it setting the fields you wanted, not entirely sure that's fixable.