Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp736933rdb; Mon, 29 Jan 2024 17:36:12 -0800 (PST) X-Google-Smtp-Source: AGHT+IE3FQxf03Iv1Ia97me3CGgXLR9NNZoZVX33DeTDtsNHT5ZtOMl/7wHmTKmWHzuBdfYNEZxF X-Received: by 2002:a81:c907:0:b0:602:b7ce:4198 with SMTP id o7-20020a81c907000000b00602b7ce4198mr4569753ywi.5.1706578572092; Mon, 29 Jan 2024 17:36:12 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706578572; cv=pass; d=google.com; s=arc-20160816; b=jtmr/gbaG0nAJ8PICzqoDj6ebhsJm8uvqI7FlGXB5MLX8FwgONie+AoOkhnVH7e/fl owM2giGk9BY9/pbGwDz9Uu2ExOcsMzl1TKkVp8JVdQIxbQ5GuZHZHSGm0PvhIhexQgb0 10Gs5ZvovdwsbvDOZoxycnuLnV3XliL/Vsx4G61gfHlWJ3hTulseQ1Rf3tIEyB+CBsN1 C0fvtXBf2zFZCiMVEkInD9B1RqdNN6IE43KIUupn8+kdVkjJX6nJHIZ1xtcx1CROPiDW 0Pf3IgAK6voiCKTBQ668gfNRJk8ad8n7ZP4qNHdF97ppc7wk8sazsh90eRGT9IzE+eBs ABDg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=UzC8ulRKhx2TkCWNSpXrkL8CCPSSFTRwD3zm/bCozXE=; fh=jKijsxc1Z2CHKVFf4S4lB42jMLcn6gTpewOn4Tq1/VM=; b=iQYttAYGBC4NO+/XG7dHeCzaoFt6vt6hKv/bE4pmeBxuGYfzRrcq5WwmbAyr1W96cG e2FzH47UM7mn57Wgp5PCk4KGPkX5uifqvdvkGrO2HiI8Ft4S3YRtYRfC/oLFVPcafPNr KBSyRNtUyVa2N4yo5SwYPhYCqlGyujp6ewFUUUb4jVQaZFgSCJj1xrzrWg80E7P1ibUc fgDi2ahDzkNeFfhnndymqZNGdQGagad6hv5XJHdIQ5/hNLHn+LpuFjHdaC0R72JZGdRo zc+cmPFCFv/+4MbTr1bOYZdkjISIRtvTSlMM1OZ3eTKEyheVxbeOHcGK2pKow4PV8ke5 sUFw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=TyTGrLjQ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-43721-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-43721-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id wg9-20020a05620a568900b00783745cb706si2634602qkn.433.2024.01.29.17.36.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jan 2024 17:36:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-43721-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=TyTGrLjQ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-43721-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-43721-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id D406E1C2207C for ; Tue, 30 Jan 2024 01:36:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E5BEC3613D; Tue, 30 Jan 2024 01:35:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="TyTGrLjQ" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0F0202E40E; Tue, 30 Jan 2024 01:35:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706578558; cv=none; b=PM9JZBi3vKx78ME0Nb7HbG/sBAN6NFH6qyYyEE6rlFazE5pQh0M2FUkGGVOV5W/hLZPH2zRwLPN9RVNHTM4OczaoXkfram/Dgsunl/esTRIpzMIFqREuOb132uZC2lVt0bbRKYhAtngQSzWo+KvPoDegfFM2ZS/EYQ0lM0IBKHw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706578558; c=relaxed/simple; bh=77VtE5VeGNNpbwa0hrebctF5G9UJB4sc86yojoaICLY=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=UkIUWKaPOnTnJbuZX5mj1lUmBnQnmmwnfZpkIEGbvpAE/FQGzmGN4r9/MzW5I8h65mCLqJF+n2A8NthYqRIC5cVYFIPcbBi0oAz596dMzd3lb3Iuq2cUdlth7pmZL80zAUJ0OELSIhSQmSTZyL1zicLwOwN27UvA8hiVllSoZYs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=TyTGrLjQ; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2ADB8C43390; Tue, 30 Jan 2024 01:35:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706578557; bh=77VtE5VeGNNpbwa0hrebctF5G9UJB4sc86yojoaICLY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=TyTGrLjQCQhz8bD5mowo3BX2lOX8zP9+UFaUtGUfheU1Uga89bmlQqQelNt3gE8hy PauFBb9VoHKnGQDPacecP/BTTR1EEFJC3kkM57zEqm/y1HA5DXYwSiRz7BkD10BbAZ 4N5f0LVlsLMTdBmyHOQyegGstohPrML3/8mtPMvJuIa9a5AegAE33ILmxRSQtbJR8/ dHglWue96C9Z8l6orgyB+HDb8j8V1+P4e27BBR+IdlQpT3ItD4Gq9VOBQIhO5FvDs5 hK7URWQ03wLuU6J+N3oUBz+Kp7yAvXCYx4uPCzV2e887ccgqZn9cVhd3QcGqEmvk9t w0mJHW11Ao0Sg== From: SeongJae Park To: Andrew Morton Cc: SeongJae Park , Jonathan Corbet , damon@lists.linux.dev, linux-mm@kvack.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/9] Docs/admin-guide/mm/damon/usage: use sysfs interface for tracepoints example Date: Mon, 29 Jan 2024 17:35:40 -0800 Message-Id: <20240130013549.89538-2-sj@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240130013549.89538-1-sj@kernel.org> References: <20240130013549.89538-1-sj@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit DAMON tracepoints example on the DAMON usage document is using DAMON debugfs interface, which is deprecated. Use its alternative, DAMON sysfs interface. Signed-off-by: SeongJae Park --- Documentation/admin-guide/mm/damon/usage.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/admin-guide/mm/damon/usage.rst b/Documentation/admin-guide/mm/damon/usage.rst index 9d23144bf985..f2feabb4bd35 100644 --- a/Documentation/admin-guide/mm/damon/usage.rst +++ b/Documentation/admin-guide/mm/damon/usage.rst @@ -579,11 +579,11 @@ monitoring results recording. While the monitoring is turned on, you could record the tracepoint events and show results using tracepoint supporting tools like ``perf``. For example:: - # echo on > monitor_on + # echo on > kdamonds/0/state # perf record -e damon:damon_aggregated & # sleep 5 # kill 9 $(pidof perf) - # echo off > monitor_on + # echo off > kdamonds/0/state # perf script kdamond.0 46568 [027] 79357.842179: damon:damon_aggregated: target_id=0 nr_regions=11 122509119488-135708762112: 0 864 [...] -- 2.39.2