File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -87,6 +87,7 @@ struct damon_target {
87
87
* @DAMOS_HUGEPAGE: Call ``madvise()`` for the region with MADV_HUGEPAGE.
88
88
* @DAMOS_NOHUGEPAGE: Call ``madvise()`` for the region with MADV_NOHUGEPAGE.
89
89
* @DAMOS_STAT: Do nothing but count the stat.
90
+ * @NR_DAMOS_ACTIONS: Total number of DAMOS actions
90
91
*/
91
92
enum damos_action {
92
93
DAMOS_WILLNEED ,
@@ -95,6 +96,7 @@ enum damos_action {
95
96
DAMOS_HUGEPAGE ,
96
97
DAMOS_NOHUGEPAGE ,
97
98
DAMOS_STAT , /* Do nothing but only record the stat */
99
+ NR_DAMOS_ACTIONS ,
98
100
};
99
101
100
102
/**
@@ -157,10 +159,12 @@ struct damos_quota {
157
159
*
158
160
* @DAMOS_WMARK_NONE: Ignore the watermarks of the given scheme.
159
161
* @DAMOS_WMARK_FREE_MEM_RATE: Free memory rate of the system in [0,1000].
162
+ * @NR_DAMOS_WMARK_METRICS: Total number of DAMOS watermark metrics
160
163
*/
161
164
enum damos_wmark_metric {
162
165
DAMOS_WMARK_NONE ,
163
166
DAMOS_WMARK_FREE_MEM_RATE ,
167
+ NR_DAMOS_WMARK_METRICS ,
164
168
};
165
169
166
170
/**
You can’t perform that action at this time.
0 commit comments