Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp1186215pxy; Sat, 1 May 2021 06:16:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxNDJZkv4p6AgCQylOHJGkcnEpQXax6EyCGUj3C9DYD4SSH57WMZGdtJcmkJQi/lv9dJ6J/ X-Received: by 2002:a05:6402:2686:: with SMTP id w6mr11047046edd.226.1619874989608; Sat, 01 May 2021 06:16:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619874989; cv=none; d=google.com; s=arc-20160816; b=wEc3zgmeRypi9j0MDXwA8uu2hxYyfYyASjqRp+rFD3lY4tfTgaQSNWVdlbHyMENJ+G l2ePNDq5RS8P4jd9VSkKyQsMBRrIK6NqcnLhHO0CefalYWqgzC0J4odgzsehhn6XkJjG LI2Va279kkuPv+BSiJtz5/CZAlhHslaL6pQPrHuVoFUPA13AxH1x77EVAReOZLMJ2/8B cIl9ip/1q1kyRhKGIZLiBuNBnc7wV2xG9b+bx854qy9ToNEDnx1mbqP7AXmiDSSrq2Z4 Kl4V+mTjyBRMkpJmEnfRmW5yBqgXwbiS1xssiedZgMhJx6Ucv9nSMuqCQbsuKmfBLTgH yF5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=7tj8XJVPj7gTbWlIzlx37hZ5YTnnQOX8T2oxIQvPfKM=; b=yGJlaGvsf/2Ov+t34pt7Lc0gxRXF/9uO3wPstrJqj7b4T0aZllBMSt5pIr3hZIJ4NK ezptBPM0w4aYeo1di4Mm23npK+urGQ2hnHPbTnQi2i3hagLFK2FNqZELE5KeRf1d4Nm5 rV/42GYUnFBNrgU3F12qmDYOln+Y4EKbA/m6n2bhYXanI2m8BUH1QrDW2Tjl8EA72/bf QK36jEY7xbX94RfOWfoAza0NcnbRp/NDOJ8XsFSoZDGVvYDODT+RhIw1eXGDqS+iuXJp GQW2cQAojPXkGJsQeO8CtIg+m7LlkkHWUgQVLtWJRThoqsaYpIyxqn6bo1FXoKPQbOqu i0uQ== ARC-Authentication-Results: i=1; mx.google.com; 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 kl2si7105724ejc.644.2021.05.01.06.15.36; Sat, 01 May 2021 06:16:29 -0700 (PDT) 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; 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 S232178AbhEANL5 (ORCPT + 99 others); Sat, 1 May 2021 09:11:57 -0400 Received: from mail.kernel.org ([198.145.29.99]:48686 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232129AbhEANL5 (ORCPT ); Sat, 1 May 2021 09:11:57 -0400 Received: from oasis.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E494B61462; Sat, 1 May 2021 13:11:05 +0000 (UTC) Date: Sat, 1 May 2021 09:11:04 -0400 From: Steven Rostedt To: Cc: , , , , , , , , , , , , Subject: Re: [PATCH 1/2] tracing: Add a trace for task_exit Message-ID: <20210501091104.418765bd@oasis.local.home> In-Reply-To: <4bb24db4-f720-f5e7-9054-36bdeaee1d79@sony.com> References: <20210430142223.25500-1-peter.enderborg@sony.com> <20210430142223.25500-2-peter.enderborg@sony.com> <4bb24db4-f720-f5e7-9054-36bdeaee1d79@sony.com> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 1 May 2021 09:29:41 +0000 wrote: > On 4/30/21 7:48 PM, Eric W. Biederman wrote: > > Peter Enderborg writes: > > > >> This is the peer functions to task_rename and task_newtask. > >> With this we get hole "life-cycle" of task and can easily > >> see short livied task and their exit status. > > This patch is incorrect. The location you are dealing with is not part > > of task exit. The location you have instrumented is part of reaping a > > task which can come arbitrarily long after the task exits. > > That is what it aiming. When using this as tool for userspace you > would like to know when the task is done. When it no longer > holds any thing that might have any impact. If you think the > exit imply something more specific I can change the name. > > I thought exit was a good name, it is in in exit.c. > > Will the name task_done, task_finished or task_reaped work for you? I think "task_reaped" is probably the best name, and the most descriptive of what happened. -- Steve