From patchwork Tue Jan 25 03:08:23 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anshuman Khandual X-Patchwork-Id: 12723212 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id E39DFC433F5 for ; Tue, 25 Jan 2022 03:08:34 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 216586B0083; Mon, 24 Jan 2022 22:08:33 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 1C6836B0085; Mon, 24 Jan 2022 22:08:33 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 0B3D56B0087; Mon, 24 Jan 2022 22:08:33 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0220.hostedemail.com [216.40.44.220]) by kanga.kvack.org (Postfix) with ESMTP id F1D9B6B0083 for ; Mon, 24 Jan 2022 22:08:32 -0500 (EST) Received: from smtpin21.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id AD308824C423 for ; Tue, 25 Jan 2022 03:08:32 +0000 (UTC) X-FDA: 79067326464.21.FFE629F Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by imf28.hostedemail.com (Postfix) with ESMTP id 2C83EC0002 for ; Tue, 25 Jan 2022 03:08:32 +0000 (UTC) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 257516D; Mon, 24 Jan 2022 19:08:31 -0800 (PST) Received: from p8cg001049571a15.arm.com (unknown [10.163.42.113]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id A30D53F766; Mon, 24 Jan 2022 19:08:28 -0800 (PST) From: Anshuman Khandual To: linux-mm@kvack.org Cc: akpm@linux-foundation.org, naoya.horiguchi@linux.dev, rostedt@goodmis.org, Anshuman Khandual Subject: [PATCH V2 0/2] mm/migration: Add trace events Date: Tue, 25 Jan 2022 08:38:23 +0530 Message-Id: <1643080105-11416-1-git-send-email-anshuman.khandual@arm.com> X-Mailer: git-send-email 2.7.4 X-Rspamd-Queue-Id: 2C83EC0002 X-Rspam-User: nil Authentication-Results: imf28.hostedemail.com; dkim=none; spf=pass (imf28.hostedemail.com: domain of anshuman.khandual@arm.com designates 217.140.110.172 as permitted sender) smtp.mailfrom=anshuman.khandual@arm.com; dmarc=pass (policy=none) header.from=arm.com X-Stat-Signature: g67gpysrs6yxccgtczed7m9pmjcgqekm X-Rspamd-Server: rspam08 X-HE-Tag: 1643080112-850439 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: This adds trace events for all migration scenarios including base page, THP and HugeTLB. This series is applies on v5.17-rc1. Changes in V2: - Used DECLARE_EVENT_CLASS()/DEFINE_EVENT() construct reducing code footprint - Added trace events for base page and HugeTLB Changes in V1: https://lore.kernel.org/all/1641531575-28524-1-git-send-email-anshuman.khandual@arm.com/ - Dropped mm, pmdp, page arguments from trace - Updated trace argument names and output format Changes in RFC: https://lore.kernel.org/all/1640328398-20698-1-git-send-email-anshuman.khandual@arm.com/ Anshuman Khandual (2): mm/migration: Add trace events for THP migrations mm/migration: Add trace events for base page and HugeTLB migrations include/trace/events/migrate.h | 31 +++++++++++++++++++++++++++++++ include/trace/events/thp.h | 27 +++++++++++++++++++++++++++ mm/huge_memory.c | 5 +++++ mm/migrate.c | 3 +++ mm/rmap.c | 5 +++++ 5 files changed, 71 insertions(+)