From patchwork Fri Jan 28 11:09:40 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anshuman Khandual X-Patchwork-Id: 12728224 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 A7C67C433FE for ; Fri, 28 Jan 2022 11:09:50 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 42FDF6B0072; Fri, 28 Jan 2022 06:09:50 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 3DE466B0073; Fri, 28 Jan 2022 06:09:50 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 2F4C26B0074; Fri, 28 Jan 2022 06:09:50 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0152.hostedemail.com [216.40.44.152]) by kanga.kvack.org (Postfix) with ESMTP id 214B56B0072 for ; Fri, 28 Jan 2022 06:09:50 -0500 (EST) Received: from smtpin06.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id D73C08F6E9 for ; Fri, 28 Jan 2022 11:09:49 +0000 (UTC) X-FDA: 79079425698.06.15B1B42 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by imf16.hostedemail.com (Postfix) with ESMTP id 417A9180055 for ; Fri, 28 Jan 2022 11:09:42 +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 39E2412FC; Fri, 28 Jan 2022 03:09:41 -0800 (PST) Received: from p8cg001049571a15.arm.com (unknown [10.163.45.35]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 697603F766; Fri, 28 Jan 2022 03:09:39 -0800 (PST) From: Anshuman Khandual To: linux-mm@kvack.org, akpm@linux-foundation.org Cc: Anshuman Khandual Subject: [PATCH V3 0/2] mm/migration: Add trace events Date: Fri, 28 Jan 2022 16:39:40 +0530 Message-Id: <1643368182-9588-1-git-send-email-anshuman.khandual@arm.com> X-Mailer: git-send-email 2.7.4 X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: 417A9180055 X-Rspam-User: nil Authentication-Results: imf16.hostedemail.com; dkim=none; dmarc=pass (policy=none) header.from=arm.com; spf=pass (imf16.hostedemail.com: domain of anshuman.khandual@arm.com designates 217.140.110.172 as permitted sender) smtp.mailfrom=anshuman.khandual@arm.com X-Stat-Signature: 958ctneoh313dee8mwqbdi34atqh9ehj X-HE-Tag: 1643368182-793430 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000019, 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 V3: - Dropped #define CREATE_TRACE_POINTS from powerpc platform in PATCH 01/02 - Dropped #define CREATE_TRACE_POINTS from x86 platform in PATCH 02/02 - Dropped #define CREATE_TRACE_POINTS from in PATCH 02/02 Changes in V2: https://lore.kernel.org/all/1643080105-11416-1-git-send-email-anshuman.khandual@arm.com/ - 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 arch/powerpc/mm/book3s64/trace.c | 1 - arch/x86/mm/init.c | 1 - include/trace/events/migrate.h | 31 +++++++++++++++++++++++++++++++ include/trace/events/thp.h | 27 +++++++++++++++++++++++++++ mm/huge_memory.c | 5 +++++ mm/migrate.c | 4 +++- mm/rmap.c | 6 ++++++ 7 files changed, 72 insertions(+), 3 deletions(-)