Searched refs:kdamond (Results 1 – 9 of 9) sorted by relevance
/Linux-v6.1/mm/damon/ |
D | sysfs.c | 2006 static int damon_sysfs_kdamond_add_dirs(struct damon_sysfs_kdamond *kdamond) in damon_sysfs_kdamond_add_dirs() argument 2016 &damon_sysfs_contexts_ktype, &kdamond->kobj, in damon_sysfs_kdamond_add_dirs() 2022 kdamond->contexts = contexts; in damon_sysfs_kdamond_add_dirs() 2027 static void damon_sysfs_kdamond_rm_dirs(struct damon_sysfs_kdamond *kdamond) in damon_sysfs_kdamond_rm_dirs() argument 2029 damon_sysfs_contexts_rm_dirs(kdamond->contexts); in damon_sysfs_kdamond_rm_dirs() 2030 kobject_put(&kdamond->contexts->kobj); in damon_sysfs_kdamond_rm_dirs() 2038 running = ctx->kdamond != NULL; in damon_sysfs_ctx_running() 2085 struct damon_sysfs_kdamond *kdamond; member 2094 struct damon_sysfs_kdamond *kdamond = container_of(kobj, in state_show() local 2096 struct damon_ctx *ctx = kdamond->damon_ctx; in state_show() [all …]
|
D | core.c | 520 if (!ctx->kdamond) { in __damon_start() 522 ctx->kdamond = kthread_run(kdamond_fn, ctx, "kdamond.%d", in __damon_start() 524 if (IS_ERR(ctx->kdamond)) { in __damon_start() 525 err = PTR_ERR(ctx->kdamond); in __damon_start() 526 ctx->kdamond = NULL; in __damon_start() 585 tsk = ctx->kdamond; in __damon_stop() 1205 ctx->kdamond = NULL; in kdamond_fn()
|
D | dbgfs.c | 88 if (ctx->kdamond) { in dbgfs_attrs_write() 305 if (ctx->kdamond) { in dbgfs_schemes_write() 507 if (ctx->kdamond) { in dbgfs_target_ids_write() 575 if (ctx->kdamond) { in dbgfs_init_regions_read() 671 if (ctx->kdamond) { in dbgfs_init_regions_write() 698 if (ctx->kdamond) in dbgfs_kdamond_pid_read() 699 len = scnprintf(kbuf, count, "%d\n", ctx->kdamond->pid); in dbgfs_kdamond_pid_read()
|
D | reclaim.c | 182 kdamond_pid = ctx->kdamond->pid; in damon_reclaim_turn()
|
D | lru_sort.c | 236 kdamond_pid = ctx->kdamond->pid; in damon_lru_sort_turn()
|
/Linux-v6.1/Documentation/translations/zh_CN/admin-guide/mm/damon/ |
D | usage.rst | 99 与监测相关的信息包括请求规格和结果被称为DAMON上下文。DAMON用一个叫做kdamond的内核线程 104 ``0`` 到 ``N-1`` 的子目录数量。每个目录代表每个kdamond。 109 在每个kdamond目录中,存在两个文件(``state`` 和 ``pid`` )和一个目录( ``contexts`` )。 111 读取 ``state`` 时,如果kdamond当前正在运行,则返回 ``on`` ,如果没有运行则返回 ``off`` 。 112 写入 ``on`` 或 ``off`` 使kdamond处于状态。向 ``state`` 文件写 ``update_schemes_stats`` , 113 更新kdamond的每个基于DAMON的操作方案的统计文件的内容。关于统计信息的细节,请参考 116 如果状态为 ``on``,读取 ``pid`` 显示kdamond线程的pid。 118 ``contexts`` 目录包含控制这个kdamond要执行的监测上下文的文件。 124 建名为``0`` 到 ``N-1`` 的子目录数量。每个目录代表每个监测背景。目前,每个kdamond只支持 510 DAMON通过一个叫做kdamond的内核线程来进行请求监测。你可以通过读取 ``kdamond_pid`` 文件获 [all …]
|
/Linux-v6.1/Documentation/admin-guide/mm/damon/ |
D | usage.rst | 108 called kdamond, and multiple kdamonds could run in parallel. 114 kdamond. 119 In each kdamond directory, two files (``state`` and ``pid``) and one directory 122 Reading ``state`` returns ``on`` if the kdamond is currently running, or 123 ``off`` if it is not running. Writing ``on`` or ``off`` makes the kdamond be 124 in the state. Writing ``commit`` to the ``state`` file makes kdamond reads the 127 for each DAMON-based operation scheme of the kdamond. For details of the 130 If the state is ``on``, reading ``pid`` shows the pid of the kdamond thread. 133 that this kdamond will execute. 141 moment, only one context per kdamond is supported, so only ``0`` or ``1`` can [all …]
|
/Linux-v6.1/Documentation/ABI/testing/ |
D | sysfs-kernel-mm-damon | 18 directories for controlling each DAMON worker thread (kdamond) 24 Description: Writing 'on' or 'off' to this file makes the kdamond starts or 27 makes the kdamond reads the user inputs in the sysfs files 29 file updates contents of schemes stats files of the kdamond. 34 Description: Reading this file returns the pid of the kdamond if it is
|
/Linux-v6.1/include/linux/ |
D | damon.h | 457 struct task_struct *kdamond; member
|