Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1264233pxk; Fri, 25 Sep 2020 10:09:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzEWwsOo7462mKuwJvsbT0UAmObjXagNgTGbjIwi13HkPVWT9qZdQ2/Z3ym6itZYK9oGxQy X-Received: by 2002:a17:906:311a:: with SMTP id 26mr3613578ejx.226.1601053774562; Fri, 25 Sep 2020 10:09:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601053774; cv=none; d=google.com; s=arc-20160816; b=EVCSySaxmh/Z/sXaHnb5J3ebxn9Dh2x8TyQcOiHE2COe3iZnHZfUT6+unV00hvGzkq 8VrV9N2dIw45U7WXrjiLZJBMEaoi328LuTNFl5bpzFUOptaV8WiwBHXExmcFipuZjgB/ tO7VR1yzw/NRudrbKutdQSOTjQ8GGCH9ilmgLCjVKzhu2LuoXYVF6HKe/odcKyRshp6C sTSEmk/4/x97upnmG5xrDWpQFjI7Fmw76OarGZPrDiy2do2osEn3cvlXi/3GRPEexwJU IYfxtSCvFM4tM7rG0ABQTuWKxjXQy1SyfYQ4Pg8MmoEiHLJyeRXN6D8c9WweK+wRjsR8 nGbQ== 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=9u5etktlFhErqPQLUUxkrQhVKY8cRDGh0UhHCb7uXno=; b=Avo3/ykmoPyfb3FlzAdUQggwtM2oMEcMv+XByWLajbVli9xoUw+XJWPKDLs7tRY4tr bNbFg06kYPCgm4I5aq08lr7fhXnbYaItR3UD98g+biS1N9tDLIjcXORx7QcrXeRveJFj ToL/V5cH7ruZCkzTFJx0D5+AqeN7PFBeX4PN9D0l3P+X7muNcGc7DEbutZUMYmwhLIGl rLskIlRqOb4QEo9BnWDpA/cxJLlchIxWAL2V5muHFhNP4g4Ga/hJYiI9fUm4dtO+6CRp chkzIiwyLcWeruQof8XBqKC8xIY2HZVGM9LXDgC9xSxw4MgTlEslLOxcBkcz+TadELtv rpHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@efficios.com header.s=default header.b=rkuhom2R; 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 l18si2350225edw.354.2020.09.25.10.09.10; Fri, 25 Sep 2020 10:09:34 -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=rkuhom2R; 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 S1729477AbgIYRFq (ORCPT + 99 others); Fri, 25 Sep 2020 13:05:46 -0400 Received: from mail.efficios.com ([167.114.26.124]:49634 "EHLO mail.efficios.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728466AbgIYRFp (ORCPT ); Fri, 25 Sep 2020 13:05:45 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.efficios.com (Postfix) with ESMTP id 0311C2D0649; Fri, 25 Sep 2020 13:05:45 -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 UWotcFCy9elo; Fri, 25 Sep 2020 13:05:44 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by mail.efficios.com (Postfix) with ESMTP id 8B6232D083C; Fri, 25 Sep 2020 13:05:44 -0400 (EDT) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.efficios.com 8B6232D083C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=efficios.com; s=default; t=1601053544; bh=9u5etktlFhErqPQLUUxkrQhVKY8cRDGh0UhHCb7uXno=; h=Date:From:To:Message-ID:MIME-Version; b=rkuhom2RCZyD3mtKD/vF1qrzRbKitcRKV3xVAkorSFr0FETXYRypacQNKrGy2P2HV Ykoj7CwObLsLPezZOPww7NkkZhOnzhCXNJ9tlOdTnENORuBNZxy0vdWfOiQ2SnPBgh gwqUnhOgMxvJ+XJnFf8LH7wCU73JrrIPGXxYAQoBxsaCaupiDocNFIEHSXGeVa45Ym n7CWdRTMI/zwkqXxrDyhmLR5Fgu4563jveizvzQERF326my8GS2kR6PMXxGYzQ7YuW aiqgWeLZuK8X0eUDIEkfZloCv41oN8w5ihwS2iKBlSl2Ib5JxE8vBodsxSVcXb5UqS 29ja6JU9cXg+A== 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 KYOSqdHR5bZP; Fri, 25 Sep 2020 13:05:44 -0400 (EDT) Received: from mail03.efficios.com (mail03.efficios.com [167.114.26.124]) by mail.efficios.com (Postfix) with ESMTP id 7A49D2D0533; Fri, 25 Sep 2020 13:05:44 -0400 (EDT) Date: Fri, 25 Sep 2020 13:05:44 -0400 (EDT) From: Mathieu Desnoyers To: rostedt Cc: paulmck , Michael Jeanson , linux-kernel , Yafang Shao , Axel Rasmussen , Andrew Morton , Vlastimil Babka , Michel Lespinasse , Daniel Jordan , Davidlohr Bueso , linux-mm , Ingo Molnar , Joonsoo Kim Message-ID: <897050665.69743.1601053544373.JavaMail.zimbra@efficios.com> In-Reply-To: <20200925122647.230decde@oasis.local.home> References: <20200924170928.466191266@goodmis.org> <20200924161328.760f5e79@oasis.local.home> <1430794518.69084.1600979254425.JavaMail.zimbra@efficios.com> <20200924163331.0080b943@oasis.local.home> <176393901.69671.1601044916547.JavaMail.zimbra@efficios.com> <20200925111415.60f5334c@oasis.local.home> <965650354.69699.1601047806662.JavaMail.zimbra@efficios.com> <20200925122647.230decde@oasis.local.home> Subject: Re: [PATCH 1/2] tracepoints: Add helper to test if tracepoint is enabled in a header 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_3965 (ZimbraWebClient - FF80 (Linux)/8.8.15_GA_3963) Thread-Topic: tracepoints: Add helper to test if tracepoint is enabled in a header Thread-Index: OfP6K53urTP5+emvUDcmbH1lEHoGnA== Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ----- On Sep 25, 2020, at 12:26 PM, rostedt rostedt@goodmis.org wrote: > On Fri, 25 Sep 2020 11:30:06 -0400 (EDT) > Mathieu Desnoyers wrote: > >> > Anyway, I don't see any issues with the current patch set as is >> > (besides the documentation fix, which I already updated locally). And >> > will add this to my queue for linux-next. >> >> The only thing I would change in the documentation is to word this as >> "here is a trampoline trick which can be used to work-around rare cases >> of tracepoint header circular dependency issues" rather than "always use >> this when instrumenting a header". >> > > I rather not have tracepoints in headers. Period! > > It's not just about circular dependencies, it also bloats the code. Fair enough. We could indeed argue that having a tracepoint in a header's static inline function will end up replicating that tracepoint at every site where the function is used. So in terms of code size, it's better to use the trampoline approach. Thanks, Mathieu -- Mathieu Desnoyers EfficiOS Inc. http://www.efficios.com