Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp794388rwb; Fri, 23 Sep 2022 04:23:13 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4pO0WaleYCJrzTSdq0lKZf85IJdBTZRqG5yx+pYFjscD9trbAIjQMp0tf7vYmwEv1ZGmNO X-Received: by 2002:a17:907:c22:b0:77c:32e9:f056 with SMTP id ga34-20020a1709070c2200b0077c32e9f056mr6577781ejc.768.1663932193540; Fri, 23 Sep 2022 04:23:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663932193; cv=none; d=google.com; s=arc-20160816; b=pIu81PLD6CqUK1qeXGlSvcHd9qUynHjpzke7/KHR5Qtx6WGp91vcYQDJdUV410QDef aepxP5USKkfnjPtlRWI/lOC3KO9w8bm2xSWivlvqc5yk/sRpH4o6PXPd3zO4TCzClFn1 W321Pi/rpE6jsVCYAmYusuIb/s4Efx1/dBDJ1Ge3KKHkY3F2P93GlU6NnSIDIjpn7Xov 0qJYklodxQgTU3N9HFrQTRCgOu69qCTHBVuljHyzejZ1EIDW2IIdCW+iP52coX+4NIoX xiDFoc8bx+ouavarAgnXDEfxki93i+FaTSiTergL7aPAok7LmaekxdYgZdX8GaHumbpe QByQ== 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=zfgAtGE1lzX9cKdfzAVSb8jixMZFgP1pDMu4gWZzZHk=; b=XzohuUE1UL/ParVRuL9n74NT5TijLtjvY0DbetGHxcl0uKGUVdXwf4v87oV7/l+zJ2 5ULjAIHBzcNdNOa8u/yAjjvEZq5AsBRDjyPRAln5CLsEsq46BLmR5o6NHVCjej+6VmDx 8hHPq5lJqiH9Nn/1/MMnOChdGBB5R3SosqbkamKpEqIQT7wThsQpUtO7af5gAogRXBRq +YXENeyHLjaFoFu8P8Q7JrUWTDFH84uArG/N593Goqpt4AF5xe5DoPRal8giJHyjhU6P K/oQ7Ys/VmVbTi+fjkGLOSqP6nC65O+sFmTPAYBc12a/DuVlquTpuu6Njpy7W8eN0e8m v4jg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=Aceuu38o; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hw19-20020a170907a0d300b0077b7d7d5838si5392675ejc.293.2022.09.23.04.22.47; Fri, 23 Sep 2022 04:23:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=Aceuu38o; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229637AbiIWLN1 (ORCPT + 99 others); Fri, 23 Sep 2022 07:13:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34334 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229794AbiIWLN0 (ORCPT ); Fri, 23 Sep 2022 07:13:26 -0400 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C31C81332E4; Fri, 23 Sep 2022 04:13:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; 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=zfgAtGE1lzX9cKdfzAVSb8jixMZFgP1pDMu4gWZzZHk=; b=Aceuu38oHTVA5CFZWx2oP+KXGT XezfqgfXSkFakEfdz/3LwuygiHo3V15hhuBPQS170VUkaHE1bG5ZV1PzU9o/DFGvmJinwV1eNl3Oq rGbsOzCebKqKL3lGJXLzQrJIvbvRLYnkBVPHZVFzy4WrnqOlZZnpcQOoYmUD87Bd1/O3tMq+/O0EK 1IQ1HZ4YRymL+zTfhr3XCU/r50Hd/OH9ggDqL/+pLY3i1QbagUDCd+gabWy2DsQypRiaWsw1LqXPY W49KwuoTl+mh0gomtmls5Z/eytm5BcFPp2Ely9KrdoGMO+EoiMpKESbjx6l6eWfUPjP3RWwGdmefr C3j9c/5g==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1obgcL-00FCci-AK; Fri, 23 Sep 2022 11:13:13 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 5FB7B3001FD; Fri, 23 Sep 2022 13:13:12 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 222612BC047C3; Fri, 23 Sep 2022 13:13:12 +0200 (CEST) Date: Fri, 23 Sep 2022 13:13:12 +0200 From: Peter Zijlstra To: Mathieu Desnoyers Cc: linux-kernel@vger.kernel.org, Thomas Gleixner , "Paul E . McKenney" , Boqun Feng , "H . Peter Anvin" , Paul Turner , linux-api@vger.kernel.org, Christian Brauner , Florian Weimer , David.Laight@aculab.com, carlos@redhat.com, Peter Oskolkov , Alexander Mikhalitsyn Subject: Re: [PATCH v4 03/25] rseq: Extend struct rseq with numa node id Message-ID: References: <20220922105941.237830-1-mathieu.desnoyers@efficios.com> <20220922105941.237830-4-mathieu.desnoyers@efficios.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220922105941.237830-4-mathieu.desnoyers@efficios.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 22, 2022 at 06:59:18AM -0400, Mathieu Desnoyers wrote: > diff --git a/include/trace/events/rseq.h b/include/trace/events/rseq.h > index a04a64bc1a00..6bd442697354 100644 > --- a/include/trace/events/rseq.h > +++ b/include/trace/events/rseq.h > @@ -16,13 +16,15 @@ TRACE_EVENT(rseq_update, > > TP_STRUCT__entry( > __field(s32, cpu_id) > + __field(s32, node_id) > ), > > TP_fast_assign( > __entry->cpu_id = raw_smp_processor_id(); > + __entry->node_id = cpu_to_node(raw_smp_processor_id()); Very minor nit: perhaps: _entry->node_id = cpu_to_node(__entry->cpu_id); just in case it does a reload and finds a different value. > ),