Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp342855pxu; Tue, 6 Oct 2020 07:43:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwzywz0h0b4KPfkLp9faVxC19pW+WGi3dpNd6MLfGXHLdMusoTA+hREYq2mKy8+GP3IxudE X-Received: by 2002:a17:906:a4b:: with SMTP id x11mr5923022ejf.368.1601995433861; Tue, 06 Oct 2020 07:43:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601995433; cv=none; d=google.com; s=arc-20160816; b=GVsHhOKNBHM1pbcuEaQ2D4LVT3P+KEV+7ijwE3E3YcVSLiUsWi1nwyMahplwa/3M9D jLHK8VwCpmOLwP7b7ajgiF1B0H+FRUO5Ad37xoGPMhNamTC4E+gZkUm77HsF5x1JA99C cWe+nlqPTbo8BLcER4+yg6CdYDn97lMapnPjO/ujLuRa3AH3Escm7CNAibQyxyis/eg+ YoeGJE0iCGNnmzIFM394wRGm2sV+65Fstvcn/kfUeywrF0AqRPPidJAqK5NZlH8/9DBP LtcoPPFlZI/ucIM69gfrJxGypyWH4K4lvS4eRcrAhrb8qaecDPJVch3ZsUYfWjZZaJ+o DA0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=rqDz/VEfBDbQtGiokxvhjryVYieZxGVZx7rdAQFrrZE=; b=Mj6vyBhccQbGWj6DmlaSVQksncdwSctC8cB2YIBmWCtAnXq/oIbGpBj9lqYEZqMcA7 UYkmrdcUM+s/Y/LAVs6MhUc/s28mLux7UrExWWEll5EHjhfUk5pRVlhkBtFbrQYVIlzc iMnaR8i2xL98/BNvCiHv0noJgw5kGD/OiODxgrn1/em0qKSiZVzQcJiDPHdCB8De4MzK MBhGUrzyElaKLBuv9EaHTAvL4l5BnExyPQ8+vjW2eyPPNryeVuCDKeL0b84C1pmiAcAm jh+LK2ZlXTa/V4kpQDbNZ6u1JYELRZWGXjkYnJ/feW6j8q5Yevfhwkd5VXNdS5J3OsUH nGqg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dg18si2598667edb.214.2020.10.06.07.43.31; Tue, 06 Oct 2020 07:43:53 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726476AbgJFOmU (ORCPT + 99 others); Tue, 6 Oct 2020 10:42:20 -0400 Received: from mail.kernel.org ([198.145.29.99]:56164 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726165AbgJFOmT (ORCPT ); Tue, 6 Oct 2020 10:42:19 -0400 Received: from gandalf.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id BB47320796; Tue, 6 Oct 2020 14:42:18 +0000 (UTC) Date: Tue, 6 Oct 2020 10:42:17 -0400 From: Steven Rostedt To: Wei Yang Cc: mingo@redhat.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH 5/6] ftrace: replace do_for_each_ftrace_rec() with for_ftrace_rec_iter() Message-ID: <20201006104217.005cec7c@gandalf.local.home> In-Reply-To: <20200831031104.23322-6-richard.weiyang@linux.alibaba.com> References: <20200831031104.23322-1-richard.weiyang@linux.alibaba.com> <20200831031104.23322-6-richard.weiyang@linux.alibaba.com> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 31 Aug 2020 11:11:03 +0800 Wei Yang wrote: > Now we have two similar infrastructure to iterate ftrace_page and > dyn_ftrace: > > * do_for_each_ftrace_rec() > * for_ftrace_rec_iter() > > The 2nd one, for_ftrace_rec_iter(), looks more generic, so preserve it > and replace do_for_each_ftrace_rec() with it. > I also didn't pull in this patch. The reason is that the for_ftrace_rec_iter() is specific for external usage (for archs to use) and requires two function calls to do the iterations. The do_for_each_ftrace_rec() is a faster, light weight version, but for internal use only. I rather keep both, as each has their own, but slightly different, use cases. -- Steve