Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp248763pxa; Tue, 4 Aug 2020 23:25:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxx7afhFCJsBUpxnkxkO5hT0cReLc3eFtxOqy5T0XlTjA8KVCcuXIX8ba7RgAlrsq7/61yM X-Received: by 2002:a17:906:d159:: with SMTP id br25mr1684560ejb.16.1596608727654; Tue, 04 Aug 2020 23:25:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596608727; cv=none; d=google.com; s=arc-20160816; b=fPkmps0ljTU3toGpTwJpzNoY9865mL+9i6PmmpZPpwTUOfrkQ6UrnMCbY5J9UqeR74 XTw4hrp6SLDeZw1j1c0ELnwbrz2VDRvetVxLkNvnHAez6ZN3CbIHrf8ro6z4opOd1Mst yg+CAs1wI246ueyJj98kAnR68fHdN9fKXDGq3S8W/cUAn+/u1py3d9QRUD6QlOaznkXB vcWyb6TD6Z6nBDcQnKvyjqTch3omM95xItR8b8VpNhExMLduBoZCZoKYDvyTz0fu4wXi EbZZxNrOAPDVQXW9YDlxdjwWnpnbkow5LOS1iA5R7kveskX6cJ9aEWTdzadhKed9cPuK wp0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:in-reply-to:message-id:date :subject:cc:to:from:ironport-sdr:dkim-signature; bh=5lSVeMwhnW0MdPI/AZAXkR/tN0Rb+ZbTOxeir3z6Hzs=; b=uLypOQJCBW2IUPR+XHxYO+5Yc/qnCANdZ4UqN21QdAV3PEFtSfFJ2SmuuRmY0ZWBXx 9J+lxzaPkRDMIFxt/DjHffQCgqbdqZSA8kNciNCkjtt318xfd2Kc1XXY1xNa7HVQ0sai dbcQH4L9iSJSfBf/ZgVJdf1M9SkmzAIMOwDDLER/iqY5xofQn6lnjg2ZZT4GMpVWygmU gPL09hg8jlrKdi3eCrtLyeaFpxDeavSAslcL2T3Ab/lLq3DP0Xqp4KlCXE58wtFPYPwg IVJoVRoybepTtSXuv7vMgKidRBBlqlo3ASpZipt2GnNcrL6MYvfLYivIqTcM3IpTSS93 CMpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=vV7opS8n; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f2si693846ejr.18.2020.08.04.23.25.05; Tue, 04 Aug 2020 23:25:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=vV7opS8n; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727855AbgHEGXv (ORCPT + 99 others); Wed, 5 Aug 2020 02:23:51 -0400 Received: from smtp-fw-6001.amazon.com ([52.95.48.154]:35456 "EHLO smtp-fw-6001.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725904AbgHEGXu (ORCPT ); Wed, 5 Aug 2020 02:23:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1596608631; x=1628144631; h=from:to:cc:subject:date:message-id:in-reply-to: mime-version; bh=5lSVeMwhnW0MdPI/AZAXkR/tN0Rb+ZbTOxeir3z6Hzs=; b=vV7opS8nueCEYhqJ8HmQx1r9PMyGTqeVJAwX1JCNEw/KFt//WwMThp/F z7UOKxWYwe57VnDmUU0dmiXtqU+7WlFZrJXQgxVT5iIExkmOGNk1TBNJe EA7z8RAYGf/ZXtzr99v62WbM5Pp3gI356A3r01r44MW0C0SjFo/MPmdB3 Q=; IronPort-SDR: gcki4P2QkTT/fe4dxt/fYdBVnGC+8nZEmn8DHVMRm0+Vsl59PM3wewzuZd3fmCir5LjVkZJi06 ONABzTirvvEQ== X-IronPort-AV: E=Sophos;i="5.75,436,1589241600"; d="scan'208";a="47554303" Received: from iad12-co-svc-p1-lb1-vlan3.amazon.com (HELO email-inbound-relay-1e-303d0b0e.us-east-1.amazon.com) ([10.43.8.6]) by smtp-border-fw-out-6001.iad6.amazon.com with ESMTP; 05 Aug 2020 06:23:50 +0000 Received: from EX13MTAUEA002.ant.amazon.com (iad55-ws-svc-p15-lb9-vlan2.iad.amazon.com [10.40.159.162]) by email-inbound-relay-1e-303d0b0e.us-east-1.amazon.com (Postfix) with ESMTPS id E5E2CA26F6; Wed, 5 Aug 2020 06:23:38 +0000 (UTC) Received: from EX13D31EUA001.ant.amazon.com (10.43.165.15) by EX13MTAUEA002.ant.amazon.com (10.43.61.77) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 5 Aug 2020 06:23:38 +0000 Received: from u886c93fd17d25d.ant.amazon.com (10.43.162.140) by EX13D31EUA001.ant.amazon.com (10.43.165.15) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 5 Aug 2020 06:23:21 +0000 From: SeongJae Park To: Steven Rostedt CC: SeongJae Park , SeongJae Park , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , Subject: Re: [PATCH v19 08/15] mm/damon: Add a tracepoint Date: Wed, 5 Aug 2020 08:23:05 +0200 Message-ID: <20200805062305.9417-1-sjpark@amazon.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200804180147.16d34809@oasis.local.home> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.43.162.140] X-ClientProxiedBy: EX13D21UWB004.ant.amazon.com (10.43.161.221) To EX13D31EUA001.ant.amazon.com (10.43.165.15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 4 Aug 2020 18:01:47 -0400 Steven Rostedt wrote: > On Tue, 4 Aug 2020 11:14:09 +0200 > SeongJae Park wrote: > > > From: SeongJae Park > > > > This commit adds a tracepoint for DAMON. It traces the monitoring > > results of each region for each aggregation interval. Using this, DAMON > > can easily integrated with tracepoints supporting tools such as perf. > > > > Signed-off-by: SeongJae Park > > Reviewed-by: Leonard Foerster > > --- > > include/trace/events/damon.h | 43 ++++++++++++++++++++++++++++++++++++ > > mm/damon.c | 4 ++++ > > 2 files changed, 47 insertions(+) > > create mode 100644 include/trace/events/damon.h > > [...] > > --- a/mm/damon.c > > +++ b/mm/damon.c > > @@ -20,6 +20,8 @@ > > > > #define pr_fmt(fmt) "damon: " fmt > > > > +#define CREATE_TRACE_POINTS > > + > > #include > > #include > > #include > > @@ -31,6 +33,7 @@ > > #include > > #include > > #include > > It's best to place the #define CREATE_TRACE_POINTS here, so that it > doesn't cause any side effects when including the other headers. Agreed, I will do so in the next spin! > > Other than that: > > Reviewed-by: Steven Rostedt (VMware) > > -- Steve Thanks, SeongJae Park