Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1790242rdb; Tue, 20 Feb 2024 07:09:11 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXPmSs82fYKGNl22juM3f/M/1dYyhicnys94u5oO+CHN4vjSmLOj3JnR4hvWpZSAi4YjDvulgoNy8YYRn7zfQvyMMImTGNLgj17NQC/Ow== X-Google-Smtp-Source: AGHT+IEfQsXa+2tLmZciPXqM2fZOQUUQJrj1HN9MQAZ4Qzt/y/Ump0Lk5cP8vyvGtFuJwWcLW475 X-Received: by 2002:a05:6a21:626:b0:19e:ac67:13a9 with SMTP id ll38-20020a056a21062600b0019eac6713a9mr12487669pzb.19.1708441750763; Tue, 20 Feb 2024 07:09:10 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708441750; cv=pass; d=google.com; s=arc-20160816; b=iMOnDuEVAEfht7hZK65dDSGryfI1mPnOLqkxoQ1pQ0LA3tuuHTK4WsayO42STla5co iE2l+XN/LsZENpQ7wZHYL6OCUwI4zcjEIuO/wRaWEtu+ltGSznHdeOxnnIt9I4t5ouoW Mjxf3GYccxVr/k+2s4lkx8kIR6U51cgqKcmM+3Qd2xE80OIRxVrSGc4uaVx5if1NKjuX 47tE4ZmLzc1tG/aQbL7a54uiZz9KbScmb0cbka0FV8ntWCYd7hxusTu2d24zBAvbucqF MMKDWZcC/FFGVZILRRrgBnDugkk9vgIyBKNVjVGvuCwSwJ+3dFWIa0XOySf4nQFUnvbg tQUQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date; bh=pn7/gfV8yxNljR4rt8Ud42gW6nJIsqI9uco/ktnc6FM=; fh=ULYEGK9hgGhYbFgk0IN63oZBrKmxZUlIsZYw6V35xG0=; b=y65zzGb7yJh/YR9n4w2CkLXnxiM4JiHSjBKZG44WBTmCyt3dngYQm6KCN6XV8ZxinP /icTTpqd3DZi5lpSoiN8WU5UtzAGeomnkydPsb8U2JxCo8E8ATuyXJV+clW2alS95yDz hVLbuB8/uTpurTWUiYYy/xv4vR0EnHHiBosptBEh/dxNxxAYsN6VNGqzfSxWpqPXotdy 740DcM2Cn31cMO2Bhe5NnZb+Nt3KHj0nghg6Ws9/uVZ8pSIxxP+55nttReNNAW4PRvxM gGkzv+eUoxTim9iUPpPdYSWxOrpx7a7+YqrBB1VwOs6zSJIabNsZQ9lEFPiX9mAiXPCz GbUw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-73214-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-73214-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id pl7-20020a17090b268700b00299002bab6dsi6330959pjb.69.2024.02.20.07.09.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 07:09:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-73214-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-73214-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-73214-linux.lists.archive=gmail.com@vger.kernel.org" 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id B139DB23577 for ; Tue, 20 Feb 2024 15:07:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DC00673162; Tue, 20 Feb 2024 15:07:13 +0000 (UTC) Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 6478773169 for ; Tue, 20 Feb 2024 15:07:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708441633; cv=none; b=GOgE78rqxPX5xw+lpFFRUONhhFS+enhgAc/JcnezXFxdtqKxjXHwIDUCfP3DIHBSMcEuihvjdnQEHRbrWf1zElaggJdpo3wl8NzVtODKziX+9UR3Mnc4671RY/GZIFuFIx5Ql3a6Mta5USMtg/iQh1AtQF4FshPXsRz5Hm9Zcu0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708441633; c=relaxed/simple; bh=1YOAXq4n3TKhseMTUr23nV7sFBO6wOP38L/DOsPMQvY=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=imGPoo5HTpjKygc4Gc5gk5Y0jIpZBwB7sJLu7boPDRapv8HpDPRULgsxQm9Z9Bb7auBxA7f87BiOq1hSRmvwF1EtXp3oqxqbjPZjcQhVfdiR8B6br+BueOC1isWsmARk4OAJ1PG5Fi+4ixiOo3V1neeRglt3CZ8URgLHd0oZFXk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0D190C433C7; Tue, 20 Feb 2024 15:07:11 +0000 (UTC) Date: Tue, 20 Feb 2024 10:08:57 -0500 From: Steven Rostedt To: Mathieu Desnoyers Cc: Oleg Nesterov , wenyang.linux@foxmail.com, Masami Hiramatsu , Ingo Molnar , Mel Gorman , Peter Zijlstra , linux-kernel@vger.kernel.org Subject: Re: [PATCH] coredump debugging: add a tracepoint to report the coredumping Message-ID: <20240220100857.3f450059@gandalf.local.home> In-Reply-To: <776b842b-b19f-44bf-bc34-ac756fce7466@efficios.com> References: <20240217104924.GB10393@redhat.com> <20240219112926.77ac16f8@gandalf.local.home> <20240219170038.GA710@redhat.com> <20240219122825.31579a1e@gandalf.local.home> <776b842b-b19f-44bf-bc34-ac756fce7466@efficios.com> X-Mailer: Claws Mail 3.19.1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) 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=US-ASCII Content-Transfer-Encoding: 7bit On Mon, 19 Feb 2024 13:01:16 -0500 Mathieu Desnoyers wrote: > No ? Those hook on sched_process_free, which is the actual point where the > task is freed (AFAIR after it's been a zombie and then waited for by another > task). Bah, you're correct. It *used to* be attached to sched_process_exit, and the function callback still has that name. It was commit afcab63665742 ("tracing: Use trace_sched_process_free() instead of exit() for pid tracing") that changed it. > > AFAIU, "sched_process_exit" is issued close to the point where the task exits > (it should not go back to userspace after that). "sched_process_free" is done > when the task is really being removed. > > Between "sched_process_exit" and "sched_process_free", the task can still be > observed by a trace analysis looking at sched and signal events: it's a zombie at > that stage. Right, thanks for reminding me what I did ;-) I guess I'm starting to get to "that age". -- Steve