Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753678AbdGLQm6 (ORCPT ); Wed, 12 Jul 2017 12:42:58 -0400 Received: from mga11.intel.com ([192.55.52.93]:52437 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753365AbdGLQm5 (ORCPT ); Wed, 12 Jul 2017 12:42:57 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.40,350,1496127600"; d="scan'208";a="110540459" Message-ID: <1499877773.3995.6.camel@tzanussi-mobl.amr.corp.intel.com> Subject: Re: Dynamic tracepoints in 4.11.8-rt5 From: Tom Zanussi To: Mathieu Desnoyers Cc: Sebastian Andrzej Siewior , Thomas Gleixner , rostedt , linux-kernel , Michael Jeanson Date: Wed, 12 Jul 2017 11:42:53 -0500 In-Reply-To: <758517446.14680.1499875009807.JavaMail.zimbra@efficios.com> References: <758517446.14680.1499875009807.JavaMail.zimbra@efficios.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4 (3.10.4-4.fc20) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1271 Lines: 44 Hi Mathieu, On Wed, 2017-07-12 at 15:56 +0000, Mathieu Desnoyers wrote: > Hi Tom, > > I notice this commit appears in linux-rt-devel 4.11.8-rt5 > (and it is not in upstream Linux): > > 003100371 tracing: Add support for dynamic tracepoints > > It adds a "bool dynamic" argument to tracepoint_probe_unregister. > > I'm trying to figure out why this change is introduced as a new API > "dynamic_tracepoint_probe_register()" and by adding a boolean > to tracepoint_probe_unregister(). > > Allowing the user of register API to mixup between dynamic > and non-dynamic boolean values for the same tracepoint instance > seems fragile. > > Given that the "dynamic" nature of this new kind of tracepoint > appears to be associated with the tracepoint instance > (struct tracepoint), why can't we simply add a "bool dynamic" > field to struct tracepoint, so we can deal with this internally > within tracepoint.c without exposing this detail in the register > API ? > Yeah, I think that should work - I'm working on an update to these patches and will make that change. Thanks, Tom > This would also take care of currently diverging module APIs for the > GPL-exported symbol tracepoint_unregister() between Linux upstream > and linux-rt. > > Thanks, > > Mathieu >