Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp2779214rdb; Tue, 12 Sep 2023 11:47:38 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHY044/lQiv7jj9gkdm8WLSeQQlyvxQaBP8L4C3ky6khzFe3dizclbTQep80IGyHnfUhHIt X-Received: by 2002:a05:6871:9b:b0:1bb:89b1:77b7 with SMTP id u27-20020a056871009b00b001bb89b177b7mr498714oaa.16.1694544458479; Tue, 12 Sep 2023 11:47:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694544458; cv=none; d=google.com; s=arc-20160816; b=QyGiaY5/YtUj2cumK5L/aOyb1aIp7r759P/QwkTuLz2BAURvjmPUKaW2uTpuQ5zFhb HWLpgJeQg9pB3GQfgdeoU6XAoF9aqBtY9Mc3RGx1d/mhBfXoPF/2qSmDauIfFpY0n9QQ F10w4WsrH5IXRINFiaa6CoPE9WBZc6YTgY/gr+nVz2AWiCTFUwCIvvEYTDtCcGDxnxsD YaGMqb41kAzGEvI/UG1Bt9atxg1U+qiTTXsD3cfLW6T+XMUNH2fnWHxT0TaXXOYxK5n1 zu7ZWbzn0KohVAoO14e549On00pki1VCI8XFASThGlGzEzIgiEsZcN+7p9OQ4MlD/Clk n7GQ== 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=Y2uZJvujDDrS1D/27Kg4J5AsnPiJ6zWN9sBb/VoItqE=; fh=s/ITxUm6tqkJykgnz0abtHENgQUPEZy9r40MG1TQbpM=; b=mes358soQocdQRflniNYOf3bcs3PY1OXBBhTd+ESLEs/aUAkade0FZ+4naPc7qmr9C F4iNWEjtJQsU7slS6FMGIdv+93WYiLJHPGA40PBPRqtfvAHhoCUb5+FXRUl+aPnU+IP1 4YHflPApLlQXY+kROqeBWNdbKxv1A0y3ZKA1oREemtHHeGykxJ8u2dsGGy6BrAFrtHz4 lcx3KyQ0srT0hNDOmYuv/zF4wWqPRxSmHlSTUoon7JL7W6SDOTMwHBTXSsEGQlpbdfGW LSZaN76/ikDlPwGPQFc09xSTw47pYn6pTxNaNxG9EBlilGR4KqyhfaMfWTkuCzJu1YYH pwxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FczWdyoc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id x34-20020a634a22000000b00563dd9b6da6si8040003pga.718.2023.09.12.11.47.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 11:47:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FczWdyoc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (Postfix) with ESMTP id 306FF82CEFF8; Tue, 12 Sep 2023 11:36:08 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237485AbjILSgJ (ORCPT + 99 others); Tue, 12 Sep 2023 14:36:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51770 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237477AbjILSgI (ORCPT ); Tue, 12 Sep 2023 14:36:08 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 301E510FF; Tue, 12 Sep 2023 11:36:03 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0ADCBC433C7; Tue, 12 Sep 2023 18:36:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1694543762; bh=sIE7XusR8HEiVTTAGJWiBafgMfTjtTZ475tcPsexnh8=; h=From:To:Cc:Subject:Date:From; b=FczWdyocMbir8+14OTgsluwARC/tF+bagortZhA8weYxUN5RLjbo0l7GWzqGpQ5iD VZ5reLr3U9U45keAY4HJmnadnkyywAFDaCAJ6dTI34FtuqUAs4eY5LYpLQsFukH0gR RfIxDwnQfr2tixWuf0rpwfR+Ix+op/0OWqUwxSaBt1zxbIwnF47QITEoNv1crbSTGA UMXyQ3wQ6eqsHu48oV5Z/LvPHIlYgbYIcrxdkmTXq4N+OLYEObngAxCSFu7L+eq7Cj OhVs5LZIz1aJ7bk+uKnSDQsG9lZpSjIeTY0Dhb2GOCJ/+7Juyi1grMymJXGQg0UPl2 ErQ9xzS/EfK/Q== From: SeongJae Park To: Andrew Morton Cc: SeongJae Park , Jonathan Corbet , Steven Rostedt , damon@lists.linux.dev, linux-mm@kvack.org, linux-doc@vger.kernel.org, linux-trace-kernel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Date: Tue, 12 Sep 2023 18:35:57 +0000 Message-Id: <20230912183559.4733-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 (howler.vger.email [0.0.0.0]); Tue, 12 Sep 2023 11:36:08 -0700 (PDT) Date: Tue, 12 Sep 2023 02:24:11 +0000 Subject: [PATCH v2 0/2] mm/damon: add a tracepoint for damos apply target regions Changlog -------- 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: b67dc18d1406be3598248d2cc78904a81176fa13 -- 2.25.1