Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp3049858pxy; Mon, 3 May 2021 13:58:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxY5krbxpHJcT6s2lrKZGxN4U0TRNJMJAm33tI+i5/nk41DeDruPefJijTJEnLfqcYaWsuV X-Received: by 2002:a50:ab1d:: with SMTP id s29mr21766656edc.203.1620075533728; Mon, 03 May 2021 13:58:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620075533; cv=none; d=google.com; s=arc-20160816; b=ukJHXTHxJhh32UHuFFo+BWvuIAByOgLMiXj9rM36vMOsPwaTlPgPkTjVvIS8Mr2UWG OKt6mL2JDldXeN7XtUwiWx7KPrMatDy9A9MiGVfXeRM0I4wekQagICsrCwh6CbHCnu9t /mKiomWxLicAkeRJPDVnszhVd0wrnqV+vpKL7uh10YBG9gaGIBoHJ9l4k+Sv594SVMgu 3rytPD+zuiSzoEHRZwrq/7xdWhTRD4a3D2CcE97UnDjawYEzwKqAQVnNcwOEFjzEis2q Y5RbWzSyUM6U6BktnhuTFkAM/0UhMWg5rMJtk8AIHleZb2zfQGdlko6ruKBt+ygjijzq 2/pA== 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=G1eutTzt+3GJlfuqm7MyFjRjo8tq1MSNP4weSHTlOlQ=; b=fcpBoynlnMP+fQL1tp7N4aaIVn0pECWen0TSM2SYT9xjOMK5bJHKEc6G+Y8CTDF6GG yn8wrTvfbnV6PCeN2jwLLOAQwTsWW6WY2rzjdJ2dAVgTXRcpI2s5uNe8MCHwQ4A9qgiP Dfrp5a50e2rYYrZZfjgUE9J6ZDFy0dBX1Pqw/++CHBtA0TjZzwsoz2ssmIytmFfCsAO1 mwiYG/jkY83rS+c/OJLPMgPxwDkRJqlHZGR/np0C4sb7He9AORCfOVR+iELwzciHFgX2 8xbsH1NbhEhSMRQrhJJxi3Ua169ngwPMljfZILJZHZaZPo/5jYqy7UMayU5b3P5vft46 SnWw== 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 b6si1064897ejb.254.2021.05.03.13.58.28; Mon, 03 May 2021 13:58:53 -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 S229645AbhECU4U convert rfc822-to-8bit (ORCPT + 99 others); Mon, 3 May 2021 16:56:20 -0400 Received: from mail.kernel.org ([198.145.29.99]:33816 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229672AbhECU4T (ORCPT ); Mon, 3 May 2021 16:56:19 -0400 Received: from gandalf.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 8BF4D61157; Mon, 3 May 2021 20:55:24 +0000 (UTC) Date: Mon, 3 May 2021 16:55:22 -0400 From: Steven Rostedt To: ebiederm@xmission.com (Eric W. Biederman) Cc: , , , , , , , , , , , , Subject: Re: [PATCH 1/2] tracing: Add a trace for task_exit Message-ID: <20210503165522.6f1f2fc3@gandalf.local.home> In-Reply-To: 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> <1214833117.22933.1620049830326.JavaMail.zimbra@efficios.com> <769a00d2-a76d-62d2-aa56-5a107dfdc53d@sony.com> <663fc7fa-e7fc-7d63-9de8-91b5f6fe4f06@sony.com> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 03 May 2021 14:02:48 -0500 ebiederm@xmission.com (Eric W. Biederman) wrote: > > However current traces is template based, and I assume it wont be > > popular to add new fields to the template, and exit reasons is not > > right for the other template use cases. trace events can always add fields, it's removing them that can cause problems (but even then, it's not that bad). The new libtracefs and libtraceevent make it trivial for tools to get the fields from trace events when needed. > > > > I still see a "new" task moving it to do_exit make trace name more > > correct?  Or is trace_task_do_exit better? It is also trivial with the libraries to write a tool that can put together everything you want. We even are working on python bindings to connect to these libraries where you could write a python script to do this. There is no need for a new tracepoint, especially if it makes it harder to improve the implementation of what is being traced. > > I really can't say, as I don't know much of anything about the tracing > infrastructure. I would assume in most cases with a tracepoint in place > other kinds of tracing (like bpf programs) could come into play and read > out pieces of information that are not commonly wanted. > > All I really know something about is the exit code path, as I keep > slowly trying to clean it up. I plan on ignoring any tracepoint that > makes that gets in the way. As you should. -- Steve