hc
2024-09-20 cf4ce59b3b70238352c7f1729f0f7223214828ad
kernel/tools/vm/page-types.c
....@@ -1,18 +1,6 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * page-types: Tool for querying page flags
3
- *
4
- * This program is free software; you can redistribute it and/or modify it
5
- * under the terms of the GNU General Public License as published by the Free
6
- * Software Foundation; version 2.
7
- *
8
- * This program is distributed in the hope that it will be useful, but WITHOUT
9
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
11
- * more details.
12
- *
13
- * You should find a copy of v2 of the GNU General Public License somewhere on
14
- * your Linux system; if not, write to the Free Software Foundation, Inc., 59
15
- * Temple Place, Suite 330, Boston, MA 02111-1307 USA.
164 *
175 * Copyright (C) 2009 Intel corporation
186 *
....@@ -90,6 +78,7 @@
9078 #define KPF_ARCH 38
9179 #define KPF_UNCACHED 39
9280 #define KPF_SOFTDIRTY 40
81
+#define KPF_ARCH_2 41
9382
9483 /* [48-] take some arbitrary free slots for expanding overloaded flags
9584 * not part of kernel API
....@@ -133,7 +122,7 @@
133122 [KPF_NOPAGE] = "n:nopage",
134123 [KPF_KSM] = "x:ksm",
135124 [KPF_THP] = "t:thp",
136
- [KPF_BALLOON] = "o:balloon",
125
+ [KPF_OFFLINE] = "o:offline",
137126 [KPF_PGTABLE] = "g:pgtable",
138127 [KPF_ZERO_PAGE] = "z:zero_page",
139128 [KPF_IDLE] = "i:idle_page",
....@@ -147,6 +136,7 @@
147136 [KPF_ARCH] = "h:arch",
148137 [KPF_UNCACHED] = "c:uncached",
149138 [KPF_SOFTDIRTY] = "f:softdirty",
139
+ [KPF_ARCH_2] = "H:arch_2",
150140
151141 [KPF_READAHEAD] = "I:readahead",
152142 [KPF_SLOB_FREE] = "P:slob_free",