Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp3096495rwl; Tue, 27 Dec 2022 04:25:10 -0800 (PST) X-Google-Smtp-Source: AMrXdXv8CdMHtkqbaApU2jmIeKhWzfj3QSU03tOveM/hSzxI8o0UTNBUDIc+ZwNQRx8ppGYcVQsO X-Received: by 2002:a17:902:f54a:b0:191:327d:ddc0 with SMTP id h10-20020a170902f54a00b00191327dddc0mr35342479plf.21.1672143910745; Tue, 27 Dec 2022 04:25:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672143910; cv=none; d=google.com; s=arc-20160816; b=Nv7l9tSbY/qt6NeUjDLkMHkjEH4xUwQjGXsxJO4eBOdYrgkS91/nb+QvpToav9YzZV HqhBB61N+pzEYzTsB+e+SzAdevxYi3fDC2AW+mvN7Gbek/9XBbNgNtNbpQ/UQa9pqV36 uMx/SN+FGvZNnX8o9lvL6rsT+CdkDWnuI5yXF60sqvWDLOyoTL0vwuMTOOKYYw4CKVj1 Vgjqf1xpP2T6ZlF1s+w00nmODxo0KSQ5uyLllP6hG7wGro0YxPHQaR6s97XnD8jPq/L/ bPx4iAKsJIjmNgnG3tZzWUgOu3u/x45cpksdL724wGkhAZYmoiudL46iOY2k1gXGPc8S SXvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=368eU1mZ65Uq85cJsmJl+WRGtJcEnaYUkhUke21f2Pg=; b=adTXGp8hDsBrROJSonAghfPvPPq0fdcRT7QkhjKFYkXevwuO8HDzo6PLhplq3gbAzo h6VY1o6n7o/rBsDUvcB7mbVt42uCQDezQDbS6jSdJr5ez7bMpw+t93z5g61ZjRvKNhT3 8mtGCR4cwg9h33KZmd+ZUKeY8CGDwyVQPraB+/uaxpc9q07/10u1JtWpcrENDllgBW98 An85gvX26Aj9DHEiUCmPWKFpTwqZhaGc7RKeTcPd5QLG9GZhI6/l42rDaP/WLkrzDnaf +rOvXcbW4NMQbgbTsLIG1mjpgevj5bGZTZdGYHXd5SqIC0AGQ2adpkTaRKDofV6Evv8X pajg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b="m2N/wkY7"; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=pBPHhGNA; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b18-20020a170902d51200b00189e2062212si14373907plg.503.2022.12.27.04.25.02; Tue, 27 Dec 2022 04:25:10 -0800 (PST) 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=@linutronix.de header.s=2020 header.b="m2N/wkY7"; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=pBPHhGNA; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232283AbiL0MPR (ORCPT + 66 others); Tue, 27 Dec 2022 07:15:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53244 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232047AbiL0MOj (ORCPT ); Tue, 27 Dec 2022 07:14:39 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 68CCADFF; Tue, 27 Dec 2022 04:13:52 -0800 (PST) Date: Tue, 27 Dec 2022 12:13:49 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1672143229; h=from:from:sender:sender:reply-to: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=368eU1mZ65Uq85cJsmJl+WRGtJcEnaYUkhUke21f2Pg=; b=m2N/wkY7531/5bBoAzjxqCeRd5w//uCmI0Nq2KRtCqTP4zd2lNuL9ffpfetBJsVaVOjyTe A8cmfHC0b+HbnYaIDww3smy+khFukbCrSmsSiru1BmkULcVyYnXKxGFP+76xiT98aA//Kb ZvmROY70eDwxxjclI80EvXFviXmFbjRaI9JMUOssm4Mt9S+Bxe9awZu3Oj7QRr9zVzK69j M/nyRDLJ5DuEHLOs0bc8AOllzjxdCGfpN7S6BnPZJPdDlsltmo1rcDT8gTu6sogeEZ5wph 6DRU3Jigo83jIANgPApKfxbrVGWtVe6D4RuawK1Aws4h3Wt9MyMQqvGJkSmmJQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1672143229; h=from:from:sender:sender:reply-to: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=368eU1mZ65Uq85cJsmJl+WRGtJcEnaYUkhUke21f2Pg=; b=pBPHhGNA48MocS4bS/bKoTGmXnjlfYbp96FecDv+o01eKz6/n0guclYMR+U0AC04aNmOeB 0NP1lvWcf3sl1ZDw== From: "tip-bot2 for Mathieu Desnoyers" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: sched/core] tracing/rseq: Add mm_cid field to rseq_update Cc: Mathieu Desnoyers , "Peter Zijlstra (Intel)" , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20221122203932.231377-22-mathieu.desnoyers@efficios.com> References: <20221122203932.231377-22-mathieu.desnoyers@efficios.com> MIME-Version: 1.0 Message-ID: <167214322913.4906.16315668635920081365.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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_PASS 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 The following commit has been merged into the sched/core branch of tip: Commit-ID: 14a8644d4f76fb4afdfcc46e9193af867241bd42 Gitweb: https://git.kernel.org/tip/14a8644d4f76fb4afdfcc46e9193af867241bd42 Author: Mathieu Desnoyers AuthorDate: Tue, 22 Nov 2022 15:39:23 -05:00 Committer: Peter Zijlstra CommitterDate: Tue, 27 Dec 2022 12:52:15 +01:00 tracing/rseq: Add mm_cid field to rseq_update Add the mm_cid field to the rseq_update event, allowing tracers to follow which mm_cid is observed by user-space, and whether negative mm_cid values are visible in case of internal scheduler implementation issues. Signed-off-by: Mathieu Desnoyers Signed-off-by: Peter Zijlstra (Intel) Link: https://lore.kernel.org/r/20221122203932.231377-22-mathieu.desnoyers@efficios.com --- include/trace/events/rseq.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/trace/events/rseq.h b/include/trace/events/rseq.h index dde7a35..823b47d 100644 --- a/include/trace/events/rseq.h +++ b/include/trace/events/rseq.h @@ -17,14 +17,17 @@ TRACE_EVENT(rseq_update, TP_STRUCT__entry( __field(s32, cpu_id) __field(s32, node_id) + __field(s32, mm_cid) ), TP_fast_assign( __entry->cpu_id = raw_smp_processor_id(); __entry->node_id = cpu_to_node(__entry->cpu_id); + __entry->mm_cid = task_mm_cid(t); ), - TP_printk("cpu_id=%d node_id=%d", __entry->cpu_id, __entry->node_id) + TP_printk("cpu_id=%d node_id=%d mm_cid=%d", __entry->cpu_id, + __entry->node_id, __entry->mm_cid) ); TRACE_EVENT(rseq_ip_fixup,