Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp4826557img; Tue, 26 Mar 2019 18:19:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqwdRNjr8gb5KCPd0v/cS6t108crlmPtDep8ECamM9aCxv/KGl2+UzVCbrwraWdCSLA6RXHl X-Received: by 2002:a63:8548:: with SMTP id u69mr31655803pgd.85.1553649559102; Tue, 26 Mar 2019 18:19:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553649559; cv=none; d=google.com; s=arc-20160816; b=qK+AIqY9EP5VGFzcTJVOrmvbmMspuP13xJKjg3PJOy0s0ezggRJrxCA41ry0ZYB9Yy 7Dp+vVb/69ZljTDv5ksj1VknBE4Ahfd/8m0iqudGNCEu+1wxPjjmING5QhqnGz8w1AyR VwQp2HUuPcZKqHk719xGck4SFf0IEBquMzRu4QJOOLFDMjjRr8EeqsenfHjPCxjNDyUJ 0BRWZFawsEJxa6PG1ZknArH0poeVyFeeqFxxkn9YdqytPKIzXUKUU0NubUIESm7pBJ4g +2J6fz6fI1CrmYDSwLxvVckK17k0yPCnaZ45HMwoUidZK9mk0fiIGDUqmE9exMSoC28K TeIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=69vIIQnvsFVLrNcpvL1oqzWwyS2SEbqw1MraP781CkA=; b=RQBpeCHHwq5q+gLBXh/2A07anDl9i/IdifXxy9xBrNyugFlcFdjoEaFd+77A7KY6zb kO40vPNLR1df2+/vfQWdudJgQRU+AdgtE6c5+bmcq4jYG8Lv5WYVdkV/nGnvU59XhSF8 8Gu5GsiH7Yy3cr0M7gxHESnOpi34TxE4dfojT6DIumJI01IoiLPQpqCMkTFjRXZ0ynFR G/wPr4l/CwNysave5AO4RzsSvjQ9/jKArsjPWna68GKBAuFIyzDeH4xiMH353sIwvEHZ 1atJDaJBcs1TPeR04audutdYTtDMlD11nP0wXhx3IVdOP+ZEoEtYrren5U5+IPtAWIaX LelA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="No08yi/2"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 1si18721858plk.311.2019.03.26.18.19.03; Tue, 26 Mar 2019 18:19:19 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="No08yi/2"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732099AbfC0BSX (ORCPT + 99 others); Tue, 26 Mar 2019 21:18:23 -0400 Received: from mail-io1-f67.google.com ([209.85.166.67]:38387 "EHLO mail-io1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727500AbfC0BSX (ORCPT ); Tue, 26 Mar 2019 21:18:23 -0400 Received: by mail-io1-f67.google.com with SMTP id v4so12621326ioj.5 for ; Tue, 26 Mar 2019 18:18:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=69vIIQnvsFVLrNcpvL1oqzWwyS2SEbqw1MraP781CkA=; b=No08yi/2Zy6ezN3NLJO8ZEhtoYf+p32jodFRPbrUjPsA/w4gkGwsaSc0L2kZ0r82wR sVaKHdPd2JW0joj8hzqiXfETG4cSezE+7wbT42uFXIG7M0n6eyYTJwHBb302mXj1n1ld NchOTH2AKDeFiMX82ItPGMfcaNi7tl8Uwzg+ngsTc4LGGrK0KZtJQKtxXfjL983TqcFR BuSMT6mXv7M6a2JZ8PV59XOSJbaOEabPogjTKKgQ+Hv9nzulBgKKXM3R/476HuOJKeYD CnRlQrx30NZRSGpArFeTpRfoaFtYEw+iJ7ocM2cnxhdgYOXOUuRvTnbJF5l6vkz0xL+p +T2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=69vIIQnvsFVLrNcpvL1oqzWwyS2SEbqw1MraP781CkA=; b=klaDwOdifoudk7ZaVDIMslgiTLWX/gHuJLGfVFj+aJFQW9LhuV4GfcQ7jzISYvqzFm UCWlgeEqfIGt7kSVkhxvxQkW0xe4iW76DeT7IqdcCYCnnSFVe50O11Z6HGKLncDmNdon by0h5LhVxyXLLi9Rb/cIA8+yUCG+NS59gLgwlEXU9CmmGELfjfTmbbGm19LsT6qywQ6g 38jWH8ZD6cAjxrw80Cxw5SZPZ4VjRm7JULeOj83uJMBauweEbmAzkHTRyGC7JbpuHOet mrJENlpPoJYhegH35vBXMW+7kaj3PQR6dRGKk+sKxHFGojJP83VBHz/dGRBBHRSjltwT KuGA== X-Gm-Message-State: APjAAAXMT4KBz9WNiKbSe07f139ytVkgdOaaxRLAo+0ZPOZxJevHPsV/ iJiqbQzJTZ6kkiF1ZHwmCGBNgiZj5OzZp6YPJPk= X-Received: by 2002:a6b:e50d:: with SMTP id y13mr21333312ioc.142.1553649502094; Tue, 26 Mar 2019 18:18:22 -0700 (PDT) MIME-Version: 1.0 References: <1553602391-11926-1-git-send-email-laoar.shao@gmail.com> <1553602391-11926-4-git-send-email-laoar.shao@gmail.com> <20190326151815.GI4102@linux.ibm.com> <20190326112958.2668a4a1@gandalf.local.home> In-Reply-To: <20190326112958.2668a4a1@gandalf.local.home> From: Yafang Shao Date: Wed, 27 Mar 2019 09:17:45 +0800 Message-ID: Subject: Re: [PATCH v2 3/3] rcu: validate arguments for rcu tracepoints To: Steven Rostedt Cc: "Paul E. McKenney" , mingo@redhat.com, Peter Zijlstra , josh@joshtriplett.org, Mathieu Desnoyers , jiangshanlai@gmail.com, joel@joelfernandes.org, LKML , shaoyafang@didiglobal.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 26, 2019 at 11:30 PM Steven Rostedt wrote: > > On Tue, 26 Mar 2019 08:18:15 -0700 > "Paul E. McKenney" wrote: > > > On Tue, Mar 26, 2019 at 08:13:11PM +0800, Yafang Shao wrote: > > > When CONFIG_RCU_TRACE is not set, all these tracepoints are defined as > > > do-nothing macro. > > > We'd better make those inline functions that take proper arguments. > > > > > > As RCU_TRACE() is defined as do-nothing marco as well when > > > CONFIG_RCU_TRACE is not set, so we can clean it up. > > > > How about this for the commit log? > > > > Unless the CONFIG_RCU_TRACE kconfig option is set, almost all > > of RCU's tracepoints are defined as empty macros. It would > > be better if these tracepoints could instead be empty inline > > functions with proper arguments and type checking. It would > > also be good to get rid of the RCU_TRACE() macro, which > > compiles its argument in CONFIG_RCU_TRACE=y kernels and > > omits them otherwise. > > > > This commit therefore creates a TRACE_EVENT_RCU macro that > > is defined as TRACE_EVENT in CONFIG_RCU_TRACE=y kernels and > > as the new TRACE_EVENT_NOP otherwise, which allows the > > empty macros and the RCU_TRACE() macro to be eliminated. > > > > With that: > > > > Reviewed-by: Paul E. McKenney > > Yafang, > > If you are OK with the above changes, I'll take this patch with the > updated change log. > Hi Steve, This new changelog is OK by me. Pls. take it. Thanks Yafang