Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp2969369rdb; Tue, 12 Sep 2023 19:23:24 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHnEhYv58OuXEc5BFOkdqzfTM5bqEmX09m9Ln/UQqGpflGWI4DclLF8m0fbYtQQH6hjTiQP X-Received: by 2002:a17:902:da87:b0:1be:f37f:a8d5 with SMTP id j7-20020a170902da8700b001bef37fa8d5mr5354054plx.10.1694571803923; Tue, 12 Sep 2023 19:23:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694571803; cv=none; d=google.com; s=arc-20160816; b=HZd9eoS9nexrAIBGEyCGuz4CEAFPfQrOpz8tG6Tgsj2umNp0EPQKt1XFt8m9Tx1xPV 2weivOsTKkkWQaAwXaYwBllI93AauqrdpPRVJFTKYRsarvkXfmtAEjexhQOJKh6IRirG 0hmVYdjXJg+ZqLgutaJuU/ssV01C7f6ePg9sLFBlzlgLCJM01HdbpWi3/4CEBRoleVy+ 9jtVqr1Kx9Whx+VIvXKlns2lw+3cFxeyR219lbxuRRIanZ2+BxayAIgaFatiZFBnNahY PqxW203WI+2IHmaiGEebxAR7W5sbxKM0gk/EqYxmR3e4P9o40F07IkIH2XCP1TWfib6R HzLA== 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.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id z13-20020a1709027e8d00b001b9ffda161esi9121877pla.451.2023.09.12.19.23.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 19:23:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; 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.31 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 morse.vger.email (Postfix) with ESMTP id 1B75780ABFF0; Tue, 12 Sep 2023 19:21:13 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238151AbjIMCVB (ORCPT + 99 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 Content-Transfer-Encoding: 8bit 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 (morse.vger.email [0.0.0.0]); Tue, 12 Sep 2023 19:21:13 -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 morse.vger.email 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 -- 2.25.1