Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp2739262ybh; Mon, 16 Mar 2020 08:48:10 -0700 (PDT) X-Google-Smtp-Source: ADFU+vve1+/wTS7lyuDrhvisaQfAkMYYCVfDVP58rQCSiOIJLeTm6eG4LpIVOIIc03+/b1/tG6oo X-Received: by 2002:a54:468b:: with SMTP id k11mr137881oic.134.1584373690425; Mon, 16 Mar 2020 08:48:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584373690; cv=none; d=google.com; s=arc-20160816; b=PjWk1jNH0Sw5qCCyEa4h2Rb0wX3roRcsb3I8ogCaR5JrFkXdnTiAiY8JkBoyIUt0WD hWlFI84imZb2+/DifrRzVg2eXuPPk8EA1CHU2sSEKvArCKSsAI7Aa0EF0gn4SaBexP9X 00WuFq2rM7FaCq8/TFM8svyTcfCLfVAIJXiJvLzjGfKl7yc6o7cLfq2v5jC8zmWJRiIv itde/Zqs6clS0Px7HfcRhJ+2VsVKSmcx3rg40VIljJhiA17AlEt09+w42Ai3ZrSc7uZQ xsJ/EeB+B9Deo2DzWjhIqC0FCk9hpcipbUdhaHbfm+8BghSq6AqClihFViSJnEwvKa6P LZmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=GBys85i5HtZ0uNTaTkpVeMVABaxUVIjN4FUmfqqZy1s=; b=m6rIauDroCmo6aag8VdhXAmzI5J2+BIekP+zOeVDqYlAl7CQ3iLcPJK1EogDNAaqkT X6pJLHL3hb91mjLx2P2HwaMExSAsUtnNwjfPUGSKmTAHuN5erwzY1BlWd1ot0ZMmnnnI qTs7ebekS7Hxzp65hdpSr+I+HiL64DjFiSc5opkBP5JQUgvSDw2U1xgiL+YljH5e7NsF 2z8BodKiJPfxOBPqCEjfYO678PnmejSG0fMKj9+WIebrtAb2faYe555E5L2bjLXmJ80G Sbb3cWgiJLndjk05CHwi4REwMPrso0ekgjN/hv7AsiKlpOe2BEM0X+6rmdDsxU5ZrrZN Baag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@joelfernandes.org header.s=google header.b="r0nS/dIG"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k92si151017otk.261.2020.03.16.08.47.57; Mon, 16 Mar 2020 08:48:10 -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=@joelfernandes.org header.s=google header.b="r0nS/dIG"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731934AbgCPPr2 (ORCPT + 99 others); Mon, 16 Mar 2020 11:47:28 -0400 Received: from mail-qk1-f196.google.com ([209.85.222.196]:43048 "EHLO mail-qk1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731796AbgCPPr2 (ORCPT ); Mon, 16 Mar 2020 11:47:28 -0400 Received: by mail-qk1-f196.google.com with SMTP id x18so6841149qki.10 for ; Mon, 16 Mar 2020 08:47:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=joelfernandes.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=GBys85i5HtZ0uNTaTkpVeMVABaxUVIjN4FUmfqqZy1s=; b=r0nS/dIGdJLY8p8ypQFWnQcAHRvMkWwFbr5l89AlpmhEDT4kMc8Qtdn//mOfu/kxHL /wdd2PLba3vXNP/LVJyLqtwN0d37w8AA3VBrrZ/TH+wq5mJ+6USQPY7oc8cMxBucxpDb MLJJbN0qZe5pVq+tz5wDuQVoiGlgzwObHKGWk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=GBys85i5HtZ0uNTaTkpVeMVABaxUVIjN4FUmfqqZy1s=; b=DrrUDbDYEKENZhGELbNRz/XRb7fJhMPAjNwTs8E21aA4aR1FL4oH+pZh7TGGpZ8oZb pBk5tVgkQ5ErAHTgPb29AF4zLJdpAm7Jv5WqXquvX3URMhM8vJpzNUZPdgQkZIGCz8F+ s9IXIfhIdhtHnCmfaKdaM4Hn7qd7mJ7I4RtpI7WT29V5HsHhbvo4CU3cxKwYhF85k2ik Iskadu26zfio0aCX9ulrTeP8G5lYJhBINNEkBGZ8JlBDJP3alrJinzjFbDbwAKfF3+Hp 7B/f3OEfdF9HqP9bOv6eqWJGShFwpq/2vNVRForfmA/n+2cT+T/ralR/PfyTz5BGcg1u c8Fg== X-Gm-Message-State: ANhLgQ2XKp6w643q3nEBFJNjShPEaIeNr3AWXKe0PWHGRdboduXFvCkP jPHF86L6PY99+S0ZDMAx6bEO/Q== X-Received: by 2002:a37:2c81:: with SMTP id s123mr292500qkh.284.1584373646996; Mon, 16 Mar 2020 08:47:26 -0700 (PDT) Received: from localhost ([2620:15c:6:12:9c46:e0da:efbf:69cc]) by smtp.gmail.com with ESMTPSA id m1sm63508qtk.16.2020.03.16.08.47.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Mar 2020 08:47:26 -0700 (PDT) Date: Mon, 16 Mar 2020 11:47:26 -0400 From: Joel Fernandes To: "Uladzislau Rezki (Sony)" Cc: LKML , "Paul E . McKenney" , RCU , Andrew Morton , Steven Rostedt , Oleksiy Avramchenko Subject: Re: [PATCH v1 3/6] rcu: rename rcu_invoke_kfree_callback/rcu_kfree_callback Message-ID: <20200316154726.GF190951@google.com> References: <20200315181840.6966-1-urezki@gmail.com> <20200315181840.6966-4-urezki@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200315181840.6966-4-urezki@gmail.com> User-Agent: Mutt/1.12.2 (2019-09-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Mar 15, 2020 at 07:18:37PM +0100, Uladzislau Rezki (Sony) wrote: > Rename rcu_invoke_kfree_callback to rcu_invoke_kvfree_callback. > Do the same with second trace event, that is rcu_kfree_callback, > it becomes rcu_kvfree_callback. The reason is to be aligned with > kvfree notation. Reviewed-by: Joel Fernandes (Google) thanks, - Joel > > Signed-off-by: Uladzislau Rezki (Sony) > --- > include/trace/events/rcu.h | 8 ++++---- > kernel/rcu/tiny.c | 2 +- > kernel/rcu/tree.c | 4 ++-- > 3 files changed, 7 insertions(+), 7 deletions(-) > > diff --git a/include/trace/events/rcu.h b/include/trace/events/rcu.h > index f9a7811148e2..0ee93d0b1daa 100644 > --- a/include/trace/events/rcu.h > +++ b/include/trace/events/rcu.h > @@ -506,13 +506,13 @@ TRACE_EVENT_RCU(rcu_callback, > > /* > * Tracepoint for the registration of a single RCU callback of the special > - * kfree() form. The first argument is the RCU type, the second argument > + * kvfree() form. The first argument is the RCU type, the second argument > * is a pointer to the RCU callback, the third argument is the offset > * of the callback within the enclosing RCU-protected data structure, > * the fourth argument is the number of lazy callbacks queued, and the > * fifth argument is the total number of callbacks queued. > */ > -TRACE_EVENT_RCU(rcu_kfree_callback, > +TRACE_EVENT_RCU(rcu_kvfree_callback, > > TP_PROTO(const char *rcuname, struct rcu_head *rhp, unsigned long offset, > long qlen), > @@ -596,12 +596,12 @@ TRACE_EVENT_RCU(rcu_invoke_callback, > > /* > * Tracepoint for the invocation of a single RCU callback of the special > - * kfree() form. The first argument is the RCU flavor, the second > + * kvfree() form. The first argument is the RCU flavor, the second > * argument is a pointer to the RCU callback, and the third argument > * is the offset of the callback within the enclosing RCU-protected > * data structure. > */ > -TRACE_EVENT_RCU(rcu_invoke_kfree_callback, > +TRACE_EVENT_RCU(rcu_invoke_kvfree_callback, > > TP_PROTO(const char *rcuname, struct rcu_head *rhp, unsigned long offset), > > diff --git a/kernel/rcu/tiny.c b/kernel/rcu/tiny.c > index 4b99f7b88bee..3dd8e6e207b0 100644 > --- a/kernel/rcu/tiny.c > +++ b/kernel/rcu/tiny.c > @@ -86,7 +86,7 @@ static inline bool rcu_reclaim_tiny(struct rcu_head *head) > > rcu_lock_acquire(&rcu_callback_map); > if (__is_kfree_rcu_offset(offset)) { > - trace_rcu_invoke_kfree_callback("", head, offset); > + trace_rcu_invoke_kvfree_callback("", head, offset); > kvfree((void *)head - offset); > rcu_lock_release(&rcu_callback_map); > return true; > diff --git a/kernel/rcu/tree.c b/kernel/rcu/tree.c > index 1c0a73616872..eef75cd210fd 100644 > --- a/kernel/rcu/tree.c > +++ b/kernel/rcu/tree.c > @@ -2720,7 +2720,7 @@ __call_rcu(struct rcu_head *head, rcu_callback_t func) > // If no-CBs CPU gets here, rcu_nocb_try_bypass() acquired ->nocb_lock. > rcu_segcblist_enqueue(&rdp->cblist, head); > if (__is_kfree_rcu_offset((unsigned long)func)) > - trace_rcu_kfree_callback(rcu_state.name, head, > + trace_rcu_kvfree_callback(rcu_state.name, head, > (unsigned long)func, > rcu_segcblist_n_cbs(&rdp->cblist)); > else > @@ -2909,7 +2909,7 @@ static void kfree_rcu_work(struct work_struct *work) > next = head->next; > debug_rcu_head_unqueue(head); > rcu_lock_acquire(&rcu_callback_map); > - trace_rcu_invoke_kfree_callback(rcu_state.name, head, offset); > + trace_rcu_invoke_kvfree_callback(rcu_state.name, head, offset); > > if (!WARN_ON_ONCE(!__is_kfree_rcu_offset(offset))) > kvfree((void *)head - offset); > -- > 2.20.1 >