Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp6701752ybe; Wed, 18 Sep 2019 07:43:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqyYkxsvXfxKLTYIHOckCbh7bud+dc5qNe6a0G+O6MrGaXBfsPaU54L3kTI/dl/EOr16RyaS X-Received: by 2002:a50:91d0:: with SMTP id h16mr11159471eda.152.1568817826755; Wed, 18 Sep 2019 07:43:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568817826; cv=none; d=google.com; s=arc-20160816; b=G5ReQ3nCSWM0To8D8W4EjoX/BImv+R6+vtsbpw9HLZ50qA/V0UbAhFJAj2WcR4KTey RtA0gOVmhNo1rOaxsvxTkBhxsidokxMDRN43xVChdp2fEPUvUapqynCweDaGQqx1mdns /gFjdW5s2XMDcH1QFhF0oqoQ3tlT7X8oPDQEu5Gvuru0G+fP2JBlvuG8N6erZMMZeguk OAIFJeWWA5UJ9FEi44/8fr5aiGyxM77DQF6xzU4zUdGJ+2tIB89sx3JEY+g3jg2G5/hB kq08E66m8J9e1LkIcxHZmCzo630Zsyv/EtZibkSWde7ttgD8YNqNgR7GwYod/Ec6hmSZ RlAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=quDi5FFcEHmlmH1e9u/MVGG/WChEumxXk9EifB9fhCs=; b=LIzNk0uWEclhzM2cU+lyJmv3Hkz+1DOiyMft3wMqz68y7Req5uBPDSOVIdlTGtYD2K WVnXkhxZ6RCJQTnUJCsDW6V7ig0GgIOPb+LLuG+U3Vq0i9IIunZs4wuJm/64pnnKmpGl 4PkmxIT6siciBxChh3xDXpMoG73n5NwkTvy/QWy0cJe1zr4BtVlRs308OgqsG0jeGv1Q UFeZCz17FCrXHyNThjvdl2/aZNXKKwFilvXZDt5NN/jzNySauGjpEJzFWU5RMKc4lxCm fD17BOGLNPGw+qyV6CLL7mQfr8BwF2qpJa+lUJRJMniyZWQX8OOQkDtLeQdzz/FvVJ3v /kEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=X4AGJTsD; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x22si3535291edi.382.2019.09.18.07.43.23; Wed, 18 Sep 2019 07:43:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=X4AGJTsD; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731282AbfIROjR (ORCPT + 99 others); Wed, 18 Sep 2019 10:39:17 -0400 Received: from mail-pl1-f194.google.com ([209.85.214.194]:36002 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730211AbfIROjQ (ORCPT ); Wed, 18 Sep 2019 10:39:16 -0400 Received: by mail-pl1-f194.google.com with SMTP id f19so54933plr.3 for ; Wed, 18 Sep 2019 07:39:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=quDi5FFcEHmlmH1e9u/MVGG/WChEumxXk9EifB9fhCs=; b=X4AGJTsD51BzXMVwK60Kca2mkVAorXHjtmOlaZmPsf02Km0NHNPnq13zWfat/YHbtE MV426iBdoaftcc9CNARoo9dNrKrwcZL4wBWxBcv93uDY1tG18vQdFyTr5wQz5d6/1lq5 3lQz/3U76yl0m6th7oYYIAGey6OJIu9/koqpHyYGIMnlIFoRXuty8rR1WIYFh0yF+GVB AhYxq+YLPDtaaYDt0eYStxC/EKX79V2fKip58qT/VjKFMF7VmJYvOuJXaJWGMI1C854P PfMMGrru9f7WlqiI2p3n2RWtbExtuQYTlaSnLnzYyKxhGMvtyzsu/7caN3OpTAvEUyUF oYeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=quDi5FFcEHmlmH1e9u/MVGG/WChEumxXk9EifB9fhCs=; b=KsX0u+GUT738Q9KpAY/lhfBY6cd46W7tqCdozQxoJga1dWMTLlnUaKjUei5KDBQZIE fbSyph7VNpeCeRlMv58wAoRr2mYbx4pk57vUulKKYcQ911/vZ1RIujcu/kv7DlytMmUm pb+ZtUykMH0UBCMEBxvLgUrBTCs77M+7OTQRtUJvzc3P3iw0SpCji5Qw5gP9y3NRdOg+ bvHCt+k38b0joDdimpPLBuP8iFsYG2swbAdQWwkeeT6rgrLRbco+2X2g7O/X94JNPzl3 NzPSaX2wsI8CesM8Xisu+NpQ3/oFMyx8HV9vDyQ/DiyVhZfPkrWEBfUIt5VlHBx7dzJd 47CA== X-Gm-Message-State: APjAAAUmmeLk4kB4tfGwn12DQ+lXczWYPLyYo2vQiGXhFFDKy+audvlM 6LnHWJBSgmjMPrZBakWSuXw= X-Received: by 2002:a17:902:7c13:: with SMTP id x19mr4662626pll.322.1568817556152; Wed, 18 Sep 2019 07:39:16 -0700 (PDT) Received: from dev.localdomain ([203.100.54.194]) by smtp.gmail.com with ESMTPSA id l11sm5272197pgq.58.2019.09.18.07.39.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 18 Sep 2019 07:39:15 -0700 (PDT) From: Yafang Shao To: peterz@infradead.org, mingo@redhat.com, acme@kernel.org, jolsa@redhat.com, namhyung@kernel.org, akpm@linux-foundation.org Cc: tonyj@suse.com, florian.schmidt@nutanix.com, daniel.m.jordan@oracle.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Yafang Shao Subject: [PATCH 2/2] tracing, vmscan: add comments for perf script page-reclaim Date: Wed, 18 Sep 2019 10:38:42 -0400 Message-Id: <1568817522-8754-3-git-send-email-laoar.shao@gmail.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1568817522-8754-1-git-send-email-laoar.shao@gmail.com> References: <1568817522-8754-1-git-send-email-laoar.shao@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Currently there's no easy way to make perf scripts in sync with tracepoints. One possible way is to run perf's tests regularly, another way is once we changes the definitions of tracepoints we must keep in mind that the perf scripts which are using these tracepoints must be changed as well. So I add this comment for the new introduced page-reclaim script as a reminder. Signed-off-by: Yafang Shao --- include/trace/events/vmscan.h | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/include/trace/events/vmscan.h b/include/trace/events/vmscan.h index a5ab297..f0447ad 100644 --- a/include/trace/events/vmscan.h +++ b/include/trace/events/vmscan.h @@ -1,4 +1,17 @@ -/* SPDX-License-Identifier: GPL-2.0 */ +/* SPDX-License-Identifier: GPL-2.0 + * + * Bellow tracepoints are used by perf script page-reclaim: + * mm_vmscan_direct_reclaim_begin + * mm_vmscan_direct_reclaim_end + * mm_vmscan_kswapd_wake + * mm_vmscan_kswapd_sleep + * mm_vmscan_wakeup_kswapd + * mm_vmscan_lru_shrink_inactive + * mm_vmscan_writepage + * We must keep the definitions of these tracepoints in sync with the perf + * script page-reclaim. + */ + #undef TRACE_SYSTEM #define TRACE_SYSTEM vmscan -- 1.8.3.1