Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3370779ybb; Sun, 22 Mar 2020 22:59:34 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvqc23i9NBzYSJ0To+rxf2mjvIRN9s9yL9WkH/lVqOIoVFhwExRshyDCJspNGvN4SW1mdq7 X-Received: by 2002:a05:6830:2014:: with SMTP id e20mr16882670otp.317.1584943174136; Sun, 22 Mar 2020 22:59:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584943174; cv=none; d=google.com; s=arc-20160816; b=FxtsJwDWJybln0g8HkGTmSeqRU1fOWlW/bcDLTbwODdJYRAHLwWGk3KWLReHvwaJ3E pw2h3VOrLSjdj8KIBcy1EoUUGCrFxOxZLu5VHWaxI9bjWnkj4IRH3YY94wcEaTgx8izt 9u9nOKPl1ftYZWc9JSW9UPXWEI0LuGMj+GaaUdRJ6AlfeNPE3jj31A796cXNjga1yNPq 9XoCQuT8DOz4hzpONM+tb9x4wEZqYmcYPRMh5x90/P/U3/NFTlX/NJ9eBSFkzHkHFkW1 6xUGzmbX/d4DZx49l/AQP7mBs1NcY9mmbdwIyyvgJaRk08WuArbl5bqYGCRt6fdGzapI L2Gg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=AvPMLnaaQp5jiQnFy8j79lDeL85S2eJpDF4bBEQ7H5k=; b=ksSZA9A8lffR6dL/WWggfmNBov0JV7QPp1jTKP12smy4NXWjsY1dk4ZC4gZ2KGGVTK 4xH8RTnGFFe2ilSwDo+PHM+l3QCuGELzVv4H4ckRWF2Gc76xd/6/uROfd/iIt7WXpDyz JBySXBCqRgf30M/KHKuQ4xy2QqG9IcIsHV24rElU3g+VnBAnupH98omp/+V7m6nKWuAS A9OvIJmchHZNtLygsX+Y+bVPn3cHVev0AZPxbqSLc1/4oKJDlm/nMa5+KFu0SVqGmtHz jT7E96UaG44p1rZu10Ve69/H7ekoI5fKn3sIx5qlAMm95WQR1Qcp0OF04U74vmjyoNFM lVuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ugUQ+yGa; 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 q23si7409017otg.271.2020.03.22.22.59.21; Sun, 22 Mar 2020 22:59:34 -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=ugUQ+yGa; 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 S1726142AbgCWF61 (ORCPT + 99 others); Mon, 23 Mar 2020 01:58:27 -0400 Received: from mail-qk1-f196.google.com ([209.85.222.196]:46977 "EHLO mail-qk1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725924AbgCWF61 (ORCPT ); Mon, 23 Mar 2020 01:58:27 -0400 Received: by mail-qk1-f196.google.com with SMTP id u4so2273575qkj.13 for ; Sun, 22 Mar 2020 22:58:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=AvPMLnaaQp5jiQnFy8j79lDeL85S2eJpDF4bBEQ7H5k=; b=ugUQ+yGaL0p1o6UW9RpqRggClsYXccqqSB8FplD5exKthFaSGIIM/bgCdB2mzcqEYV rdITpGe+oBPR5P1SiacQUztmoejS3s93zIlvhfO0woTNsQTyojw9/idWSLv9bJkBdC3+ wdy3exjAspK7nQ1RZtj8NwwNEgC3RSwMeIkxtTjlUyq2Amwwtdc7kqlgCtcAsMWhtTcR PYaV1/JOX8XEAIgn49RnI1IsKyYT/ykRpJcb3z61Vpc38FjtywISV/mrRgEfxKkuLTBu RCZ9B6W03gW2S1x7f1y1AFwHaBJaCV91k5kr3D1OlfknszE1EroIHKpwBwd7489/vqAZ iE2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=AvPMLnaaQp5jiQnFy8j79lDeL85S2eJpDF4bBEQ7H5k=; b=scHR7r0ZIb+yzrcYZrtrjmeaSnuc/JFzlssHZnCb1i2qo94TKltxBbSUnH1s/K7D// 8ORNjiGvGeXkbhqQpZy6EPmfrMc9Josgs9Ka3PBwluIp//KRWWyr/z0juRxi+0dgfIeh 63IgEQlGT+Y1NJVjBYDd/8ZG0ZaojJEjTv1t4XccnuXY5GswNyA9rk5CDv7dW2SCcvxH xHTFX1DHMWeJt6ae76VIy7MZse5EynWlPqhOduZnEXLHLhzndRZxg2hT4ckJkDAwxOar mo9oqBObEXVq4loNRMPmlWL8bRb6ST4CdZj5oyTRyB87r7S5lkPJI2wQnx6LUnTBiXUF tANA== X-Gm-Message-State: ANhLgQ3t20WK8dXMVXd4CfjAVxtZ3QEJwtVYSPno7By2uISJZEuxZw0z IY0pjGptKt8O+hC967L2O9Q0tGT60ISsKtSeI4k= X-Received: by 2002:a37:8cc1:: with SMTP id o184mr1271395qkd.187.1584943106149; Sun, 22 Mar 2020 22:58:26 -0700 (PDT) MIME-Version: 1.0 References: <1584938972-7430-1-git-send-email-iamjoonsoo.kim@lge.com> <1584938972-7430-3-git-send-email-iamjoonsoo.kim@lge.com> <20200323052145.GD3039@MiWiFi-R3L-srv> <20200323054037.GI2987@MiWiFi-R3L-srv> In-Reply-To: <20200323054037.GI2987@MiWiFi-R3L-srv> From: Joonsoo Kim Date: Mon, 23 Mar 2020 14:58:15 +0900 Message-ID: Subject: Re: [PATCH v4 2/2] mm/page_alloc: integrate classzone_idx and high_zoneidx To: Baoquan He Cc: Andrew Morton , Linux Memory Management List , LKML , Johannes Weiner , Michal Hocko , Minchan Kim , Vlastimil Babka , Mel Gorman , kernel-team@lge.com, Ye Xiaolong , David Rientjes , Joonsoo Kim Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2020=EB=85=84 3=EC=9B=94 23=EC=9D=BC (=EC=9B=94) =EC=98=A4=ED=9B=84 2:40, B= aoquan He =EB=8B=98=EC=9D=B4 =EC=9E=91=EC=84=B1: > > > diff --git a/include/trace/events/compaction.h b/include/trace/events= /compaction.h > > > index e5bf6ee..54e5bf0 100644 > > > --- a/include/trace/events/compaction.h > > > +++ b/include/trace/events/compaction.h > > > @@ -314,40 +314,44 @@ TRACE_EVENT(mm_compaction_kcompactd_sleep, > > > > > > DECLARE_EVENT_CLASS(kcompactd_wake_template, > > > > > > - TP_PROTO(int nid, int order, enum zone_type classzone_idx), > > > + TP_PROTO(int nid, int order, enum zone_type highest_zoneidx), > > > > > > - TP_ARGS(nid, order, classzone_idx), > > > + TP_ARGS(nid, order, highest_zoneidx), > > > > > > TP_STRUCT__entry( > > > __field(int, nid) > > > __field(int, order) > > > - __field(enum zone_type, classzone_idx) > > > + __field(enum zone_type, highest_zoneidx) > > > ), > > > > > > TP_fast_assign( > > > __entry->nid =3D nid; > > > __entry->order =3D order; > > > - __entry->classzone_idx =3D classzone_idx; > > > + __entry->highest_zoneidx =3D highest_zoneidx; > > > ), > > > > > > + /* > > > + * classzone_idx is previous name of the highest_zoneidx. > > > + * Reason not to change it is the ABI requirement of the tracepoi= nt. > > > + */ > > > TP_printk("nid=3D%d order=3D%d classzone_idx=3D%-8s", > > ~~~~~~~~~~ this one could be missed. > > Oh, I realized above 'classzone_idx=3D%-8s' being kept is for the old > script compatibility? then it's OK. Yes, this is for userspace compatibility. There are two places that aren't changed due to compatibility and they are commented on top of the line. Thanks. > > > > And I applied this patch series, use 'git grep classzone_idx' to search > > any relics, found below classzone_idx leftover in perl script. > > [~]$ git grep classzone_idx > > Documentation/trace/postprocess/trace-vmscan-postprocess.pl:my $regex_l= ru_isolate_default =3D 'isolate_mode=3D([0-9]*) classzone_idx=3D([0-9]*) or= der=3D([0-9]*) nr_requested=3D([0-9]*) nr_scanned=3D([0-9]*) nr_skipped=3D(= [0-9]*) nr_taken=3D([0-9]*) lru=3D([a-z_]*)'; > > Documentation/trace/postprocess/trace-vmscan-postprocess.pl: = "isolate_mode", "classzone_idx", "order",