Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp693834pxk; Sun, 30 Aug 2020 20:13:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzkNiGTx3j1lRr65OSzyA/q1grFhWAtYjhwrWKoXyywfD1qDbVJ6nSEhcu4ldoHOTW8zHJs X-Received: by 2002:a17:906:d10e:: with SMTP id b14mr9879083ejz.127.1598843638939; Sun, 30 Aug 2020 20:13:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598843638; cv=none; d=google.com; s=arc-20160816; b=xQKYjy3ppjLmRzkjkts9MMGgGoTA/9vSOiarRA6n79ytAA478QWDaVNj7kyNnuSQmT K6vL58q3Wzr/kD/YJj+nMjpu5STyKVSKwMdB2VOOnaGh8bxSgdP09T4YO7H38BLCsNdX jJMC48k/n934kfDGp205f3X+uSl0YcoT0CKFRoLZJi8vgUcfoqcfbYXBLUfTngkBwm2G fMBwwUJOOj74OW6seSvAwk6Fuy3sjgMfIxQWqT53Mky6c6wWc+QqgDgeuSbd1NFmTp1c PSvyf7ZqZX/VTu2L8OQluYnqIK1heSLK/OaGQKYKo/XaKToZi/7r2jK37sUY9wVDSFto V8RQ== 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 :message-id:date:subject:cc:to:from; bh=SmKTHVPdg+SelDB+pieaUvszP5QUqPdVH+zZUA9DtFc=; b=aA897ke1fviqLqZG3RAQ9HbCB+1Tqp05yFoZHaHEGc73rhqYCJLp1W5i0UTYppMIXF f5mnve/g7S3siSCNgicRFpz2ZFC/oO4NKOW6mCJBlT6zG2yUgFfNcKq5Xea6ZlGRaHUI z04jAyPR1WbEB/UPZXHhT7DRJfWkLt/nsxtsQEwEQE4AthlMj1sx8B9ZdcaxyffR7In/ p2tFG5LgyZc79GR+3YVeHGhII1Ep1fjK3/rWJJ1F23a6fdVCtGQdg9Kvyt0LkSqUQFUb 0C8dYo57WlcxNcJesft/iotOXcmy9S5UVJGvbe9Kf/lioAKjS92fTBmgnf65ho9fBVYG v4pA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n23si1217923edv.598.2020.08.30.20.13.36; Sun, 30 Aug 2020 20:13:58 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727815AbgHaDLK (ORCPT + 99 others); Sun, 30 Aug 2020 23:11:10 -0400 Received: from out30-131.freemail.mail.aliyun.com ([115.124.30.131]:41592 "EHLO out30-131.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726573AbgHaDLJ (ORCPT ); Sun, 30 Aug 2020 23:11:09 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R161e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e01419;MF=richard.weiyang@linux.alibaba.com;NM=1;PH=DS;RN=4;SR=0;TI=SMTPD_---0U7JKC3o_1598843466; Received: from localhost(mailfrom:richard.weiyang@linux.alibaba.com fp:SMTPD_---0U7JKC3o_1598843466) by smtp.aliyun-inc.com(127.0.0.1); Mon, 31 Aug 2020 11:11:06 +0800 From: Wei Yang To: rostedt@goodmis.org, mingo@redhat.com Cc: linux-kernel@vger.kernel.org, Wei Yang Subject: [PATCH 0/6] ftrace: trivial cleanup Date: Mon, 31 Aug 2020 11:10:58 +0800 Message-Id: <20200831031104.23322-1-richard.weiyang@linux.alibaba.com> X-Mailer: git-send-email 2.20.1 (Apple Git-117) 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 Trivial cleanups relates to ftrace. Wei Yang (6): ftrace: define seq_file only for FMODE_READ ftrace: use fls() to get the bits for dup_hash() ftrace: simplify the dyn_ftrace->flags macro ftrace: simplify the calculation of page number for ftrace_page->records ftrace: replace do_for_each_ftrace_rec() with for_ftrace_rec_iter() ftrace: ftrace_global_list is renamed to ftrace_ops_list include/linux/ftrace.h | 11 ++--- kernel/trace/ftrace.c | 108 ++++++++++++++++++++--------------------- 2 files changed, 56 insertions(+), 63 deletions(-) -- 2.20.1 (Apple Git-117)