From patchwork Tue Dec 27 12:13:49 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: tip-bot2 for Thomas Gleixner X-Patchwork-Id: 36859 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp1361077wrt; Tue, 27 Dec 2022 04:16:21 -0800 (PST) X-Google-Smtp-Source: AMrXdXt9vcY62fVhtnoKoC20Q4+VabSCdk4ApDpdwDMHG9ohxb4GxBsi/hnX5y8VX1XN6y66wbxW X-Received: by 2002:a50:fe0c:0:b0:45c:834b:f2ad with SMTP id f12-20020a50fe0c000000b0045c834bf2admr17166303edt.42.1672143381251; Tue, 27 Dec 2022 04:16:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672143381; cv=none; d=google.com; s=arc-20160816; b=NeRUYrODDl8gxf6p96aeVSNB858jGR5vs4lvxhmuMgd+prewaFQoB8+XBu5bCMWA1S ipRo8mtWCbd1IgcPpYyPQFnby0RkCmvX+n0rQ3pVK8Ecr03Y0UT52cGUWM3n95ZSe0+/ +hfbU44pZgswmVYgK98j6fSONVGSZtYds/Ih+AfKccU3A/x8NqUI83Nh0U5AzlqkEIrj g0gA7LxBaJEKzyfGYLGLaXH81ulawSkbOU5hiCFPuI2i7CKlS3gLJZSMZGQB22lDJvBo fuSahh/goz7paKnSaby0ktEQ81MGDJtzFH3beu431brCRhrhRXF4bX/Oowk/Yu5aNSmf h9jw== 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; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cr16-20020a170906d55000b007c19477f048si11707344ejc.1007.2022.12.27.04.15.57; Tue, 27 Dec 2022 04:16:21 -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; 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 + 99 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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750230391907122197?= X-GMAIL-MSGID: =?utf-8?q?1753369418066712722?= 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,