Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp2930964pxy; Mon, 3 May 2021 11:08:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxJjNmSl/PnU2lMrp61Rezh4rMSzgwHs6SlqnSWmJdB+0LpHJRzkIM/tB5nkLhPMgjW7ZXf X-Received: by 2002:a17:90b:1d86:: with SMTP id pf6mr22479023pjb.59.1620065311597; Mon, 03 May 2021 11:08:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620065311; cv=none; d=google.com; s=arc-20160816; b=IAowrjEnedCel/6eDCtYak85NqedOqNMkwBtOvzBVWMJhBeMkyAPDSCvT3J40RRedC DzhU8tsvbHsmIuC1ihpXNg/Oy93Iozt7DX7IJ21AqIByNrlXbNV898E1aXMJf3v0PUCq o8puRQ3Jek2CE+fqE6OX9Ddv2i/nuT+892+OuM8+mc73k25xCOpcy0fpTjt15+ALq+N5 g/uQ07xzOnpuG4adQKv+nnwnnNwWTgLLxpbHV4Y3N/ZksJHUtxYRt8TZuwQwm06Fibci 0rR6oPLFUSaRLXZ752GwFSVmzYv7MKXUqj+NLzUF9qFRme5GdavJjJFJB9Bpb+tOnIRK ShpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:thread-index:thread-topic :content-transfer-encoding:mime-version:subject:references :in-reply-to:message-id:cc:to:from:date:dkim-signature:dkim-filter; bh=eUdc0ORANnqMPD7ukmSadEOiM93pqNDHZ9zconEvXSg=; b=q3dEOt2gJbH6zyhJ77bP/76TOYcGWPxn9eCcd9Bs0G0EOsjX3k1zUhOP4vIpwWklPM 0W6awHInTfntXCk3THJUMs4a9jtnx1PzC29F7ecMv4rm7mSHyR2saPyk9Ydt1IU1bX5J 42TFjOWc0Hf85zRQmszWTdb/TPgRn48BGE+SymCyeapgDD4rh7l/q6q9K26dUmmzoVQB DPCSGnJeg2CGDwGtwM956vbm0dMjwWuqUnNoAvAb6Npg0C73QHzsFDzq0glN1gig8Op1 seaVBHAr0Xuc2uaQQjU1mfaqciKv6lA42lPeUfnkOfe8n897VzfIeRCAid01nc5NDDno 6J4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@efficios.com header.s=default header.b=d+OTnJ6C; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=efficios.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h22si14707498pfn.35.2021.05.03.11.08.18; Mon, 03 May 2021 11:08:31 -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; dkim=pass header.i=@efficios.com header.s=default header.b=d+OTnJ6C; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=efficios.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234431AbhECNvc (ORCPT + 99 others); Mon, 3 May 2021 09:51:32 -0400 Received: from mail.efficios.com ([167.114.26.124]:51614 "EHLO mail.efficios.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233308AbhECNvb (ORCPT ); Mon, 3 May 2021 09:51:31 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.efficios.com (Postfix) with ESMTP id 01368241226; Mon, 3 May 2021 09:50:31 -0400 (EDT) Received: from mail.efficios.com ([127.0.0.1]) by localhost (mail03.efficios.com [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id Lhs7HQXiEDSs; Mon, 3 May 2021 09:50:30 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by mail.efficios.com (Postfix) with ESMTP id 7E4F224129C; Mon, 3 May 2021 09:50:30 -0400 (EDT) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.efficios.com 7E4F224129C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=efficios.com; s=default; t=1620049830; bh=eUdc0ORANnqMPD7ukmSadEOiM93pqNDHZ9zconEvXSg=; h=Date:From:To:Message-ID:MIME-Version; b=d+OTnJ6CtaokRpIb6Gsn3GLe9daSzfn7xw/Zx7jLnfggYTXxmjGL4R4svrnV2CxYa rn7Z9ZOX+arXjgk3yykcAPAizDOG/dysQFwQfCk1LBjNy2aQqtAtscrXzRxNTBtr+U hx9cg/GIn9MSvh6i4j8sJc+2fAr9Q7GP14DmWISpUjA+0FB1CcdFzrXzZhkBp/4SKU x3KmDd4LESxHDoSZINBuF8vTBQZqTsgYuEATcQPa2sWR/sSnJ7j4lT1hycn+sPNdZq aG1FIKa+csdx3n0qE+xlAFQKqIvzMvWqeEhFftUhuJFO8JQfPTZLxOhdAcVR2UrTLg WfUmLa7gHMK6g== X-Virus-Scanned: amavisd-new at efficios.com Received: from mail.efficios.com ([127.0.0.1]) by localhost (mail03.efficios.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id q3LbvlmhcHGc; Mon, 3 May 2021 09:50:30 -0400 (EDT) Received: from mail03.efficios.com (mail03.efficios.com [167.114.26.124]) by mail.efficios.com (Postfix) with ESMTP id 69B12241299; Mon, 3 May 2021 09:50:30 -0400 (EDT) Date: Mon, 3 May 2021 09:50:30 -0400 (EDT) From: Mathieu Desnoyers To: rostedt Cc: peter enderborg , "Eric W. Biederman" , linux-kernel , Ingo Molnar , Andrew Morton , Peter Zijlstra , Alexei Starovoitov , Christian Brauner , Davidlohr Bueso , Michel Lespinasse , Jann Horn , christophe leroy , Minchan Kim Message-ID: <1214833117.22933.1620049830326.JavaMail.zimbra@efficios.com> In-Reply-To: <20210501091104.418765bd@oasis.local.home> References: <20210430142223.25500-1-peter.enderborg@sony.com> <20210430142223.25500-2-peter.enderborg@sony.com> <4bb24db4-f720-f5e7-9054-36bdeaee1d79@sony.com> <20210501091104.418765bd@oasis.local.home> Subject: Re: [PATCH 1/2] tracing: Add a trace for task_exit MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [167.114.26.124] X-Mailer: Zimbra 8.8.15_GA_4018 (ZimbraWebClient - FF88 (Linux)/8.8.15_GA_4007) Thread-Topic: tracing: Add a trace for task_exit Thread-Index: wfnMoF8QnBjqFe75TFoqmMOQw19oNQ== Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ----- On May 1, 2021, at 9:11 AM, rostedt rostedt@goodmis.org wrote: > 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. What would it provide that is not already available through the "sched_process_free" tracepoint in delayed_put_task_struct ? Thanks, Mathieu -- Mathieu Desnoyers EfficiOS Inc. http://www.efficios.com