~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/mm/damon/modules-common.h

Version: ~ [ linux-6.11-rc3 ] ~ [ linux-6.10.4 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.45 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.104 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.164 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.223 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.281 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.319 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* SPDX-License-Identifier: GPL-2.0 */
  2 /*
  3  * Common Primitives for DAMON Modules
  4  *
  5  * Author: SeongJae Park <sj@kernel.org>
  6  */
  7 
  8 #include <linux/moduleparam.h>
  9 
 10 #define DEFINE_DAMON_MODULES_MON_ATTRS_PARAMS(attrs)                    \
 11         module_param_named(sample_interval, attrs.sample_interval,      \
 12                         ulong, 0600);                                   \
 13         module_param_named(aggr_interval, attrs.aggr_interval, ulong,   \
 14                         0600);                                          \
 15         module_param_named(min_nr_regions, attrs.min_nr_regions, ulong, \
 16                         0600);                                          \
 17         module_param_named(max_nr_regions, attrs.max_nr_regions, ulong, \
 18                         0600);
 19 
 20 #define DEFINE_DAMON_MODULES_DAMOS_TIME_QUOTA(quota)                    \
 21         module_param_named(quota_ms, quota.ms, ulong, 0600);            \
 22         module_param_named(quota_reset_interval_ms,                     \
 23                         quota.reset_interval, ulong, 0600);
 24 
 25 #define DEFINE_DAMON_MODULES_DAMOS_QUOTAS(quota)                        \
 26         DEFINE_DAMON_MODULES_DAMOS_TIME_QUOTA(quota)                    \
 27         module_param_named(quota_sz, quota.sz, ulong, 0600);
 28 
 29 #define DEFINE_DAMON_MODULES_WMARKS_PARAMS(wmarks)                      \
 30         module_param_named(wmarks_interval, wmarks.interval, ulong,     \
 31                         0600);                                          \
 32         module_param_named(wmarks_high, wmarks.high, ulong, 0600);      \
 33         module_param_named(wmarks_mid, wmarks.mid, ulong, 0600);        \
 34         module_param_named(wmarks_low, wmarks.low, ulong, 0600);
 35 
 36 #define DEFINE_DAMON_MODULES_DAMOS_STATS_PARAMS(stat, try_name,         \
 37                 succ_name, qt_exceed_name)                              \
 38         module_param_named(nr_##try_name, stat.nr_tried, ulong, 0400);  \
 39         module_param_named(bytes_##try_name, stat.sz_tried, ulong,      \
 40                         0400);                                          \
 41         module_param_named(nr_##succ_name, stat.nr_applied, ulong,      \
 42                         0400);                                          \
 43         module_param_named(bytes_##succ_name, stat.sz_applied, ulong,   \
 44                         0400);                                          \
 45         module_param_named(nr_##qt_exceed_name, stat.qt_exceeds, ulong, \
 46                         0400);
 47 
 48 int damon_modules_new_paddr_ctx_target(struct damon_ctx **ctxp,
 49                 struct damon_target **targetp);
 50 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php