Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp1799705ybh; Sun, 15 Mar 2020 11:19:54 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtvb4H5Vlx9EKXUWFhV99HWUyXxKOykS4q4Mi+AKXO+QBvJSI1aWAANc7Q147VKa6HdIBgl X-Received: by 2002:a05:6830:110f:: with SMTP id w15mr6136600otq.179.1584296394359; Sun, 15 Mar 2020 11:19:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584296394; cv=none; d=google.com; s=arc-20160816; b=djQsK307jG8CKVfhqoCu5VfLVGslrd0P2sbDUkAKXvT/ahVDcEkPUSZnjsvDTIDoE+ /YUXtUyfZ9UeEueaqksoWliXuST1BpYeBxZGypHBZ6Uz9NMWki1rv6IfEJ0Qvqgx+XBs jC9uP0GU6+6Kr2g1qMnux4LBNwUA48yKIhffkaqL7AGV496d9gZUHiPS/vHToK2r6BAf UPenfJFDJOByCuCSi9qbWXphpXhAX41jdViCrT4CU4vy1gqaOne+zCeeRRV9nmGwhp9u U90FCFsa/OEl1WKXY5SH2hAkFho+FS+KjmppBvINPwZNZXLhQO07MHqFWhLABeWMVio5 ev+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=hEOsRnfdaxErC8P/6goPXi+p+z2Kdea7bx67OSB0mN0=; b=tVKj7KSxglEW5sA1Ptxs37f4lV7+WxDGLVhvpyvtqFgFQkm1VE9ztcYX1WiPrrGigw XYW5TlCGp2CkSOYDbcysNjYXmPnQ25q6h8cpmak04eDTCf1TKTcNMaPTqKXyS9GAqs/P xFri72RFO4NvmDnA8L68MI0Leu2D3sAWfQCwgOYGw9MYk9Fydz7qpWa0p/yIomwqe/Pv mlLtPF80hJkQulegzI816YKactEZNiJnQSxEWx7hIJJLdg6qzzoCON0SRxA+CqWG7F+Y ePr5PGAGOgkfiI58q/Qc4koqf5KmV9q0NJMsT26Km5h+ryLXL+h5Ta2exwgQGWVD/irq NMLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=BSsrRNBt; 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 x66si6566877ota.244.2020.03.15.11.19.42; Sun, 15 Mar 2020 11:19:54 -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=BSsrRNBt; 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 S1729048AbgCOSTB (ORCPT + 99 others); Sun, 15 Mar 2020 14:19:01 -0400 Received: from mail-lj1-f195.google.com ([209.85.208.195]:34406 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728682AbgCOSSy (ORCPT ); Sun, 15 Mar 2020 14:18:54 -0400 Received: by mail-lj1-f195.google.com with SMTP id s13so16066901ljm.1; Sun, 15 Mar 2020 11:18:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=hEOsRnfdaxErC8P/6goPXi+p+z2Kdea7bx67OSB0mN0=; b=BSsrRNBtCTm9wOLf/Xh89a+6+qMYgylPjBRsgM7hphau2xV8mnjkpRmOhAJdeL0VHP eBFv8Zyt7LouCIAYcTTEI2eQUiCJulgr7SbIsr0idD+wXJr0QMq56e5pExWmhpiOiM6o /qipu0+B9JxBIyvVZ3w402fjXVr2IwiUCXxcMpeodlIWe/sB4Y/wJ4UBQ1ghPpcn30KE UjCVAIpV1QEbSBq03aFbNHUT4a6poc78XuYRJAu+y/M5EWQpmlefQsKu4unYxND+tkYc WPxbIgJLr5Y4SvKCJrffjhK5Yuo6KvpZMmzxR2dk6n3xzhBn6xIfCmnmoxFqONiYriXl j07A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=hEOsRnfdaxErC8P/6goPXi+p+z2Kdea7bx67OSB0mN0=; b=qVAD3NtZBse6gYzhJ7rqr7VD8bf+wd3GcNNjMPyPWaz8Ct4k34eNvcHQWD2JU3VQjF qE4zFdG4ZNsIyawrgyM4eAoGdOge8lwSDlHQFYPLYg3WmTHlxtbu8bW4ZpJDAy8vixmT Hp6slkJjEQB05bdsnKATQni5c9dm4mJfPtyvbniLbXQXdkttMWxmGvDhjMMEbA5ZDtLb lhMQZORRZM+Ba26arxh5i7bahoT0O+iC1VgO+1rJ85058Bv73hjzDISM3NkPdCLgVdYE z0YI2m+bn3eLxU7t/CKM851Vq1tI5INPXHJaIOH4pRQEiNzQCi5qDc9I7crD85raVhBv 0IlQ== X-Gm-Message-State: ANhLgQ2vg4fbLU0Hw4rJ6B1j35PqfDqDhgly4rjPRe67HfAHXANOVFnq fx1oy7Vv9mI9ztNJhZ5BGQvS0+8Pug8Nyw== X-Received: by 2002:a2e:8811:: with SMTP id x17mr10060312ljh.37.1584296331669; Sun, 15 Mar 2020 11:18:51 -0700 (PDT) Received: from pc636.lan (h5ef52e31.seluork.dyn.perspektivbredband.net. [94.245.46.49]) by smtp.gmail.com with ESMTPSA id o15sm3040629ljj.55.2020.03.15.11.18.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Mar 2020 11:18:51 -0700 (PDT) From: "Uladzislau Rezki (Sony)" To: LKML , "Paul E . McKenney" , Joel Fernandes Cc: RCU , Andrew Morton , Uladzislau Rezki , Steven Rostedt , Oleksiy Avramchenko Subject: [PATCH v1 3/6] rcu: rename rcu_invoke_kfree_callback/rcu_kfree_callback Date: Sun, 15 Mar 2020 19:18:37 +0100 Message-Id: <20200315181840.6966-4-urezki@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200315181840.6966-1-urezki@gmail.com> References: <20200315181840.6966-1-urezki@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. 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