From patchwork Wed Sep 13 02:20:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SeongJae Park X-Patchwork-Id: 13889 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9ecd:0:b0:3f2:4152:657d with SMTP id t13csp807393vqx; Tue, 12 Sep 2023 19:21:59 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFIk5KTStfZwmv/xZiHtHs1rcJtH5jwO50aBGsHz1EKzAyG5wWxiAqhbM7milxQ3Dry2vJ0 X-Received: by 2002:a17:903:228a:b0:1c0:e87e:52ba with SMTP id b10-20020a170903228a00b001c0e87e52bamr2200707plh.2.1694571719249; Tue, 12 Sep 2023 19:21:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694571719; cv=none; d=google.com; s=arc-20160816; b=o8nX+h4JKOs71dIUtjU0ZHutnElw+zEBbMyXbF09drYT0Qj9griD/NHsf4UAsYcprM OnEZ9dWAeJ1A2TWSU+XwvDc/N8Lyn48LDWPiUx/Glgm3RWgNL9trlvHnFqA2mFz7koNR FdLsBavnNQm5MHV8/9MXLANeki1LsCaBTnaUBQUTG6M2P61bzjCELcMJsb4R0fNdPwTs w9fEulmH+J5nGN9FJAUuLMt1mylWYT4nqLUpKb6NrwaJu1qNA/E0YCcZGpKuA9Ds6JWm MFrWsjEJU3GgtFygTG76OCEc6XJcv2v8czC+unI+iA7HEJBhzo8vZmTe+I586ZZC5gTo wDBQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=z1pVPJJGg0DGFsOUksgGA2irOu33U0eFkEgaAZhOd8Q=; fh=lgUuuJci/86Ilb5j7vXQq/iLZKbOrq1LyA9SXDtgsks=; b=oIt8UqKVA3cEZ18PpOwH4jqWMNgvoN7QV9CG42O+/inDHEI+XDnlNdWRenMION77z/ RHVv61cmqIxqCjLQQGKxg9U6N1xCiaz79QfnmMmoRPM1+CfDnJzHbcBaqGBeZSZhSHRw V+uyzKPOV8V5IEF9/GBFW9Zj/P1Wpng+F67t3TZNfVRRSveIUIFw+WJ5Z2Jkpc2mI6W6 xCAO0Fc10+Av9L62xYgvFx/N+x69mUr1ToN0irrXGmK4F2Oly+9b+dU0KcT9U7iC2BTp Vh036utJ8waK0jsVTjg+XYuyGcvhUMqVctaXIsWmFABBAeIEs2ZLFAxk723IT78ZFsJg qH0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="kBFiF8/3"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id x18-20020a17090300d200b001b7ea20dbf2si8769921plc.224.2023.09.12.19.21.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 19:21:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="kBFiF8/3"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 59ECD81E5578; Tue, 12 Sep 2023 19:21:21 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229719AbjIMCVB (ORCPT + 36 others); Tue, 12 Sep 2023 22:21:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57328 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237798AbjIMCVA (ORCPT ); Tue, 12 Sep 2023 22:21:00 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9526310FE; Tue, 12 Sep 2023 19:20:56 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8B026C433C8; Wed, 13 Sep 2023 02:20:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1694571656; bh=p0CHdZa8KlXcbj//65Q/lcW6/zB0JeOD1X2rYK6IK3Q=; h=From:To:Cc:Subject:Date:From; b=kBFiF8/35PXtPRvBqYjCRXhdoO+UEarSh5dbUSwBAEPJQwlMdFjuZ/luXqYQjywNx IAOQRFOepkA7K46VtpVJyeAAT3o+LAK4Pm5W9B/LnAW7oSNGi06iJ/aCi31xgkGON2 drn6ldmGNdsRsnIzYZQOz+0XeEm1Tzr0cft9MKRxAJtCiF67e286w17/fn31fxgM3H X4xLHQDT3gqPdbuWsILNkawG67XKIbdo2MLA5rF0N8vRx2ozhJMGkcsMYojfW5ycH1 QZXMk5Wyhkp2aOcJaD4sCTjBcHn8djIau9974JIgR1bKRbeF5e9IyiALHuu2RE7AGl U+OCdUUACJAsQ== From: SeongJae Park To: Andrew Morton Cc: SeongJae Park , Jonathan Corbet , Steven Rostedt , damon@lists.linux.dev, linux-mm@kvack.org, linux-trace-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH RESEND v2 0/2] mm/damon: add a tracepoint for damos apply target regions Date: Wed, 13 Sep 2023 02:20:48 +0000 Message-Id: <20230913022050.2109-1-sj@kernel.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Tue, 12 Sep 2023 19:21:21 -0700 (PDT) X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1776887235317772187 X-GMAIL-MSGID: 1776887235317772187 Changlog -------- From original v2 post (https://lore.kernel.org/damon/20230912183559.4733-1-sj@kernel.org/) - Fix header - Rebase on latest mm-unstable From v1 (https://lore.kernel.org/damon/20230911045908.97649-1-sj@kernel.org/) - Get scheme/target indices only when the trace is enabled (Steven Rostedt) From RFC (https://lore.kernel.org/damon/20230827004045.49516-1-sj@kernel.org/) - Fix the 4 byte hole (Steven Rostedt) - Add documentation Description ----------- DAMON provides damon_aggregated tracepoint to let users record full monitoring results. Sometimes, users need to record monitoring results of specific pattern. DAMOS tried regions directory of DAMON sysfs interface allows it, but the interface is mainly designed for snapshots and therefore would be inefficient for such recording. Implement yet another tracepoint for efficient support of the usecase. SeongJae Park (2): mm/damon/core: add a tracepoint for damos apply target regions Docs/admin-guide/mm/damon/usage: document damos_before_apply tracepoint Documentation/admin-guide/mm/damon/usage.rst | 37 +++++++++++++++---- include/trace/events/damon.h | 39 ++++++++++++++++++++ mm/damon/core.c | 32 +++++++++++++++- 3 files changed, 100 insertions(+), 8 deletions(-) base-commit: 8abeac23845e94681a163299a52d802b82475761