sphinx.addnodesdocument)}( rawsourcechildren]( translations LanguagesNode)}(hhh](h pending_xref)}(hhh]docutils.nodesTextChinese (Simplified)}parenthsba attributes}(ids]classes]names]dupnames]backrefs] refdomainstdreftypedoc reftarget /translations/zh_CN/mm/damon/apimodnameN classnameN refexplicitutagnamehhh ubh)}(hhh]hChinese (Traditional)}hh2sbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget /translations/zh_TW/mm/damon/apimodnameN classnameN refexplicituh1hhh ubh)}(hhh]hItalian}hhFsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget /translations/it_IT/mm/damon/apimodnameN classnameN refexplicituh1hhh ubh)}(hhh]hJapanese}hhZsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget /translations/ja_JP/mm/damon/apimodnameN classnameN refexplicituh1hhh ubh)}(hhh]hKorean}hhnsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget /translations/ko_KR/mm/damon/apimodnameN classnameN refexplicituh1hhh ubh)}(hhh]hPortuguese (Brazilian)}hhsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget /translations/pt_BR/mm/damon/apimodnameN classnameN refexplicituh1hhh ubh)}(hhh]hSpanish}hhsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget /translations/sp_SP/mm/damon/apimodnameN classnameN refexplicituh1hhh ubeh}(h]h ]h"]h$]h&]current_languageEnglishuh1h hh _documenthsourceNlineNubhcomment)}(h SPDX-License-Identifier: GPL-2.0h]h SPDX-License-Identifier: GPL-2.0}hhsbah}(h]h ]h"]h$]h&] xml:spacepreserveuh1hhhhhh:/var/lib/git/docbuild/linux/Documentation/mm/damon/api.rsthKubhsection)}(hhh](htitle)}(h API Referenceh]h API Reference}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhhhhhKubh paragraph)}(hKernel space programs can use every feature of DAMON using below APIs. All you need to do is including ``damon.h``, which is located in ``include/linux/`` of the source tree.h](hhKernel space programs can use every feature of DAMON using below APIs. All you need to do is including }(hhhhhNhNubhliteral)}(h ``damon.h``h]hdamon.h}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhubh, which is located in }(hhhhhNhNubh)}(h``include/linux/``h]hinclude/linux/}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhubh of the source tree.}(hhhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhhhhubh)}(hhh](h)}(h Structuresh]h Structures}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhK ubhindex)}(hhh]h}(h]h ]h"]h$]h&]entries](singledamon_addr_range (C struct)c.damon_addr_rangehNtauh1j$hjhhhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhNubhdesc)}(hhh](hdesc_signature)}(hdamon_addr_rangeh]hdesc_signature_line)}(hstruct damon_addr_rangeh](hdesc_sig_keyword)}(hstructh]hstruct}(hjIhhhNhNubah}(h]h ]kah"]h$]h&]uh1jGhjChhhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhKubhdesc_sig_space)}(h h]h }(hj[hhhNhNubah}(h]h ]wah"]h$]h&]uh1jYhjChhhjXhKubh desc_name)}(hdamon_addr_rangeh]h desc_sig_name)}(hj?h]hdamon_addr_range}(hjrhhhNhNubah}(h]h ]nah"]h$]h&]uh1jphjlubah}(h]h ](sig-namedescnameeh"]h$]h&]hhuh1jjhjChhhjXhKubeh}(h]h ]h"]h$]h&]hhƌ add_permalinkuh1jAsphinx_line_type declaratorhj=hhhjXhKubah}(h]j3ah ](sig sig-objecteh"]h$]h&] is_multiline _toc_parts) _toc_namehuh1j;hjXhKhj8hhubh desc_content)}(hhh]h)}(h5Represents an address region of [**start**, **end**).h](h!Represents an address region of [}(hjhhhNhNubhstrong)}(h **start**h]hstart}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, }(hjhhhNhNubj)}(h**end**h]hend}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh).}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhj8hhhjXhKubeh}(h]h ](cstructeh"]h$]h&]domainjobjtypejdesctypejnoindex noindexentrynocontentsentryuh1j6hhhjhj5hNubh container)}(h**Definition**:: struct damon_addr_range { unsigned long start; unsigned long end; }; **Members** ``start`` Start address of the region (inclusive). ``end`` End address of the region (exclusive).h](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhKhjubh literal_block)}(hLstruct damon_addr_range { unsigned long start; unsigned long end; };h]hLstruct damon_addr_range { unsigned long start; unsigned long end; };}hjsbah}(h]h ]h"]h$]h&]hhuh1j hR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhKhjubh)}(h **Members**h]j)}(hj h]hMembers}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhK#hjubhdefinition_list)}(hhh](hdefinition_list_item)}(h3``start`` Start address of the region (inclusive). h](hterm)}(h ``start``h]h)}(hjEh]hstart}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjCubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhKhj=ubh definition)}(hhh]h)}(h(Start address of the region (inclusive).h]h(Start address of the region (inclusive).}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjZhKhj]ubah}(h]h ]h"]h$]h&]uh1j[hj=ubeh}(h]h ]h"]h$]h&]uh1j;hjZhKhj8ubj<)}(h.``end`` End address of the region (exclusive).h](jB)}(h``end``h]h)}(hjh]hend}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj~ubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhKhjzubj\)}(hhh]h)}(h&End address of the region (exclusive).h]h&End address of the region (exclusive).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhKhjubah}(h]h ]h"]h$]h&]uh1j[hjzubeh}(h]h ]h"]h$]h&]uh1j;hjhKhj8ubeh}(h]h ]h"]h$]h&]uh1j6hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhj5hNubj%)}(hhh]h}(h]h ]h"]h$]h&]entries](j1damon_size_range (C struct)c.damon_size_rangehNtauh1j$hjhhhj5hNubj7)}(hhh](j<)}(hdamon_size_rangeh]jB)}(hstruct damon_size_rangeh](jH)}(hjKh]hstruct}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjhhhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhK!ubjZ)}(h h]h }(hjhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjhhhjhK!ubjk)}(hdamon_size_rangeh]jq)}(hjh]hdamon_size_range}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1jphjubah}(h]h ](jjeh"]h$]h&]hhuh1jjhjhhhjhK!ubeh}(h]h ]h"]h$]h&]hhjuh1jAjjhjhhhjhK!ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j;hjhK!hjhhubj)}(hhh]h)}(hubah}(h]h ]h"]h$]h&]uh1j[hj"ubeh}(h]h ]h"]h$]h&]uh1j;hj=hK/hjubj<)}(h1``nr_accesses`` Access frequency of this region. h](jB)}(h``nr_accesses``h]h)}(hjah]h nr_accesses}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_ubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhK0hj[ubj\)}(hhh]h)}(h Access frequency of this region.h]h Access frequency of this region.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjvhK0hjwubah}(h]h ]h"]h$]h&]uh1j[hj[ubeh}(h]h ]h"]h$]h&]uh1j;hjvhK0hjubj<)}(hc``nr_accesses_bp`` **nr_accesses** in basis point (0.01%) that updated for each sampling interval. h](jB)}(h``nr_accesses_bp``h]h)}(hjh]hnr_accesses_bp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhK2hjubj\)}(hhh]h)}(hO**nr_accesses** in basis point (0.01%) that updated for each sampling interval.h](j)}(h**nr_accesses**h]h nr_accesses}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh@ in basis point (0.01%) that updated for each sampling interval.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhK1hjubah}(h]h ]h"]h$]h&]uh1j[hjubeh}(h]h ]h"]h$]h&]uh1j;hjhK2hjubj<)}(h8``probe_hits`` Number of probe-positive region samples. h](jB)}(h``probe_hits``h]h)}(hjh]h probe_hits}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhK3hjubj\)}(hhh]h)}(h(Number of probe-positive region samples.h]h(Number of probe-positive region samples.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK3hjubah}(h]h ]h"]h$]h&]uh1j[hjubeh}(h]h ]h"]h$]h&]uh1j;hjhK3hjubj<)}(h!``list`` List head for siblings. h](jB)}(h``list``h]h)}(hjh]hlist}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhK4hjubj\)}(hhh]h)}(hList head for siblings.h]hList head for siblings.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0hK4hj1ubah}(h]h ]h"]h$]h&]uh1j[hjubeh}(h]h ]h"]h$]h&]uh1j;hj0hK4hjubj<)}(h``age`` Age of this region.h](jB)}(h``age``h]h)}(hjTh]hage}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjRubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhK4hjNubj\)}(hhh]h)}(hAge of this region.h]hAge of this region.}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhK5hjjubah}(h]h ]h"]h$]h&]uh1j[hjNubeh}(h]h ]h"]h$]h&]uh1j;hjihK4hjubeh}(h]h ]h"]h$]h&]uh1j6hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhj5hNubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhK8hjhhubh)}(h:For any use case, **ar** should be non-zero positive size.h](hFor any use case, }(hjhhhNhNubj)}(h**ar**h]har}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh" should be non-zero positive size.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhK5hjhhubh)}(hXu**nr_accesses** is reset to zero for every :c:type:`damon_attrs->aggr_interval ` and be increased for every :c:type:`damon_attrs->sample_interval ` if an access to the region during the last sampling interval is found. The update of this field should not be done with direct access but with the helper function, damon_update_region_access_rate().h](j)}(h**nr_accesses**h]h nr_accesses}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is reset to zero for every }(hjhhhNhNubh)}(h2:c:type:`damon_attrs->aggr_interval `h]h)}(hjh]hdamon_attrs->aggr_interval}(hjhhhNhNubah}(h]h ](xrefjc-typeeh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdoc mm/damon/api refdomainjreftypetype refexplicitrefwarn c:parent_keysphinx.domains.c LookupKey)}data]sb reftarget damon_attrsuh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhK7hjubh and be increased for every }(hjhhhNhNubh)}(h4:c:type:`damon_attrs->sample_interval `h]h)}(hjh]hdamon_attrs->sample_interval}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj  damon_attrsuh1hhjhK7hjubh if an access to the region during the last sampling interval is found. The update of this field should not be done with direct access but with the helper function, damon_update_region_access_rate().}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhK7hjhhubh)}(hX**nr_accesses_bp** is another representation of **nr_accesses** in basis point (1 in 10,000) that updated for every :c:type:`damon_attrs->sample_interval ` in a manner similar to moving sum. By the algorithm, this value becomes **nr_accesses** * 10000 for every :c:type:`struct damon_attrs `->aggr_interval. This can be used when the aggregation interval is too huge and therefore cannot wait for it before getting the access monitoring results.h](j)}(h**nr_accesses_bp**h]hnr_accesses_bp}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubh is another representation of }(hj<hhhNhNubj)}(h**nr_accesses**h]h nr_accesses}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubh5 in basis point (1 in 10,000) that updated for every }(hj<hhhNhNubh)}(h4:c:type:`damon_attrs->sample_interval `h]h)}(hjfh]hdamon_attrs->sample_interval}(hjhhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhjdubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj  damon_attrsuh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhK=hj<ubhJ in a manner similar to moving sum. By the algorithm, this value becomes }(hj<hhhNhNubj)}(h**nr_accesses**h]h nr_accesses}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubh * 10000 for every }(hj<hhhNhNubh)}(h*:c:type:`struct damon_attrs `h]h)}(hjh]hstruct damon_attrs}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj  damon_attrsuh1hhjhK=hj<ubh->aggr_interval. This can be used when the aggregation interval is too huge and therefore cannot wait for it before getting the access monitoring results.}(hj<hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhK=hjhhubh)}(hX3**age** is initially zero, increased for each aggregation interval, and reset to zero again if the access frequency is significantly changed. If two regions are merged into a new region, both **nr_accesses** and **age** of the new region are set as region size-weighted average of those of the two regions.h](j)}(h**age**h]hage}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is initially zero, increased for each aggregation interval, and reset to zero again if the access frequency is significantly changed. If two regions are merged into a new region, both }(hjhhhNhNubj)}(h**nr_accesses**h]h nr_accesses}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh and }(hjhhhNhNubj)}(h**age**h]hage}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhW of the new region are set as region size-weighted average of those of the two regions.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhKDhjhhubj%)}(hhh]h}(h]h ]h"]h$]h&]entries](j1damon_target (C struct)c.damon_targethNtauh1j$hjhhhj5hNubj7)}(hhh](j<)}(h damon_targeth]jB)}(hstruct damon_targeth](jH)}(hjKh]hstruct}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjhhhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhKLubjZ)}(h h]h }(hj+hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjhhhj*hKLubjk)}(h damon_targeth]jq)}(hjh]h damon_target}(hj=hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1jphj9ubah}(h]h ](jjeh"]h$]h&]hhuh1jjhjhhhj*hKLubeh}(h]h ]h"]h$]h&]hhjuh1jAjjhjhhhj*hKLubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j;hj*hKLhjhhubj)}(hhh]h)}(hRepresents a monitoring target.h]hRepresents a monitoring target.}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhKXhj\hhubah}(h]h ]h"]h$]h&]uh1jhjhhhj*hKLubeh}(h]h ](jstructeh"]h$]h&]jjjjwjjwjjjuh1j6hhhjhj5hNubj)}(hX**Definition**:: struct damon_target { struct pid *pid; unsigned int nr_regions; struct list_head regions_list; struct list_head list; bool obsolete; }; **Members** ``pid`` The PID of the virtual address space to monitor. ``nr_regions`` Number of monitoring target regions of this target. ``regions_list`` Head of the monitoring target regions of this target. ``list`` List head for siblings. ``obsolete`` Whether the commit destination target is obsolete.h](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhK\hj{ubj)}(hstruct damon_target { struct pid *pid; unsigned int nr_regions; struct list_head regions_list; struct list_head list; bool obsolete; };h]hstruct damon_target { struct pid *pid; unsigned int nr_regions; struct list_head regions_list; struct list_head list; bool obsolete; };}hjsbah}(h]h ]h"]h$]h&]hhuh1j hR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhK^hj{ubh)}(h **Members**h]j)}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhKfhj{ubj7)}(hhh](j<)}(h9``pid`` The PID of the virtual address space to monitor. h](jB)}(h``pid``h]h)}(hjh]hpid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhKZhjubj\)}(hhh]h)}(h0The PID of the virtual address space to monitor.h]h0The PID of the virtual address space to monitor.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKZhjubah}(h]h ]h"]h$]h&]uh1j[hjubeh}(h]h ]h"]h$]h&]uh1j;hjhKZhjubj<)}(hC``nr_regions`` Number of monitoring target regions of this target. h](jB)}(h``nr_regions``h]h)}(hj h]h nr_regions}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhK[hjubj\)}(hhh]h)}(h3Number of monitoring target regions of this target.h]h3Number of monitoring target regions of this target.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hK[hj ubah}(h]h ]h"]h$]h&]uh1j[hjubeh}(h]h ]h"]h$]h&]uh1j;hj hK[hjubj<)}(hG``regions_list`` Head of the monitoring target regions of this target. h](jB)}(h``regions_list``h]h)}(hj> h]h regions_list}(hj@ hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj< ubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhK\hj8 ubj\)}(hhh]h)}(h5Head of the monitoring target regions of this target.h]h5Head of the monitoring target regions of this target.}(hjW hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjS hK\hjT ubah}(h]h ]h"]h$]h&]uh1j[hj8 ubeh}(h]h ]h"]h$]h&]uh1j;hjS hK\hjubj<)}(h!``list`` List head for siblings. h](jB)}(h``list``h]h)}(hjw h]hlist}(hjy hhhNhNubah}(h]h ]h"]h$]h&]uh1hhju ubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhK]hjq ubj\)}(hhh]h)}(hList head for siblings.h]hList head for siblings.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hK]hj ubah}(h]h ]h"]h$]h&]uh1j[hjq ubeh}(h]h ]h"]h$]h&]uh1j;hj hK]hjubj<)}(h?``obsolete`` Whether the commit destination target is obsolete.h](jB)}(h ``obsolete``h]h)}(hj h]hobsolete}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhK]hj ubj\)}(hhh]h)}(h2Whether the commit destination target is obsolete.h]h2Whether the commit destination target is obsolete.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhK^hj ubah}(h]h ]h"]h$]h&]uh1j[hj ubeh}(h]h ]h"]h$]h&]uh1j;hj hK]hjubeh}(h]h ]h"]h$]h&]uh1j6hj{ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhj5hNubh)}(h**Description**h]j)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhKahjhhubh)}(hX0Each monitoring context could have multiple targets. For example, a context for virtual memory address spaces could have multiple target processes. The **pid** should be set for appropriate :c:type:`struct damon_operations ` including the virtual address spaces monitoring operations.h](hEach monitoring context could have multiple targets. For example, a context for virtual memory address spaces could have multiple target processes. The }(hj hhhNhNubj)}(h**pid**h]hpid}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh should be set for appropriate }(hj hhhNhNubh)}(h4:c:type:`struct damon_operations `h]h)}(hj% h]hstruct damon_operations}(hj' hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhj# ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj damon_operationsuh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhK^hj ubh< including the virtual address spaces monitoring operations.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjB hK^hjhhubh)}(h**obsolete** is used only for damon_commit_targets() source targets, to specify the matching destination targets are obsolete. Read damon_commit_targets() to see how it is handled.h](j)}(h **obsolete**h]hobsolete}(hjQ hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjM ubh is used only for damon_commit_targets() source targets, to specify the matching destination targets are obsolete. Read damon_commit_targets() to see how it is handled.}(hjM hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhKchjhhubj%)}(hhh]h}(h]h ]h"]h$]h&]entries](j1damos_action (C enum)c.damos_actionhNtauh1j$hjhhhj5hNubj7)}(hhh](j<)}(h damos_actionh]jB)}(henum damos_actionh](jH)}(henumh]henum}(hj hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj hhhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhKjubjZ)}(h h]h }(hj hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj hhhj hKjubjk)}(h damos_actionh]jq)}(hj} h]h damos_action}(hj hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1jphj ubah}(h]h ](jjeh"]h$]h&]hhuh1jjhj hhhj hKjubeh}(h]h ]h"]h$]h&]hhjuh1jAjjhj{ hhhj hKjubah}(h]jv ah ](jjeh"]h$]h&]jj)jhuh1j;hj hKjhjx hhubj)}(hhh]h)}(hHRepresents an action of a Data Access Monitoring-based Operation Scheme.h]hHRepresents an action of a Data Access Monitoring-based Operation Scheme.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhKqhj hhubah}(h]h ]h"]h$]h&]uh1jhjx hhhj hKjubeh}(h]h ](jenumeh"]h$]h&]jjjj jj jjjuh1j6hhhjhj5hNubj)}(hX***Constants** ``DAMOS_WILLNEED`` Call ``madvise()`` for the region with MADV_WILLNEED. ``DAMOS_COLD`` Call ``madvise()`` for the region with MADV_COLD. ``DAMOS_PAGEOUT`` Reclaim the region. ``DAMOS_HUGEPAGE`` Call ``madvise()`` for the region with MADV_HUGEPAGE. ``DAMOS_NOHUGEPAGE`` Call ``madvise()`` for the region with MADV_NOHUGEPAGE. ``DAMOS_COLLAPSE`` Call ``madvise()`` for the region with MADV_COLLAPSE. ``DAMOS_LRU_PRIO`` Prioritize the region on its LRU lists. ``DAMOS_LRU_DEPRIO`` Deprioritize the region on its LRU lists. ``DAMOS_MIGRATE_HOT`` Migrate the regions prioritizing warmer regions. ``DAMOS_MIGRATE_COLD`` Migrate the regions prioritizing colder regions. ``DAMOS_STAT`` Do nothing but count the stat. ``NR_DAMOS_ACTIONS`` Total number of DAMOS actionsh](h)}(h **Constants**h]j)}(hj h]h Constants}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhKuhj ubj7)}(hhh](j<)}(hI``DAMOS_WILLNEED`` Call ``madvise()`` for the region with MADV_WILLNEED. h](jB)}(h``DAMOS_WILLNEED``h]h)}(hj h]hDAMOS_WILLNEED}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhKxhj ubj\)}(hhh]h)}(h5Call ``madvise()`` for the region with MADV_WILLNEED.h](hCall }(hj hhhNhNubh)}(h ``madvise()``h]h madvise()}(hj( hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ubh# for the region with MADV_WILLNEED.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj hKxhj ubah}(h]h ]h"]h$]h&]uh1j[hj ubeh}(h]h ]h"]h$]h&]uh1j;hj hKxhj ubj<)}(hA``DAMOS_COLD`` Call ``madvise()`` for the region with MADV_COLD. h](jB)}(h``DAMOS_COLD``h]h)}(hjR h]h DAMOS_COLD}(hjT hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjP ubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhK{hjL ubj\)}(hhh]h)}(h1Call ``madvise()`` for the region with MADV_COLD.h](hCall }(hjk hhhNhNubh)}(h ``madvise()``h]h madvise()}(hjs hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjk ubh for the region with MADV_COLD.}(hjk hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjg hK{hjh ubah}(h]h ]h"]h$]h&]uh1j[hjL ubeh}(h]h ]h"]h$]h&]uh1j;hjg hK{hj ubj<)}(h&``DAMOS_PAGEOUT`` Reclaim the region. h](jB)}(h``DAMOS_PAGEOUT``h]h)}(hj h]h DAMOS_PAGEOUT}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhK~hj ubj\)}(hhh]h)}(hReclaim the region.h]hReclaim the region.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hK~hj ubah}(h]h ]h"]h$]h&]uh1j[hj ubeh}(h]h ]h"]h$]h&]uh1j;hj hK~hj ubj<)}(hI``DAMOS_HUGEPAGE`` Call ``madvise()`` for the region with MADV_HUGEPAGE. h](jB)}(h``DAMOS_HUGEPAGE``h]h)}(hj h]hDAMOS_HUGEPAGE}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhKhj ubj\)}(hhh]h)}(h5Call ``madvise()`` for the region with MADV_HUGEPAGE.h](hCall }(hj hhhNhNubh)}(h ``madvise()``h]h madvise()}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ubh# for the region with MADV_HUGEPAGE.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj hKhj ubah}(h]h ]h"]h$]h&]uh1j[hj ubeh}(h]h ]h"]h$]h&]uh1j;hj hKhj ubj<)}(hM``DAMOS_NOHUGEPAGE`` Call ``madvise()`` for the region with MADV_NOHUGEPAGE. h](jB)}(h``DAMOS_NOHUGEPAGE``h]h)}(hj! h]hDAMOS_NOHUGEPAGE}(hj# hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhKhj ubj\)}(hhh]h)}(h7Call ``madvise()`` for the region with MADV_NOHUGEPAGE.h](hCall }(hj: hhhNhNubh)}(h ``madvise()``h]h madvise()}(hjB hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj: ubh% for the region with MADV_NOHUGEPAGE.}(hj: hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj6 hKhj7 ubah}(h]h ]h"]h$]h&]uh1j[hj ubeh}(h]h ]h"]h$]h&]uh1j;hj6 hKhj ubj<)}(hI``DAMOS_COLLAPSE`` Call ``madvise()`` for the region with MADV_COLLAPSE. h](jB)}(h``DAMOS_COLLAPSE``h]h)}(hjl h]hDAMOS_COLLAPSE}(hjn hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjj ubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhKhjf ubj\)}(hhh]h)}(h5Call ``madvise()`` for the region with MADV_COLLAPSE.h](hCall }(hj hhhNhNubh)}(h ``madvise()``h]h madvise()}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ubh# for the region with MADV_COLLAPSE.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj hKhj ubah}(h]h ]h"]h$]h&]uh1j[hjf ubeh}(h]h ]h"]h$]h&]uh1j;hj hKhj ubj<)}(h;``DAMOS_LRU_PRIO`` Prioritize the region on its LRU lists. h](jB)}(h``DAMOS_LRU_PRIO``h]h)}(hj h]hDAMOS_LRU_PRIO}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhKhj ubj\)}(hhh]h)}(h'Prioritize the region on its LRU lists.h]h'Prioritize the region on its LRU lists.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hKhj ubah}(h]h ]h"]h$]h&]uh1j[hj ubeh}(h]h ]h"]h$]h&]uh1j;hj hKhj ubj<)}(h?``DAMOS_LRU_DEPRIO`` Deprioritize the region on its LRU lists. h](jB)}(h``DAMOS_LRU_DEPRIO``h]h)}(hj h]hDAMOS_LRU_DEPRIO}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhKhj ubj\)}(hhh]h)}(h)Deprioritize the region on its LRU lists.h]h)Deprioritize the region on its LRU lists.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hKhj ubah}(h]h ]h"]h$]h&]uh1j[hj ubeh}(h]h ]h"]h$]h&]uh1j;hj hKhj ubj<)}(hG``DAMOS_MIGRATE_HOT`` Migrate the regions prioritizing warmer regions. h](jB)}(h``DAMOS_MIGRATE_HOT``h]h)}(hj) h]hDAMOS_MIGRATE_HOT}(hj+ hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj' ubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhKhj# ubj\)}(hhh]h)}(h0Migrate the regions prioritizing warmer regions.h]h0Migrate the regions prioritizing warmer regions.}(hjB hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj> hKhj? ubah}(h]h ]h"]h$]h&]uh1j[hj# ubeh}(h]h ]h"]h$]h&]uh1j;hj> hKhj ubj<)}(hH``DAMOS_MIGRATE_COLD`` Migrate the regions prioritizing colder regions. h](jB)}(h``DAMOS_MIGRATE_COLD``h]h)}(hjb h]hDAMOS_MIGRATE_COLD}(hjd hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj` ubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhKhj\ ubj\)}(hhh]h)}(h0Migrate the regions prioritizing colder regions.h]h0Migrate the regions prioritizing colder regions.}(hj{ hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjw hKhjx ubah}(h]h ]h"]h$]h&]uh1j[hj\ ubeh}(h]h ]h"]h$]h&]uh1j;hjw hKhj ubj<)}(h.``DAMOS_STAT`` Do nothing but count the stat. h](jB)}(h``DAMOS_STAT``h]h)}(hj h]h DAMOS_STAT}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhKhj ubj\)}(hhh]h)}(hDo nothing but count the stat.h]hDo nothing but count the stat.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hKhj ubah}(h]h ]h"]h$]h&]uh1j[hj ubeh}(h]h ]h"]h$]h&]uh1j;hj hKhj ubj<)}(h2``NR_DAMOS_ACTIONS`` Total number of DAMOS actionsh](jB)}(h``NR_DAMOS_ACTIONS``h]h)}(hj h]hNR_DAMOS_ACTIONS}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhKhj ubj\)}(hhh]h)}(hTotal number of DAMOS actionsh]hTotal number of DAMOS actions}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhKhj ubah}(h]h ]h"]h$]h&]uh1j[hj ubeh}(h]h ]h"]h$]h&]uh1j;hj hKhj ubeh}(h]h ]h"]h$]h&]uh1j6hj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhj5hNubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhKhjhhubh)}(hThe support of each action is up to running :c:type:`struct damon_operations `. Refer to 'Operation Action' section of Documentation/mm/damon/design.rst for status of the supports.h](h,The support of each action is up to running }(hj-hhhNhNubh)}(h4:c:type:`struct damon_operations `h]h)}(hj7h]hstruct damon_operations}(hj9hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhj5ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj damon_operationsuh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhKhj-ubhj. Refer to ‘Operation Action’ section of Documentation/mm/damon/design.rst for status of the supports.}(hj-hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjThKhjhhubh)}(h2Note that DAMOS_PAGEOUT doesn't trigger demotions.h]h4Note that DAMOS_PAGEOUT doesn’t trigger demotions.}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhKhjhhubj%)}(hhh]h}(h]h ]h"]h$]h&]entries](j1 damos_quota_goal_metric (C enum)c.damos_quota_goal_metrichNtauh1j$hjhhhj5hNubj7)}(hhh](j<)}(hdamos_quota_goal_metrich]jB)}(henum damos_quota_goal_metrich](jH)}(hj h]henum}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjhhhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhKubjZ)}(h h]h }(hjhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjhhhjhKubjk)}(hdamos_quota_goal_metrich]jq)}(hjh]hdamos_quota_goal_metric}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1jphjubah}(h]h ](jjeh"]h$]h&]hhuh1jjhjhhhjhKubeh}(h]h ]h"]h$]h&]hhjuh1jAjjhjhhhjhKubah}(h]jzah ](jjeh"]h$]h&]jj)jhuh1j;hjhKhj|hhubj)}(hhh]h)}(h,Represents the metric to be used as the goalh]h,Represents the metric to be used as the goal}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhj|hhhjhKubeh}(h]h ](jenumeh"]h$]h&]jjjjjjjjjuh1j6hhhjhj5hNubj)}(hX**Constants** ``DAMOS_QUOTA_USER_INPUT`` User-input value. ``DAMOS_QUOTA_SOME_MEM_PSI_US`` System level some memory PSI in us. ``DAMOS_QUOTA_NODE_MEM_USED_BP`` MemUsed ratio of a node. ``DAMOS_QUOTA_NODE_MEM_FREE_BP`` MemFree ratio of a node. ``DAMOS_QUOTA_NODE_MEMCG_USED_BP`` MemUsed ratio of a node for a cgroup. ``DAMOS_QUOTA_NODE_MEMCG_FREE_BP`` MemFree ratio of a node for a cgroup. ``DAMOS_QUOTA_ACTIVE_MEM_BP`` Active to total LRU memory ratio. ``DAMOS_QUOTA_INACTIVE_MEM_BP`` Inactive to total LRU memory ratio. ``DAMOS_QUOTA_NODE_ELIGIBLE_MEM_BP`` Scheme-eligible memory ratio of a node in basis points (0-10000). ``NR_DAMOS_QUOTA_GOAL_METRICS`` Number of DAMOS quota goal metrics.h](h)}(h **Constants**h]j)}(hjh]h Constants}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhKhjubj7)}(hhh](j<)}(h-``DAMOS_QUOTA_USER_INPUT`` User-input value. h](jB)}(h``DAMOS_QUOTA_USER_INPUT``h]h)}(hj h]hDAMOS_QUOTA_USER_INPUT}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhKhjubj\)}(hhh]h)}(hUser-input value.h]hUser-input value.}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhj ubah}(h]h ]h"]h$]h&]uh1j[hjubeh}(h]h ]h"]h$]h&]uh1j;hjhKhjubj<)}(hD``DAMOS_QUOTA_SOME_MEM_PSI_US`` System level some memory PSI in us. h](jB)}(h``DAMOS_QUOTA_SOME_MEM_PSI_US``h]h)}(hjCh]hDAMOS_QUOTA_SOME_MEM_PSI_US}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjAubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhKhj=ubj\)}(hhh]h)}(h#System level some memory PSI in us.h]h#System level some memory PSI in us.}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjXhKhjYubah}(h]h ]h"]h$]h&]uh1j[hj=ubeh}(h]h ]h"]h$]h&]uh1j;hjXhKhjubj<)}(h:``DAMOS_QUOTA_NODE_MEM_USED_BP`` MemUsed ratio of a node. h](jB)}(h ``DAMOS_QUOTA_NODE_MEM_USED_BP``h]h)}(hj|h]hDAMOS_QUOTA_NODE_MEM_USED_BP}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjzubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhKhjvubj\)}(hhh]h)}(hMemUsed ratio of a node.h]hMemUsed ratio of a node.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j[hjvubeh}(h]h ]h"]h$]h&]uh1j;hjhKhjubj<)}(h:``DAMOS_QUOTA_NODE_MEM_FREE_BP`` MemFree ratio of a node. h](jB)}(h ``DAMOS_QUOTA_NODE_MEM_FREE_BP``h]h)}(hjh]hDAMOS_QUOTA_NODE_MEM_FREE_BP}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhKhjubj\)}(hhh]h)}(hMemFree ratio of a node.h]hMemFree ratio of a node.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j[hjubeh}(h]h ]h"]h$]h&]uh1j;hjhKhjubj<)}(hI``DAMOS_QUOTA_NODE_MEMCG_USED_BP`` MemUsed ratio of a node for a cgroup. h](jB)}(h"``DAMOS_QUOTA_NODE_MEMCG_USED_BP``h]h)}(hjh]hDAMOS_QUOTA_NODE_MEMCG_USED_BP}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhKhjubj\)}(hhh]h)}(h%MemUsed ratio of a node for a cgroup.h]h%MemUsed ratio of a node for a cgroup.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j[hjubeh}(h]h ]h"]h$]h&]uh1j;hjhKhjubj<)}(hI``DAMOS_QUOTA_NODE_MEMCG_FREE_BP`` MemFree ratio of a node for a cgroup. h](jB)}(h"``DAMOS_QUOTA_NODE_MEMCG_FREE_BP``h]h)}(hj'h]hDAMOS_QUOTA_NODE_MEMCG_FREE_BP}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj%ubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhKhj!ubj\)}(hhh]h)}(h%MemFree ratio of a node for a cgroup.h]h%MemFree ratio of a node for a cgroup.}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj<hKhj=ubah}(h]h ]h"]h$]h&]uh1j[hj!ubeh}(h]h ]h"]h$]h&]uh1j;hj<hKhjubj<)}(h@``DAMOS_QUOTA_ACTIVE_MEM_BP`` Active to total LRU memory ratio. h](jB)}(h``DAMOS_QUOTA_ACTIVE_MEM_BP``h]h)}(hj`h]hDAMOS_QUOTA_ACTIVE_MEM_BP}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj^ubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhKhjZubj\)}(hhh]h)}(h!Active to total LRU memory ratio.h]h!Active to total LRU memory ratio.}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjuhKhjvubah}(h]h ]h"]h$]h&]uh1j[hjZubeh}(h]h ]h"]h$]h&]uh1j;hjuhKhjubj<)}(hD``DAMOS_QUOTA_INACTIVE_MEM_BP`` Inactive to total LRU memory ratio. h](jB)}(h``DAMOS_QUOTA_INACTIVE_MEM_BP``h]h)}(hjh]hDAMOS_QUOTA_INACTIVE_MEM_BP}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhKhjubj\)}(hhh]h)}(h#Inactive to total LRU memory ratio.h]h#Inactive to total LRU memory ratio.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j[hjubeh}(h]h ]h"]h$]h&]uh1j;hjhKhjubj<)}(hg``DAMOS_QUOTA_NODE_ELIGIBLE_MEM_BP`` Scheme-eligible memory ratio of a node in basis points (0-10000). h](jB)}(h$``DAMOS_QUOTA_NODE_ELIGIBLE_MEM_BP``h]h)}(hjh]h DAMOS_QUOTA_NODE_ELIGIBLE_MEM_BP}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhKhjubj\)}(hhh]h)}(hAScheme-eligible memory ratio of a node in basis points (0-10000).h]hAScheme-eligible memory ratio of a node in basis points (0-10000).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhKhjubah}(h]h ]h"]h$]h&]uh1j[hjubeh}(h]h ]h"]h$]h&]uh1j;hjhKhjubj<)}(hC``NR_DAMOS_QUOTA_GOAL_METRICS`` Number of DAMOS quota goal metrics.h](jB)}(h``NR_DAMOS_QUOTA_GOAL_METRICS``h]h)}(hj h]hNR_DAMOS_QUOTA_GOAL_METRICS}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhKhjubj\)}(hhh]h)}(h#Number of DAMOS quota goal metrics.h]h#Number of DAMOS quota goal metrics.}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhKhj"ubah}(h]h ]h"]h$]h&]uh1j[hjubeh}(h]h ]h"]h$]h&]uh1j;hj!hKhjubeh}(h]h ]h"]h$]h&]uh1j6hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhj5hNubh)}(h**Description**h]j)}(hjOh]h Description}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhKhjhhubh)}(hMMetrics equal to larger than **NR_DAMOS_QUOTA_GOAL_METRICS** are unsupported.h](hMetrics equal to larger than }(hjehhhNhNubj)}(h**NR_DAMOS_QUOTA_GOAL_METRICS**h]hNR_DAMOS_QUOTA_GOAL_METRICS}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubh are unsupported.}(hjehhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhKhjhhubj%)}(hhh]h}(h]h ]h"]h$]h&]entries](j1damos_quota_goal (C struct)c.damos_quota_goalhNtauh1j$hjhhhj5hNubj7)}(hhh](j<)}(hdamos_quota_goalh]jB)}(hstruct damos_quota_goalh](jH)}(hjKh]hstruct}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjhhhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhKubjZ)}(h h]h }(hjhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjhhhjhKubjk)}(hdamos_quota_goalh]jq)}(hjh]hdamos_quota_goal}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1jphjubah}(h]h ](jjeh"]h$]h&]hhuh1jjhjhhhjhKubeh}(h]h ]h"]h$]h&]hhjuh1jAjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j;hjhKhjhhubj)}(hhh]h)}(h$DAMOS scheme quota auto-tuning goal.h]h$DAMOS scheme quota auto-tuning goal.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jstructeh"]h$]h&]jjjjjjjjjuh1j6hhhjhj5hNubj)}(hX**Definition**:: struct damos_quota_goal { enum damos_quota_goal_metric metric; unsigned long target_value; unsigned long current_value; union { u64 last_psi_total; struct { int nid; u64 memcg_id; }; }; struct list_head list; }; **Members** ``metric`` Metric to be used for representing the goal. ``target_value`` Target value of **metric** to achieve with the tuning. ``current_value`` Current value of **metric**. ``{unnamed_union}`` anonymous ``last_psi_total`` Last measured total PSI ``{unnamed_struct}`` anonymous ``nid`` Node id. ``memcg_id`` Memcg id. ``list`` List head for siblings.h](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhKhjubj)}(hXstruct damos_quota_goal { enum damos_quota_goal_metric metric; unsigned long target_value; unsigned long current_value; union { u64 last_psi_total; struct { int nid; u64 memcg_id; }; }; struct list_head list; };h]hXstruct damos_quota_goal { enum damos_quota_goal_metric metric; unsigned long target_value; unsigned long current_value; union { u64 last_psi_total; struct { int nid; u64 memcg_id; }; }; struct list_head list; };}hjsbah}(h]h ]h"]h$]h&]hhuh1j hR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhKhjubh)}(h **Members**h]j)}(hj/h]hMembers}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhKhjubj7)}(hhh](j<)}(h8``metric`` Metric to be used for representing the goal. h](jB)}(h ``metric``h]h)}(hjNh]hmetric}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjLubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhKhjHubj\)}(hhh]h)}(h,Metric to be used for representing the goal.h]h,Metric to be used for representing the goal.}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhjchKhjdubah}(h]h ]h"]h$]h&]uh1j[hjHubeh}(h]h ]h"]h$]h&]uh1j;hjchKhjEubj<)}(hH``target_value`` Target value of **metric** to achieve with the tuning. h](jB)}(h``target_value``h]h)}(hjh]h target_value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhKhjubj\)}(hhh]h)}(h6Target value of **metric** to achieve with the tuning.h](hTarget value of }(hjhhhNhNubj)}(h **metric**h]hmetric}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh to achieve with the tuning.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j[hjubeh}(h]h ]h"]h$]h&]uh1j;hjhKhjEubj<)}(h/``current_value`` Current value of **metric**. h](jB)}(h``current_value``h]h)}(hjh]h current_value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhKhjubj\)}(hhh]h)}(hCurrent value of **metric**.h](hCurrent value of }(hjhhhNhNubj)}(h **metric**h]hmetric}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j[hjubeh}(h]h ]h"]h$]h&]uh1j;hjhKhjEubj<)}(h``{unnamed_union}`` anonymous h](jB)}(h``{unnamed_union}``h]h)}(hjh]h{unnamed_union}}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhKhjubj\)}(hhh]h)}(h anonymoush]h anonymous}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2hKhj3ubah}(h]h ]h"]h$]h&]uh1j[hjubeh}(h]h ]h"]h$]h&]uh1j;hj2hKhjEubj<)}(h+``last_psi_total`` Last measured total PSI h](jB)}(h``last_psi_total``h]h)}(hjVh]hlast_psi_total}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjTubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhKhjPubj\)}(hhh]h)}(hLast measured total PSIh]hLast measured total PSI}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhjkhKhjlubah}(h]h ]h"]h$]h&]uh1j[hjPubeh}(h]h ]h"]h$]h&]uh1j;hjkhKhjEubj<)}(h``{unnamed_struct}`` anonymous h](jB)}(h``{unnamed_struct}``h]h)}(hjh]h{unnamed_struct}}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhKhjubj\)}(hhh]h)}(h anonymoush]h anonymous}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j[hjubeh}(h]h ]h"]h$]h&]uh1j;hjhKhjEubj<)}(h``nid`` Node id. h](jB)}(h``nid``h]h)}(hjh]hnid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhKhjubj\)}(hhh]h)}(hNode id.h]hNode id.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j[hjubeh}(h]h ]h"]h$]h&]uh1j;hjhKhjEubj<)}(h``memcg_id`` Memcg id. h](jB)}(h ``memcg_id``h]h)}(hjh]hmemcg_id}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhKhjubj\)}(hhh]h)}(h Memcg id.h]h Memcg id.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j[hjubeh}(h]h ]h"]h$]h&]uh1j;hjhKhjEubj<)}(h ``list`` List head for siblings.h](jB)}(h``list``h]h)}(hj:h]hlist}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8ubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhKhj4ubj\)}(hhh]h)}(hList head for siblings.h]hList head for siblings.}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhKhjPubah}(h]h ]h"]h$]h&]uh1j[hj4ubeh}(h]h ]h"]h$]h&]uh1j;hjOhKhjEubeh}(h]h ]h"]h$]h&]uh1j6hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhj5hNubh)}(h**Description**h]j)}(hj}h]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhKhjhhubh)}(hData structure for getting the current score of the quota tuning goal. The score is calculated by how close **current_value** and **target_value** are. Then the score is entered to DAMON's internal feedback loop mechanism to get the auto-tuned quota.h](hmData structure for getting the current score of the quota tuning goal. The score is calculated by how close }(hjhhhNhNubj)}(h**current_value**h]h current_value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh and }(hjhhhNhNubj)}(h**target_value**h]h target_value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhk are. Then the score is entered to DAMON’s internal feedback loop mechanism to get the auto-tuned quota.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhKhjhhubh)}(hIf **metric** is DAMOS_QUOTA_USER_INPUT, **current_value** should be manually entered by the user, probably inside the kdamond callbacks. Otherwise, DAMON sets **current_value** with self-measured value of **metric**.h](hIf }(hjhhhNhNubj)}(h **metric**h]hmetric}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is DAMOS_QUOTA_USER_INPUT, }(hjhhhNhNubj)}(h**current_value**h]h current_value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhg should be manually entered by the user, probably inside the kdamond callbacks. Otherwise, DAMON sets }(hjhhhNhNubj)}(h**current_value**h]h current_value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh with self-measured value of }(hjhhhNhNubj)}(h **metric**h]hmetric}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhKhjhhubh)}(hIf **metric** is DAMOS_QUOTA_NODE_MEM_{USED,FREE}_BP, **nid** represents the node id of the target node to account the used/free memory.h](hIf }(hjhhhNhNubj)}(h **metric**h]hmetric}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh) is DAMOS_QUOTA_NODE_MEM_{USED,FREE}_BP, }(hjhhhNhNubj)}(h**nid**h]hnid}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhK represents the node id of the target node to account the used/free memory.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhKhjhhubh)}(hIf **metric** is DAMOS_QUOTA_NODE_MEMCG_{USED,FREE}_BP, **nid** and **memcg_id** represents the node id and the cgroup to account the used memory for.h](hIf }(hjPhhhNhNubj)}(h **metric**h]hmetric}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubh+ is DAMOS_QUOTA_NODE_MEMCG_{USED,FREE}_BP, }(hjPhhhNhNubj)}(h**nid**h]hnid}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubh and }(hjPhhhNhNubj)}(h **memcg_id**h]hmemcg_id}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubhF represents the node id and the cgroup to account the used memory for.}(hjPhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhKhjhhubj%)}(hhh]h}(h]h ]h"]h$]h&]entries](j1damos_quota_goal_tuner (C enum)c.damos_quota_goal_tunerhNtauh1j$hjhhhj5hNubj7)}(hhh](j<)}(hdamos_quota_goal_tunerh]jB)}(henum damos_quota_goal_tunerh](jH)}(hj h]henum}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjhhhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhKubjZ)}(h h]h }(hjhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjhhhjhKubjk)}(hdamos_quota_goal_tunerh]jq)}(hjh]hdamos_quota_goal_tuner}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1jphjubah}(h]h ](jjeh"]h$]h&]hhuh1jjhjhhhjhKubeh}(h]h ]h"]h$]h&]hhjuh1jAjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j;hjhKhjhhubj)}(hhh]h)}(hGoal-based quota tuning logic.h]hGoal-based quota tuning logic.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jenumeh"]h$]h&]jjjjjjjjjuh1j6hhhjhj5hNubj)}(h**Constants** ``DAMOS_QUOTA_GOAL_TUNER_CONSIST`` Aim long term consistent quota. ``DAMOS_QUOTA_GOAL_TUNER_TEMPORAL`` Aim zero quota asap.h](h)}(h **Constants**h]j)}(hjh]h Constants}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhKhj ubj7)}(hhh](j<)}(hC``DAMOS_QUOTA_GOAL_TUNER_CONSIST`` Aim long term consistent quota. h](jB)}(h"``DAMOS_QUOTA_GOAL_TUNER_CONSIST``h]h)}(hj1h]hDAMOS_QUOTA_GOAL_TUNER_CONSIST}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/ubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhKhj+ubj\)}(hhh]h)}(hAim long term consistent quota.h]hAim long term consistent quota.}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFhKhjGubah}(h]h ]h"]h$]h&]uh1j[hj+ubeh}(h]h ]h"]h$]h&]uh1j;hjFhKhj(ubj<)}(h8``DAMOS_QUOTA_GOAL_TUNER_TEMPORAL`` Aim zero quota asap.h](jB)}(h#``DAMOS_QUOTA_GOAL_TUNER_TEMPORAL``h]h)}(hjjh]hDAMOS_QUOTA_GOAL_TUNER_TEMPORAL}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhKhjdubj\)}(hhh]h)}(hAim zero quota asap.h]hAim zero quota asap.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhKhjubah}(h]h ]h"]h$]h&]uh1j[hjdubeh}(h]h ]h"]h$]h&]uh1j;hjhKhj(ubeh}(h]h ]h"]h$]h&]uh1j6hj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhj5hNubj%)}(hhh]h}(h]h ]h"]h$]h&]entries](j1damos_quota (C struct) c.damos_quotahNtauh1j$hjhhhj5hNubj7)}(hhh](j<)}(h damos_quotah]jB)}(hstruct damos_quotah](jH)}(hjKh]hstruct}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjhhhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhKubjZ)}(h h]h }(hjhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjhhhjhKubjk)}(h damos_quotah]jq)}(hjh]h damos_quota}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1jphjubah}(h]h ](jjeh"]h$]h&]hhuh1jjhjhhhjhKubeh}(h]h ]h"]h$]h&]hhjuh1jAjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j;hjhKhjhhubj)}(hhh]h)}(h0Controls the aggressiveness of the given scheme.h]h0Controls the aggressiveness of the given scheme.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jstructeh"]h$]h&]jjjjjjjjjuh1j6hhhjhj5hNubj)}(hX\**Definition**:: struct damos_quota { unsigned long reset_interval; unsigned long ms; unsigned long sz; struct list_head goals; enum damos_quota_goal_tuner goal_tuner; unsigned long esz; unsigned int fail_charge_num; unsigned int fail_charge_denom; unsigned int weight_sz; unsigned int weight_nr_accesses; unsigned int weight_age; }; **Members** ``reset_interval`` Charge reset interval in milliseconds. ``ms`` Maximum milliseconds that the scheme can use. ``sz`` Maximum bytes of memory that the action can be applied. ``goals`` Head of quota tuning goals (:c:type:`damos_quota_goal`) list. ``goal_tuner`` Goal-based **esz** tuning algorithm to use. ``esz`` Effective size quota in bytes. ``fail_charge_num`` Failed regions charge rate numerator. ``fail_charge_denom`` Failed regions charge rate denominator. ``weight_sz`` Weight of the region's size for prioritization. ``weight_nr_accesses`` Weight of the region's nr_accesses for prioritization. ``weight_age`` Weight of the region's age for prioritization.h](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubh:}(hj&hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhKhj"ubj)}(hXhstruct damos_quota { unsigned long reset_interval; unsigned long ms; unsigned long sz; struct list_head goals; enum damos_quota_goal_tuner goal_tuner; unsigned long esz; unsigned int fail_charge_num; unsigned int fail_charge_denom; unsigned int weight_sz; unsigned int weight_nr_accesses; unsigned int weight_age; };h]hXhstruct damos_quota { unsigned long reset_interval; unsigned long ms; unsigned long sz; struct list_head goals; enum damos_quota_goal_tuner goal_tuner; unsigned long esz; unsigned int fail_charge_num; unsigned int fail_charge_denom; unsigned int weight_sz; unsigned int weight_nr_accesses; unsigned int weight_age; };}hjCsbah}(h]h ]h"]h$]h&]hhuh1j hR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhKhj"ubh)}(h **Members**h]j)}(hjTh]hMembers}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhKhj"ubj7)}(hhh](j<)}(h:``reset_interval`` Charge reset interval in milliseconds. h](jB)}(h``reset_interval``h]h)}(hjsh]hreset_interval}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjqubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhKhjmubj\)}(hhh]h)}(h&Charge reset interval in milliseconds.h]h&Charge reset interval in milliseconds.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j[hjmubeh}(h]h ]h"]h$]h&]uh1j;hjhKhjjubj<)}(h5``ms`` Maximum milliseconds that the scheme can use. h](jB)}(h``ms``h]h)}(hjh]hms}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhKhjubj\)}(hhh]h)}(h-Maximum milliseconds that the scheme can use.h]h-Maximum milliseconds that the scheme can use.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j[hjubeh}(h]h ]h"]h$]h&]uh1j;hjhKhjjubj<)}(h?``sz`` Maximum bytes of memory that the action can be applied. h](jB)}(h``sz``h]h)}(hjh]hsz}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhKhjubj\)}(hhh]h)}(h7Maximum bytes of memory that the action can be applied.h]h7Maximum bytes of memory that the action can be applied.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j[hjubeh}(h]h ]h"]h$]h&]uh1j;hjhKhjjubj<)}(hH``goals`` Head of quota tuning goals (:c:type:`damos_quota_goal`) list. h](jB)}(h ``goals``h]h)}(hjh]hgoals}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhKhjubj\)}(hhh]h)}(h=Head of quota tuning goals (:c:type:`damos_quota_goal`) list.h](hHead of quota tuning goals (}(hj7hhhNhNubh)}(h:c:type:`damos_quota_goal`h]h)}(hjAh]hdamos_quota_goal}(hjChhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhj?ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj damos_quota_goaluh1hhj3hKhj7ubh) list.}(hj7hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj3hKhj4ubah}(h]h ]h"]h$]h&]uh1j[hjubeh}(h]h ]h"]h$]h&]uh1j;hj3hKhjjubj<)}(h;``goal_tuner`` Goal-based **esz** tuning algorithm to use. h](jB)}(h``goal_tuner``h]h)}(hjzh]h goal_tuner}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjxubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhKhjtubj\)}(hhh]h)}(h+Goal-based **esz** tuning algorithm to use.h](h Goal-based }(hjhhhNhNubj)}(h**esz**h]hesz}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh tuning algorithm to use.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j[hjtubeh}(h]h ]h"]h$]h&]uh1j;hjhKhjjubj<)}(h'``esz`` Effective size quota in bytes. h](jB)}(h``esz``h]h)}(hjh]hesz}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhKhjubj\)}(hhh]h)}(hEffective size quota in bytes.h]hEffective size quota in bytes.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j[hjubeh}(h]h ]h"]h$]h&]uh1j;hjhKhjjubj<)}(h:``fail_charge_num`` Failed regions charge rate numerator. h](jB)}(h``fail_charge_num``h]h)}(hjh]hfail_charge_num}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhKhjubj\)}(hhh]h)}(h%Failed regions charge rate numerator.h]h%Failed regions charge rate numerator.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j[hjubeh}(h]h ]h"]h$]h&]uh1j;hjhKhjjubj<)}(h>``fail_charge_denom`` Failed regions charge rate denominator. h](jB)}(h``fail_charge_denom``h]h)}(hj7h]hfail_charge_denom}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5ubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhKhj1ubj\)}(hhh]h)}(h'Failed regions charge rate denominator.h]h'Failed regions charge rate denominator.}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjLhKhjMubah}(h]h ]h"]h$]h&]uh1j[hj1ubeh}(h]h ]h"]h$]h&]uh1j;hjLhKhjjubj<)}(h>``weight_sz`` Weight of the region's size for prioritization. h](jB)}(h ``weight_sz``h]h)}(hjph]h weight_sz}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjnubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhKhjjubj\)}(hhh]h)}(h/Weight of the region's size for prioritization.h]h1Weight of the region’s size for prioritization.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j[hjjubeh}(h]h ]h"]h$]h&]uh1j;hjhKhjjubj<)}(hN``weight_nr_accesses`` Weight of the region's nr_accesses for prioritization. h](jB)}(h``weight_nr_accesses``h]h)}(hjh]hweight_nr_accesses}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhKhjubj\)}(hhh]h)}(h6Weight of the region's nr_accesses for prioritization.h]h8Weight of the region’s nr_accesses for prioritization.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j[hjubeh}(h]h ]h"]h$]h&]uh1j;hjhKhjjubj<)}(h=``weight_age`` Weight of the region's age for prioritization.h](jB)}(h``weight_age``h]h)}(hjh]h weight_age}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhKhjubj\)}(hhh]h)}(h.Weight of the region's age for prioritization.h]h0Weight of the region’s age for prioritization.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhKhjubah}(h]h ]h"]h$]h&]uh1j[hjubeh}(h]h ]h"]h$]h&]uh1j;hjhKhjjubeh}(h]h ]h"]h$]h&]uh1j6hj"ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhj5hNubh)}(h**Description**h]j)}(hj%h]h Description}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhKhjhhubh)}(hXTo avoid consuming too much CPU time or IO resources for applying the :c:type:`struct damos `->action to large memory, DAMON allows users to set time and/or size quotas. The quotas can be set by writing non-zero values to :c:type:`ms` and :c:type:`sz`, respectively. If the time quota is set, DAMON tries to use only up to :c:type:`ms` milliseconds within :c:type:`reset_interval` for applying the action. If the size quota is set, DAMON tries to apply the action only up to :c:type:`sz` bytes within :c:type:`reset_interval`.h](hFTo avoid consuming too much CPU time or IO resources for applying the }(hj;hhhNhNubh)}(h:c:type:`struct damos `h]h)}(hjEh]h struct damos}(hjGhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhjCubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj damosuh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhKhj;ubh->action to large memory, DAMON allows users to set time and/or size quotas. The quotas can be set by writing non-zero values to }(hj;hhhNhNubh)}(h :c:type:`ms`h]h)}(hjih]hms}(hjkhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhjgubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj msuh1hhjbhKhj;ubh and }(hj;hhhNhNubh)}(h :c:type:`sz`h]h)}(hjh]hsz}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj szuh1hhjbhKhj;ubhI, respectively. If the time quota is set, DAMON tries to use only up to }(hj;hhhNhNubh)}(h :c:type:`ms`h]h)}(hjh]hms}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj msuh1hhjbhKhj;ubh milliseconds within }(hj;hhhNhNubh)}(h:c:type:`reset_interval`h]h)}(hjh]hreset_interval}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj reset_intervaluh1hhjbhKhj;ubh` for applying the action. If the size quota is set, DAMON tries to apply the action only up to }(hj;hhhNhNubh)}(h :c:type:`sz`h]h)}(hjh]hsz}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj szuh1hhjbhKhj;ubh bytes within }(hj;hhhNhNubh)}(h:c:type:`reset_interval`h]h)}(hjh]hreset_interval}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj reset_intervaluh1hhjbhKhj;ubh.}(hj;hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjbhKhjhhubh)}(hTo convince the different types of quotas and goals, DAMON internally converts those into one single size quota called "effective quota". DAMON internally uses it as the only one real quota. The conversion is made as follows.h]hTo convince the different types of quotas and goals, DAMON internally converts those into one single size quota called “effective quota”. DAMON internally uses it as the only one real quota. The conversion is made as follows.}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhKhjhhubh)}(hThe time quota is transformed to a size quota using estimated throughput of the scheme's action. DAMON then compares it against :c:type:`sz` and uses smaller one as the effective quota.h](hThe time quota is transformed to a size quota using estimated throughput of the scheme’s action. DAMON then compares it against }(hjNhhhNhNubh)}(h :c:type:`sz`h]h)}(hjXh]hsz}(hjZhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhjVubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj szuh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMhjNubh- and uses smaller one as the effective quota.}(hjNhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjuhMhjhhubh)}(hXIf **goals** is not empty, DAMON calculates yet another size quota based on the goals using its internal feedback loop algorithm, for every **reset_interval**. Then, if the new size quota is smaller than the effective quota, it uses the new size quota as the effective quota.h](hIf }(hjhhhNhNubj)}(h **goals**h]hgoals}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is not empty, DAMON calculates yet another size quota based on the goals using its internal feedback loop algorithm, for every }(hjhhhNhNubj)}(h**reset_interval**h]hreset_interval}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhu. Then, if the new size quota is smaller than the effective quota, it uses the new size quota as the effective quota.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMhjhhubh)}(h>The resulting effective size quota in bytes is set to **esz**.h](h6The resulting effective size quota in bytes is set to }(hjhhhNhNubj)}(h**esz**h]hesz}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhM hjhhubh)}(hFor DAMOS action applying failed amount of regions, charging those same to those that the action has successfully applied may be unfair. For the reason, 'the size * **fail_charge_num** / **fail_charge_denom**' is charged.h](hFor DAMOS action applying failed amount of regions, charging those same to those that the action has successfully applied may be unfair. For the reason, ‘the size * }(hjhhhNhNubj)}(h**fail_charge_num**h]hfail_charge_num}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh / }(hjhhhNhNubj)}(h**fail_charge_denom**h]hfail_charge_denom}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh’ is charged.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhM hjhhubh)}(hXvFor selecting regions within the quota, DAMON prioritizes current scheme's target memory regions using the :c:type:`struct damon_operations `->get_scheme_score. You could customize the prioritization logic by setting :c:type:`weight_sz`, :c:type:`weight_nr_accesses`, and :c:type:`weight_age`, because monitoring operations are encouraged to respect those.h](hmFor selecting regions within the quota, DAMON prioritizes current scheme’s target memory regions using the }(hjhhhNhNubh)}(h4:c:type:`struct damon_operations `h]h)}(hjh]hstruct damon_operations}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj damon_operationsuh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMhjubhL->get_scheme_score. You could customize the prioritization logic by setting }(hjhhhNhNubh)}(h:c:type:`weight_sz`h]h)}(hj5h]h weight_sz}(hj7hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhj3ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj  weight_szuh1hhj.hMhjubh, }(hjhhhNhNubh)}(h:c:type:`weight_nr_accesses`h]h)}(hjXh]hweight_nr_accesses}(hjZhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhjVubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj weight_nr_accessesuh1hhj.hMhjubh, and }(hjhhhNhNubh)}(h:c:type:`weight_age`h]h)}(hj{h]h weight_age}(hj}hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhjyubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj  weight_ageuh1hhj.hMhjubh@, because monitoring operations are encouraged to respect those.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj.hMhjhhubj%)}(hhh]h}(h]h ]h"]h$]h&]entries](j1damos_wmark_metric (C enum)c.damos_wmark_metrichNtauh1j$hjhhhj5hNubj7)}(hhh](j<)}(hdamos_wmark_metrich]jB)}(henum damos_wmark_metrich](jH)}(hj h]henum}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjhhhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMubjZ)}(h h]h }(hjhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjhhhjhMubjk)}(hdamos_wmark_metrich]jq)}(hjh]hdamos_wmark_metric}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1jphjubah}(h]h ](jjeh"]h$]h&]hhuh1jjhjhhhjhMubeh}(h]h ]h"]h$]h&]hhjuh1jAjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j;hjhMhjhhubj)}(hhh]h)}(h Represents the watermark metric.h]h Represents the watermark metric.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhM9hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jenumeh"]h$]h&]jjjjjjjjjuh1j6hhhjhj5hNubj)}(h**Constants** ``DAMOS_WMARK_NONE`` Ignore the watermarks of the given scheme. ``DAMOS_WMARK_FREE_MEM_RATE`` Free memory rate of the system in [0,1000]. ``NR_DAMOS_WMARK_METRICS`` Total number of DAMOS watermark metricsh](h)}(h **Constants**h]j)}(hjh]h Constants}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhM=hjubj7)}(hhh](j<)}(h@``DAMOS_WMARK_NONE`` Ignore the watermarks of the given scheme. h](jB)}(h``DAMOS_WMARK_NONE``h]h)}(hj>h]hDAMOS_WMARK_NONE}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj<ubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhM@hj8ubj\)}(hhh]h)}(h*Ignore the watermarks of the given scheme.h]h*Ignore the watermarks of the given scheme.}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjShM@hjTubah}(h]h ]h"]h$]h&]uh1j[hj8ubeh}(h]h ]h"]h$]h&]uh1j;hjShM@hj5ubj<)}(hJ``DAMOS_WMARK_FREE_MEM_RATE`` Free memory rate of the system in [0,1000]. h](jB)}(h``DAMOS_WMARK_FREE_MEM_RATE``h]h)}(hjwh]hDAMOS_WMARK_FREE_MEM_RATE}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjuubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMChjqubj\)}(hhh]h)}(h+Free memory rate of the system in [0,1000].h]h+Free memory rate of the system in [0,1000].}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMChjubah}(h]h ]h"]h$]h&]uh1j[hjqubeh}(h]h ]h"]h$]h&]uh1j;hjhMChj5ubj<)}(hB``NR_DAMOS_WMARK_METRICS`` Total number of DAMOS watermark metricsh](jB)}(h``NR_DAMOS_WMARK_METRICS``h]h)}(hjh]hNR_DAMOS_WMARK_METRICS}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMEhjubj\)}(hhh]h)}(h'Total number of DAMOS watermark metricsh]h'Total number of DAMOS watermark metrics}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMFhjubah}(h]h ]h"]h$]h&]uh1j[hjubeh}(h]h ]h"]h$]h&]uh1j;hjhMEhj5ubeh}(h]h ]h"]h$]h&]uh1j6hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhj5hNubj%)}(hhh]h}(h]h ]h"]h$]h&]entries](j1damos_watermarks (C struct)c.damos_watermarkshNtauh1j$hjhhhj5hNubj7)}(hhh](j<)}(hdamos_watermarksh]jB)}(hstruct damos_watermarksh](jH)}(hjKh]hstruct}(hj hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjhhhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMKubjZ)}(h h]h }(hjhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjhhhjhMKubjk)}(hdamos_watermarksh]jq)}(hjh]hdamos_watermarks}(hj*hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1jphj&ubah}(h]h ](jjeh"]h$]h&]hhuh1jjhjhhhjhMKubeh}(h]h ]h"]h$]h&]hhjuh1jAjjhjhhhjhMKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j;hjhMKhjhhubj)}(hhh]h)}(h1Controls when a given scheme should be activated.h]h1Controls when a given scheme should be activated.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMFhjIhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMKubeh}(h]h ](jstructeh"]h$]h&]jjjjdjjdjjjuh1j6hhhjhj5hNubj)}(hX**Definition**:: struct damos_watermarks { enum damos_wmark_metric metric; unsigned long interval; unsigned long high; unsigned long mid; unsigned long low; }; **Members** ``metric`` Metric for the watermarks. ``interval`` Watermarks check time interval in microseconds. ``high`` High watermark. ``mid`` Middle watermark. ``low`` Low watermark.h](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubh:}(hjlhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMJhjhubj)}(hstruct damos_watermarks { enum damos_wmark_metric metric; unsigned long interval; unsigned long high; unsigned long mid; unsigned long low; };h]hstruct damos_watermarks { enum damos_wmark_metric metric; unsigned long interval; unsigned long high; unsigned long mid; unsigned long low; };}hjsbah}(h]h ]h"]h$]h&]hhuh1j hR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMLhjhubh)}(h **Members**h]j)}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMThjhubj7)}(hhh](j<)}(h&``metric`` Metric for the watermarks. h](jB)}(h ``metric``h]h)}(hjh]hmetric}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMHhjubj\)}(hhh]h)}(hMetric for the watermarks.h]hMetric for the watermarks.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMHhjubah}(h]h ]h"]h$]h&]uh1j[hjubeh}(h]h ]h"]h$]h&]uh1j;hjhMHhjubj<)}(h=``interval`` Watermarks check time interval in microseconds. h](jB)}(h ``interval``h]h)}(hjh]hinterval}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMIhjubj\)}(hhh]h)}(h/Watermarks check time interval in microseconds.h]h/Watermarks check time interval in microseconds.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMIhjubah}(h]h ]h"]h$]h&]uh1j[hjubeh}(h]h ]h"]h$]h&]uh1j;hjhMIhjubj<)}(h``high`` High watermark. h](jB)}(h``high``h]h)}(hj+h]hhigh}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)ubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMJhj%ubj\)}(hhh]h)}(hHigh watermark.h]hHigh watermark.}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj@hMJhjAubah}(h]h ]h"]h$]h&]uh1j[hj%ubeh}(h]h ]h"]h$]h&]uh1j;hj@hMJhjubj<)}(h``mid`` Middle watermark. h](jB)}(h``mid``h]h)}(hjdh]hmid}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjbubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMKhj^ubj\)}(hhh]h)}(hMiddle watermark.h]hMiddle watermark.}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjyhMKhjzubah}(h]h ]h"]h$]h&]uh1j[hj^ubeh}(h]h ]h"]h$]h&]uh1j;hjyhMKhjubj<)}(h``low`` Low watermark.h](jB)}(h``low``h]h)}(hjh]hlow}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMKhjubj\)}(hhh]h)}(hLow watermark.h]hLow watermark.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMLhjubah}(h]h ]h"]h$]h&]uh1j[hjubeh}(h]h ]h"]h$]h&]uh1j;hjhMKhjubeh}(h]h ]h"]h$]h&]uh1j6hjhubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhj5hNubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMOhjhhubh)}(hX8If :c:type:`metric` is :c:type:`DAMOS_WMARK_NONE`, the scheme is always active. Being active means DAMON does monitoring and applying the action of the scheme to appropriate memory regions. Else, DAMON checks :c:type:`metric` of the system for at least every :c:type:`interval` microseconds and works as below.h](hIf }(hjhhhNhNubh)}(h:c:type:`metric`h]h)}(hj h]hmetric}(hj hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj metricuh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMLhjubh is }(hjhhhNhNubh)}(h:c:type:`DAMOS_WMARK_NONE`h]h)}(hj$ h]hDAMOS_WMARK_NONE}(hj& hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhj" ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj DAMOS_WMARK_NONEuh1hhj hMLhjubh, the scheme is always active. Being active means DAMON does monitoring and applying the action of the scheme to appropriate memory regions. Else, DAMON checks }(hjhhhNhNubh)}(h:c:type:`metric`h]h)}(hjG h]hmetric}(hjI hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhjE ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj metricuh1hhj hMLhjubh" of the system for at least every }(hjhhhNhNubh)}(h:c:type:`interval`h]h)}(hjj h]hinterval}(hjl hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhjh ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj intervaluh1hhj hMLhjubh! microseconds and works as below.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj hMLhjhhubh)}(hIf :c:type:`metric` is higher than :c:type:`high`, the scheme is inactivated. If :c:type:`metric` is between :c:type:`mid` and :c:type:`low`, the scheme is activated. If :c:type:`metric` is lower than :c:type:`low`, the scheme is inactivated.h](hIf }(hj hhhNhNubh)}(h:c:type:`metric`h]h)}(hj h]hmetric}(hj hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj metricuh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMQhj ubh is higher than }(hj hhhNhNubh)}(h:c:type:`high`h]h)}(hj h]hhigh}(hj hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj highuh1hhj hMQhj ubh!, the scheme is inactivated. If }(hj hhhNhNubh)}(h:c:type:`metric`h]h)}(hj h]hmetric}(hj hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj metricuh1hhj hMQhj ubh is between }(hj hhhNhNubh)}(h :c:type:`mid`h]h)}(hj!h]hmid}(hj!hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhj!ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj miduh1hhj hMQhj ubh and }(hj hhhNhNubh)}(h :c:type:`low`h]h)}(hj(!h]hlow}(hj*!hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhj&!ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj lowuh1hhj hMQhj ubh, the scheme is activated. If }(hj hhhNhNubh)}(h:c:type:`metric`h]h)}(hjK!h]hmetric}(hjM!hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhjI!ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj metricuh1hhj hMQhj ubh is lower than }(hj hhhNhNubh)}(h :c:type:`low`h]h)}(hjn!h]hlow}(hjp!hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhjl!ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj lowuh1hhj hMQhj ubh, the scheme is inactivated.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj hMQhjhhubj%)}(hhh]h}(h]h ]h"]h$]h&]entries](j1damos_stat (C struct) c.damos_stathNtauh1j$hjhhhj5hNubj7)}(hhh](j<)}(h damos_stath]jB)}(hstruct damos_stath](jH)}(hjKh]hstruct}(hj!hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj!hhhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMXubjZ)}(h h]h }(hj!hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj!hhhj!hMXubjk)}(h damos_stath]jq)}(hj!h]h damos_stat}(hj!hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1jphj!ubah}(h]h ](jjeh"]h$]h&]hhuh1jjhj!hhhj!hMXubeh}(h]h ]h"]h$]h&]hhjuh1jAjjhj!hhhj!hMXubah}(h]j!ah ](jjeh"]h$]h&]jj)jhuh1j;hj!hMXhj!hhubj)}(hhh]h)}(hStatistics on a given scheme.h]hStatistics on a given scheme.}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMbhj!hhubah}(h]h ]h"]h$]h&]uh1jhj!hhhj!hMXubeh}(h]h ](jstructeh"]h$]h&]jjjj"jj"jjjuh1j6hhhjhj5hNubj)}(hX;**Definition**:: struct damos_stat { unsigned long nr_tried; unsigned long sz_tried; unsigned long nr_applied; unsigned long sz_applied; unsigned long sz_ops_filter_passed; unsigned long qt_exceeds; unsigned long nr_snapshots; }; **Members** ``nr_tried`` Total number of regions that the scheme is tried to be applied. ``sz_tried`` Total size of regions that the scheme is tried to be applied. ``nr_applied`` Total number of regions that the scheme is applied. ``sz_applied`` Total size of regions that the scheme is applied. ``sz_ops_filter_passed`` Total bytes that passed ops layer-handled DAMOS filters. ``qt_exceeds`` Total number of times the quota of the scheme has exceeded. ``nr_snapshots`` Total number of DAMON snapshots that the scheme has tried.h](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubh:}(hj"hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMfhj "ubj)}(hstruct damos_stat { unsigned long nr_tried; unsigned long sz_tried; unsigned long nr_applied; unsigned long sz_applied; unsigned long sz_ops_filter_passed; unsigned long qt_exceeds; unsigned long nr_snapshots; };h]hstruct damos_stat { unsigned long nr_tried; unsigned long sz_tried; unsigned long nr_applied; unsigned long sz_applied; unsigned long sz_ops_filter_passed; unsigned long qt_exceeds; unsigned long nr_snapshots; };}hj-"sbah}(h]h ]h"]h$]h&]hhuh1j hR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMhhj "ubh)}(h **Members**h]j)}(hj>"h]hMembers}(hj@"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<"ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMrhj "ubj7)}(hhh](j<)}(hM``nr_tried`` Total number of regions that the scheme is tried to be applied. h](jB)}(h ``nr_tried``h]h)}(hj]"h]hnr_tried}(hj_"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj["ubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMdhjW"ubj\)}(hhh]h)}(h?Total number of regions that the scheme is tried to be applied.h]h?Total number of regions that the scheme is tried to be applied.}(hjv"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjr"hMdhjs"ubah}(h]h ]h"]h$]h&]uh1j[hjW"ubeh}(h]h ]h"]h$]h&]uh1j;hjr"hMdhjT"ubj<)}(hK``sz_tried`` Total size of regions that the scheme is tried to be applied. h](jB)}(h ``sz_tried``h]h)}(hj"h]hsz_tried}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj"ubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMehj"ubj\)}(hhh]h)}(h=Total size of regions that the scheme is tried to be applied.h]h=Total size of regions that the scheme is tried to be applied.}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj"hMehj"ubah}(h]h ]h"]h$]h&]uh1j[hj"ubeh}(h]h ]h"]h$]h&]uh1j;hj"hMehjT"ubj<)}(hC``nr_applied`` Total number of regions that the scheme is applied. h](jB)}(h``nr_applied``h]h)}(hj"h]h nr_applied}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj"ubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMfhj"ubj\)}(hhh]h)}(h3Total number of regions that the scheme is applied.h]h3Total number of regions that the scheme is applied.}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj"hMfhj"ubah}(h]h ]h"]h$]h&]uh1j[hj"ubeh}(h]h ]h"]h$]h&]uh1j;hj"hMfhjT"ubj<)}(hA``sz_applied`` Total size of regions that the scheme is applied. h](jB)}(h``sz_applied``h]h)}(hj#h]h sz_applied}(hj #hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#ubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMghj#ubj\)}(hhh]h)}(h1Total size of regions that the scheme is applied.h]h1Total size of regions that the scheme is applied.}(hj!#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#hMghj#ubah}(h]h ]h"]h$]h&]uh1j[hj#ubeh}(h]h ]h"]h$]h&]uh1j;hj#hMghjT"ubj<)}(hR``sz_ops_filter_passed`` Total bytes that passed ops layer-handled DAMOS filters. h](jB)}(h``sz_ops_filter_passed``h]h)}(hjA#h]hsz_ops_filter_passed}(hjC#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj?#ubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMhhj;#ubj\)}(hhh]h)}(h8Total bytes that passed ops layer-handled DAMOS filters.h]h8Total bytes that passed ops layer-handled DAMOS filters.}(hjZ#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjV#hMhhjW#ubah}(h]h ]h"]h$]h&]uh1j[hj;#ubeh}(h]h ]h"]h$]h&]uh1j;hjV#hMhhjT"ubj<)}(hK``qt_exceeds`` Total number of times the quota of the scheme has exceeded. h](jB)}(h``qt_exceeds``h]h)}(hjz#h]h qt_exceeds}(hj|#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjx#ubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMjhjt#ubj\)}(hhh]h)}(h;Total number of times the quota of the scheme has exceeded.h]h;Total number of times the quota of the scheme has exceeded.}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#hMjhj#ubah}(h]h ]h"]h$]h&]uh1j[hjt#ubeh}(h]h ]h"]h$]h&]uh1j;hj#hMjhjT"ubj<)}(hK``nr_snapshots`` Total number of DAMON snapshots that the scheme has tried.h](jB)}(h``nr_snapshots``h]h)}(hj#h]h nr_snapshots}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#ubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMjhj#ubj\)}(hhh]h)}(h:Total number of DAMON snapshots that the scheme has tried.h]h:Total number of DAMON snapshots that the scheme has tried.}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMkhj#ubah}(h]h ]h"]h$]h&]uh1j[hj#ubeh}(h]h ]h"]h$]h&]uh1j;hj#hMjhjT"ubeh}(h]h ]h"]h$]h&]uh1j6hj "ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhj5hNubh)}(h**Description**h]j)}(hj#h]h Description}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMnhjhhubh)}(hX2"Tried an action to a region" in this context means the DAMOS core logic determined the region as eligible to apply the action. The access pattern (:c:type:`struct damos_access_pattern `), quotas (:c:type:`struct damos_quota `), watermarks (:c:type:`struct damos_watermarks `) and filters (:c:type:`struct damos_filter `) that handled on core logic can affect this. The core logic asks the operation set (:c:type:`struct damon_operations `) to apply the action to the region.h](h“Tried an action to a region” in this context means the DAMOS core logic determined the region as eligible to apply the action. The access pattern (}(hj $hhhNhNubh)}(h<:c:type:`struct damos_access_pattern `h]h)}(hj$h]hstruct damos_access_pattern}(hj$hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhj$ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj damos_access_patternuh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMlhj $ubh ), quotas (}(hj $hhhNhNubh)}(h*:c:type:`struct damos_quota `h]h)}(hj:$h]hstruct damos_quota}(hj<$hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhj8$ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj  damos_quotauh1hhj3$hMlhj $ubh), watermarks (}(hj $hhhNhNubh)}(h4:c:type:`struct damos_watermarks `h]h)}(hj]$h]hstruct damos_watermarks}(hj_$hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhj[$ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj damos_watermarksuh1hhj3$hMlhj $ubh) and filters (}(hj $hhhNhNubh)}(h,:c:type:`struct damos_filter `h]h)}(hj$h]hstruct damos_filter}(hj$hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhj~$ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj  damos_filteruh1hhj3$hMlhj $ubhV) that handled on core logic can affect this. The core logic asks the operation set (}(hj $hhhNhNubh)}(h4:c:type:`struct damon_operations `h]h)}(hj$h]hstruct damon_operations}(hj$hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhj$ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj damon_operationsuh1hhj3$hMlhj $ubh$) to apply the action to the region.}(hj $hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj3$hMlhjhhubh)}(hX"Applied an action to a region" in this context means the operation set (:c:type:`struct damon_operations `) successfully applied the action to the region, at least to a part of the region. The filters (:c:type:`struct damos_filter `) that handled on operation set layer and type of the action and pages of the region can affect this. For example, if a filter is set to exclude anonymous pages and the region has only anonymous pages, the region will be failed at applying the action. If the action is :c:type:`DAMOS_PAGEOUT` and all pages of the region are already paged out, the region will be failed at applying the action.h](hM“Applied an action to a region” in this context means the operation set (}(hj$hhhNhNubh)}(h4:c:type:`struct damon_operations `h]h)}(hj$h]hstruct damon_operations}(hj$hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhj$ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj damon_operationsuh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMshj$ubha) successfully applied the action to the region, at least to a part of the region. The filters (}(hj$hhhNhNubh)}(h,:c:type:`struct damos_filter `h]h)}(hj$h]hstruct damos_filter}(hj$hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhj$ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj  damos_filteruh1hhj$hMshj$ubhX) that handled on operation set layer and type of the action and pages of the region can affect this. For example, if a filter is set to exclude anonymous pages and the region has only anonymous pages, the region will be failed at applying the action. If the action is }(hj$hhhNhNubh)}(h:c:type:`DAMOS_PAGEOUT`h]h)}(hj%h]h DAMOS_PAGEOUT}(hj%hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhj%ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj  DAMOS_PAGEOUTuh1hhj$hMshj$ubhe and all pages of the region are already paged out, the region will be failed at applying the action.}(hj$hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj$hMshjhhubj%)}(hhh]h}(h]h ]h"]h$]h&]entries](j1damos_filter_type (C enum)c.damos_filter_typehNtauh1j$hjhhhj5hNubj7)}(hhh](j<)}(hdamos_filter_typeh]jB)}(henum damos_filter_typeh](jH)}(hj h]henum}(hj[%hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjW%hhhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMubjZ)}(h h]h }(hji%hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjW%hhhjh%hMubjk)}(hdamos_filter_typeh]jq)}(hjU%h]hdamos_filter_type}(hj{%hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1jphjw%ubah}(h]h ](jjeh"]h$]h&]hhuh1jjhjW%hhhjh%hMubeh}(h]h ]h"]h$]h&]hhjuh1jAjjhjS%hhhjh%hMubah}(h]jN%ah ](jjeh"]h$]h&]jj)jhuh1j;hjh%hMhjP%hhubj)}(hhh]h)}(h?Type of memory for :c:type:`struct damos_filter `h](hType of memory for }(hj%hhhNhNubh)}(h,:c:type:`struct damos_filter `h]h)}(hj%h]hstruct damos_filter}(hj%hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhj%ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjj)}j ]j ASTIdentifier)} identifierjU%sbc.damos_filter_typeasbj  damos_filteruh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhKhj%ubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMhj%hhubah}(h]h ]h"]h$]h&]uh1jhjP%hhhjh%hMubeh}(h]h ](jenumeh"]h$]h&]jjjj%jj%jjjuh1j6hhhjhj5hNubj)}(hX**Constants** ``DAMOS_FILTER_TYPE_ANON`` Anonymous pages. ``DAMOS_FILTER_TYPE_ACTIVE`` Active pages. ``DAMOS_FILTER_TYPE_MEMCG`` Specific memcg's pages. ``DAMOS_FILTER_TYPE_YOUNG`` Recently accessed pages. ``DAMOS_FILTER_TYPE_HUGEPAGE_SIZE`` Page is part of a hugepage. ``DAMOS_FILTER_TYPE_UNMAPPED`` Unmapped pages. ``DAMOS_FILTER_TYPE_ADDR`` Address range. ``DAMOS_FILTER_TYPE_TARGET`` Data Access Monitoring target. ``NR_DAMOS_FILTER_TYPES`` Number of filter types.h](h)}(h **Constants**h]j)}(hj%h]h Constants}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMhj%ubj7)}(hhh](j<)}(h,``DAMOS_FILTER_TYPE_ANON`` Anonymous pages. h](jB)}(h``DAMOS_FILTER_TYPE_ANON``h]h)}(hj&h]hDAMOS_FILTER_TYPE_ANON}(hj &hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&ubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMhj&ubj\)}(hhh]h)}(hAnonymous pages.h]hAnonymous pages.}(hj!&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&hMhj&ubah}(h]h ]h"]h$]h&]uh1j[hj&ubeh}(h]h ]h"]h$]h&]uh1j;hj&hMhj%ubj<)}(h+``DAMOS_FILTER_TYPE_ACTIVE`` Active pages. h](jB)}(h``DAMOS_FILTER_TYPE_ACTIVE``h]h)}(hjA&h]hDAMOS_FILTER_TYPE_ACTIVE}(hjC&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj?&ubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMhj;&ubj\)}(hhh]h)}(h Active pages.h]h Active pages.}(hjZ&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjV&hMhjW&ubah}(h]h ]h"]h$]h&]uh1j[hj;&ubeh}(h]h ]h"]h$]h&]uh1j;hjV&hMhj%ubj<)}(h4``DAMOS_FILTER_TYPE_MEMCG`` Specific memcg's pages. h](jB)}(h``DAMOS_FILTER_TYPE_MEMCG``h]h)}(hjz&h]hDAMOS_FILTER_TYPE_MEMCG}(hj|&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjx&ubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMhjt&ubj\)}(hhh]h)}(hSpecific memcg's pages.h]hSpecific memcg’s pages.}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&hMhj&ubah}(h]h ]h"]h$]h&]uh1j[hjt&ubeh}(h]h ]h"]h$]h&]uh1j;hj&hMhj%ubj<)}(h5``DAMOS_FILTER_TYPE_YOUNG`` Recently accessed pages. h](jB)}(h``DAMOS_FILTER_TYPE_YOUNG``h]h)}(hj&h]hDAMOS_FILTER_TYPE_YOUNG}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&ubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMhj&ubj\)}(hhh]h)}(hRecently accessed pages.h]hRecently accessed pages.}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&hMhj&ubah}(h]h ]h"]h$]h&]uh1j[hj&ubeh}(h]h ]h"]h$]h&]uh1j;hj&hMhj%ubj<)}(h@``DAMOS_FILTER_TYPE_HUGEPAGE_SIZE`` Page is part of a hugepage. h](jB)}(h#``DAMOS_FILTER_TYPE_HUGEPAGE_SIZE``h]h)}(hj&h]hDAMOS_FILTER_TYPE_HUGEPAGE_SIZE}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&ubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMhj&ubj\)}(hhh]h)}(hPage is part of a hugepage.h]hPage is part of a hugepage.}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj'hMhj'ubah}(h]h ]h"]h$]h&]uh1j[hj&ubeh}(h]h ]h"]h$]h&]uh1j;hj'hMhj%ubj<)}(h/``DAMOS_FILTER_TYPE_UNMAPPED`` Unmapped pages. h](jB)}(h``DAMOS_FILTER_TYPE_UNMAPPED``h]h)}(hj%'h]hDAMOS_FILTER_TYPE_UNMAPPED}(hj''hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#'ubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMhj'ubj\)}(hhh]h)}(hUnmapped pages.h]hUnmapped pages.}(hj>'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:'hMhj;'ubah}(h]h ]h"]h$]h&]uh1j[hj'ubeh}(h]h ]h"]h$]h&]uh1j;hj:'hMhj%ubj<)}(h*``DAMOS_FILTER_TYPE_ADDR`` Address range. h](jB)}(h``DAMOS_FILTER_TYPE_ADDR``h]h)}(hj^'h]hDAMOS_FILTER_TYPE_ADDR}(hj`'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj\'ubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMhjX'ubj\)}(hhh]h)}(hAddress range.h]hAddress range.}(hjw'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjs'hMhjt'ubah}(h]h ]h"]h$]h&]uh1j[hjX'ubeh}(h]h ]h"]h$]h&]uh1j;hjs'hMhj%ubj<)}(h<``DAMOS_FILTER_TYPE_TARGET`` Data Access Monitoring target. h](jB)}(h``DAMOS_FILTER_TYPE_TARGET``h]h)}(hj'h]hDAMOS_FILTER_TYPE_TARGET}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj'ubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMhj'ubj\)}(hhh]h)}(hData Access Monitoring target.h]hData Access Monitoring target.}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj'hMhj'ubah}(h]h ]h"]h$]h&]uh1j[hj'ubeh}(h]h ]h"]h$]h&]uh1j;hj'hMhj%ubj<)}(h1``NR_DAMOS_FILTER_TYPES`` Number of filter types.h](jB)}(h``NR_DAMOS_FILTER_TYPES``h]h)}(hj'h]hNR_DAMOS_FILTER_TYPES}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj'ubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMhj'ubj\)}(hhh]h)}(hNumber of filter types.h]hNumber of filter types.}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMhj'ubah}(h]h ]h"]h$]h&]uh1j[hj'ubeh}(h]h ]h"]h$]h&]uh1j;hj'hMhj%ubeh}(h]h ]h"]h$]h&]uh1j6hj%ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhj5hNubh)}(h**Description**h]j)}(hj(h]h Description}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMhjhhubh)}(hX8The anon pages type and memcg type filters are handled by underlying :c:type:`struct damon_operations ` as a part of scheme action trying, and therefore accounted as 'tried'. In contrast, other types are handled by core layer before trying of the action and therefore not accounted as 'tried'.h](hEThe anon pages type and memcg type filters are handled by underlying }(hj)(hhhNhNubh)}(h4:c:type:`struct damon_operations `h]h)}(hj3(h]hstruct damon_operations}(hj5(hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhj1(ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj damon_operationsuh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMhj)(ubh as a part of scheme action trying, and therefore accounted as ‘tried’. In contrast, other types are handled by core layer before trying of the action and therefore not accounted as ‘tried’.}(hj)(hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjP(hMhjhhubh)}(hXThe support of the filters that handled by :c:type:`struct damon_operations ` depend on the running :c:type:`struct damon_operations `. :c:type:`enum DAMON_OPS_PADDR ` supports both anon pages type and memcg type filters, while :c:type:`enum DAMON_OPS_VADDR ` and :c:type:`enum DAMON_OPS_FVADDR ` don't support any of the two types.h](h+The support of the filters that handled by }(hj[(hhhNhNubh)}(h4:c:type:`struct damon_operations `h]h)}(hje(h]hstruct damon_operations}(hjg(hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhjc(ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj damon_operationsuh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMhj[(ubh depend on the running }(hj[(hhhNhNubh)}(h4:c:type:`struct damon_operations `h]h)}(hj(h]hstruct damon_operations}(hj(hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhj(ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj damon_operationsuh1hhj(hMhj[(ubh. }(hj[(hhhNhNubh)}(h0:c:type:`enum DAMON_OPS_PADDR `h]h)}(hj(h]henum DAMON_OPS_PADDR}(hj(hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhj(ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj DAMON_OPS_PADDRuh1hhj(hMhj[(ubh= supports both anon pages type and memcg type filters, while }(hj[(hhhNhNubh)}(h0:c:type:`enum DAMON_OPS_VADDR `h]h)}(hj(h]henum DAMON_OPS_VADDR}(hj(hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhj(ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj DAMON_OPS_VADDRuh1hhj(hMhj[(ubh and }(hj[(hhhNhNubh)}(h2:c:type:`enum DAMON_OPS_FVADDR `h]h)}(hj(h]henum DAMON_OPS_FVADDR}(hj(hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhj(ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj DAMON_OPS_FVADDRuh1hhj(hMhj[(ubh& don’t support any of the two types.}(hj[(hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj(hMhjhhubj%)}(hhh]h}(h]h ]h"]h$]h&]entries](j1damos_filter (C struct)c.damos_filterhNtauh1j$hjhhhj5hNubj7)}(hhh](j<)}(h damos_filterh]jB)}(hstruct damos_filterh](jH)}(hjKh]hstruct}(hj2)hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj.)hhhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMubjZ)}(h h]h }(hj@)hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj.)hhhj?)hMubjk)}(h damos_filterh]jq)}(hj,)h]h damos_filter}(hjR)hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1jphjN)ubah}(h]h ](jjeh"]h$]h&]hhuh1jjhj.)hhhj?)hMubeh}(h]h ]h"]h$]h&]hhjuh1jAjjhj*)hhhj?)hMubah}(h]j%)ah ](jjeh"]h$]h&]jj)jhuh1j;hj?)hMhj')hhubj)}(hhh]h)}(h"DAMOS action target memory filter.h]h"DAMOS action target memory filter.}(hjt)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMhjq)hhubah}(h]h ]h"]h$]h&]uh1jhj')hhhj?)hMubeh}(h]h ](jstructeh"]h$]h&]jjjj)jj)jjjuh1j6hhhjhj5hNubj)}(hX**Definition**:: struct damos_filter { enum damos_filter_type type; bool matching; bool allow; union { u64 memcg_id; struct damon_addr_range addr_range; int target_idx; struct damon_size_range sz_range; }; struct list_head list; }; **Members** ``type`` Type of the target memory. ``matching`` Whether this is for **type**-matching memory. ``allow`` Whether to include or exclude the **matching** memory. ``{unnamed_union}`` anonymous ``memcg_id`` Memcg id of the question if **type** is DAMOS_FILTER_MEMCG. ``addr_range`` Address range if **type** is DAMOS_FILTER_TYPE_ADDR. ``target_idx`` Index of the :c:type:`struct damon_target ` of :c:type:`damon_ctx->adaptive_targets ` if **type** is DAMOS_FILTER_TYPE_TARGET. ``sz_range`` Size range if **type** is DAMOS_FILTER_TYPE_HUGEPAGE_SIZE. ``list`` List head for siblings.h](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubh:}(hj)hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMhj)ubj)}(hXstruct damos_filter { enum damos_filter_type type; bool matching; bool allow; union { u64 memcg_id; struct damon_addr_range addr_range; int target_idx; struct damon_size_range sz_range; }; struct list_head list; };h]hXstruct damos_filter { enum damos_filter_type type; bool matching; bool allow; union { u64 memcg_id; struct damon_addr_range addr_range; int target_idx; struct damon_size_range sz_range; }; struct list_head list; };}hj)sbah}(h]h ]h"]h$]h&]hhuh1j hR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMhj)ubh)}(h **Members**h]j)}(hj)h]hMembers}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMhj)ubj7)}(hhh](j<)}(h$``type`` Type of the target memory. h](jB)}(h``type``h]h)}(hj)h]htype}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)ubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMhj)ubj\)}(hhh]h)}(hType of the target memory.h]hType of the target memory.}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)hMhj)ubah}(h]h ]h"]h$]h&]uh1j[hj)ubeh}(h]h ]h"]h$]h&]uh1j;hj)hMhj)ubj<)}(h;``matching`` Whether this is for **type**-matching memory. h](jB)}(h ``matching``h]h)}(hj*h]hmatching}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj*ubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMhj*ubj\)}(hhh]h)}(h-Whether this is for **type**-matching memory.h](hWhether this is for }(hj3*hhhNhNubj)}(h**type**h]htype}(hj;*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3*ubh-matching memory.}(hj3*hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj/*hMhj0*ubah}(h]h ]h"]h$]h&]uh1j[hj*ubeh}(h]h ]h"]h$]h&]uh1j;hj/*hMhj)ubj<)}(hA``allow`` Whether to include or exclude the **matching** memory. h](jB)}(h ``allow``h]h)}(hje*h]hallow}(hjg*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjc*ubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMhj_*ubj\)}(hhh]h)}(h6Whether to include or exclude the **matching** memory.h](h"Whether to include or exclude the }(hj~*hhhNhNubj)}(h **matching**h]hmatching}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~*ubh memory.}(hj~*hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjz*hMhj{*ubah}(h]h ]h"]h$]h&]uh1j[hj_*ubeh}(h]h ]h"]h$]h&]uh1j;hjz*hMhj)ubj<)}(h``{unnamed_union}`` anonymous h](jB)}(h``{unnamed_union}``h]h)}(hj*h]h{unnamed_union}}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj*ubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhKhj*ubj\)}(hhh]h)}(h anonymoush]h anonymous}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj*hKhj*ubah}(h]h ]h"]h$]h&]uh1j[hj*ubeh}(h]h ]h"]h$]h&]uh1j;hj*hKhj)ubj<)}(hI``memcg_id`` Memcg id of the question if **type** is DAMOS_FILTER_MEMCG. h](jB)}(h ``memcg_id``h]h)}(hj*h]hmemcg_id}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj*ubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMhj*ubj\)}(hhh]h)}(h;Memcg id of the question if **type** is DAMOS_FILTER_MEMCG.h](hMemcg id of the question if }(hj+hhhNhNubj)}(h**type**h]htype}(hj +hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubh is DAMOS_FILTER_MEMCG.}(hj+hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj*hMhj*ubah}(h]h ]h"]h$]h&]uh1j[hj*ubeh}(h]h ]h"]h$]h&]uh1j;hj*hMhj)ubj<)}(hD``addr_range`` Address range if **type** is DAMOS_FILTER_TYPE_ADDR. h](jB)}(h``addr_range``h]h)}(hj4+h]h addr_range}(hj6+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2+ubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMhj.+ubj\)}(hhh]h)}(h4Address range if **type** is DAMOS_FILTER_TYPE_ADDR.h](hAddress range if }(hjM+hhhNhNubj)}(h**type**h]htype}(hjU+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjM+ubh is DAMOS_FILTER_TYPE_ADDR.}(hjM+hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjI+hMhjJ+ubah}(h]h ]h"]h$]h&]uh1j[hj.+ubeh}(h]h ]h"]h$]h&]uh1j;hjI+hMhj)ubj<)}(h``target_idx`` Index of the :c:type:`struct damon_target ` of :c:type:`damon_ctx->adaptive_targets ` if **type** is DAMOS_FILTER_TYPE_TARGET. h](jB)}(h``target_idx``h]h)}(hj+h]h target_idx}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj}+ubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMhjy+ubj\)}(hhh]h)}(hIndex of the :c:type:`struct damon_target ` of :c:type:`damon_ctx->adaptive_targets ` if **type** is DAMOS_FILTER_TYPE_TARGET.h](h Index of the }(hj+hhhNhNubh)}(h,:c:type:`struct damon_target `h]h)}(hj+h]hstruct damon_target}(hj+hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhj+ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj  damon_targetuh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMhj+ubh of }(hj+hhhNhNubh)}(h1:c:type:`damon_ctx->adaptive_targets `h]h)}(hj+h]hdamon_ctx->adaptive_targets}(hj+hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhj+ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj  damon_ctxuh1hhj+hMhj+ubh if }(hj+hhhNhNubj)}(h**type**h]htype}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubh is DAMOS_FILTER_TYPE_TARGET.}(hj+hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj+hMhj+ubah}(h]h ]h"]h$]h&]uh1j[hjy+ubeh}(h]h ]h"]h$]h&]uh1j;hj+hMhj)ubj<)}(hH``sz_range`` Size range if **type** is DAMOS_FILTER_TYPE_HUGEPAGE_SIZE. h](jB)}(h ``sz_range``h]h)}(hj,h]hsz_range}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj,ubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMhj ,ubj\)}(hhh]h)}(h:Size range if **type** is DAMOS_FILTER_TYPE_HUGEPAGE_SIZE.h](hSize range if }(hj*,hhhNhNubj)}(h**type**h]htype}(hj2,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*,ubh$ is DAMOS_FILTER_TYPE_HUGEPAGE_SIZE.}(hj*,hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj&,hMhj',ubah}(h]h ]h"]h$]h&]uh1j[hj ,ubeh}(h]h ]h"]h$]h&]uh1j;hj&,hMhj)ubj<)}(h ``list`` List head for siblings.h](jB)}(h``list``h]h)}(hj\,h]hlist}(hj^,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjZ,ubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMhjV,ubj\)}(hhh]h)}(hList head for siblings.h]hList head for siblings.}(hju,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMhjr,ubah}(h]h ]h"]h$]h&]uh1j[hjV,ubeh}(h]h ]h"]h$]h&]uh1j;hjq,hMhj)ubeh}(h]h ]h"]h$]h&]uh1j6hj)ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhj5hNubh)}(h**Description**h]j)}(hj,h]h Description}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMhjhhubh)}(hX|Before applying the :c:type:`damos->action ` to a memory region, DAMOS checks if each byte of the region matches to this given condition and avoid applying the action if so. Support of each filter type depends on the running :c:type:`struct damon_operations ` and the type. Refer to :c:type:`enum damos_filter_type ` for more details.h](hBefore applying the }(hj,hhhNhNubh)}(h:c:type:`damos->action `h]h)}(hj,h]h damos->action}(hj,hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhj,ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj damosuh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMhj,ubh to a memory region, DAMOS checks if each byte of the region matches to this given condition and avoid applying the action if so. Support of each filter type depends on the running }(hj,hhhNhNubh)}(h4:c:type:`struct damon_operations `h]h)}(hj,h]hstruct damon_operations}(hj,hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhj,ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj damon_operationsuh1hhj,hMhj,ubh and the type. Refer to }(hj,hhhNhNubh)}(h4:c:type:`enum damos_filter_type `h]h)}(hj-h]henum damos_filter_type}(hj-hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhj-ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj damos_filter_typeuh1hhj,hMhj,ubh for more details.}(hj,hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj,hMhjhhubj%)}(hhh]h}(h]h ]h"]h$]h&]entries](j1damos_walk_control (C struct)c.damos_walk_controlhNtauh1j$hjhhhj5hNubj7)}(hhh](j<)}(hdamos_walk_controlh]jB)}(hstruct damos_walk_controlh](jH)}(hjKh]hstruct}(hjF-hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjB-hhhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMubjZ)}(h h]h }(hjT-hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjB-hhhjS-hMubjk)}(hdamos_walk_controlh]jq)}(hj@-h]hdamos_walk_control}(hjf-hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1jphjb-ubah}(h]h ](jjeh"]h$]h&]hhuh1jjhjB-hhhjS-hMubeh}(h]h ]h"]h$]h&]hhjuh1jAjjhj>-hhhjS-hMubah}(h]j9-ah ](jjeh"]h$]h&]jj)jhuh1j;hjS-hMhj;-hhubj)}(hhh]h)}(hControl damos_walk().h]hControl damos_walk().}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMhj-hhubah}(h]h ]h"]h$]h&]uh1jhj;-hhhjS-hMubeh}(h]h ](jstructeh"]h$]h&]jjjj-jj-jjjuh1j6hhhjhj5hNubj)}(hXa**Definition**:: struct damos_walk_control { void (*walk_fn)(void *data, struct damon_ctx *ctx, struct damon_target *t, struct damon_region *r, struct damos *s, unsigned long sz_filter_passed); void *data; }; **Members** ``walk_fn`` Function to be called back for each region. ``data`` Data that will be passed to walk functions.h](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubh:}(hj-hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMhj-ubj)}(hstruct damos_walk_control { void (*walk_fn)(void *data, struct damon_ctx *ctx, struct damon_target *t, struct damon_region *r, struct damos *s, unsigned long sz_filter_passed); void *data; };h]hstruct damos_walk_control { void (*walk_fn)(void *data, struct damon_ctx *ctx, struct damon_target *t, struct damon_region *r, struct damos *s, unsigned long sz_filter_passed); void *data; };}hj-sbah}(h]h ]h"]h$]h&]hhuh1j hR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMhj-ubh)}(h **Members**h]j)}(hj-h]hMembers}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMhj-ubj7)}(hhh](j<)}(h8``walk_fn`` Function to be called back for each region. h](jB)}(h ``walk_fn``h]h)}(hj-h]hwalk_fn}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj-ubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMhj-ubj\)}(hhh]h)}(h+Function to be called back for each region.h]h+Function to be called back for each region.}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj .hMhj .ubah}(h]h ]h"]h$]h&]uh1j[hj-ubeh}(h]h ]h"]h$]h&]uh1j;hj .hMhj-ubj<)}(h4``data`` Data that will be passed to walk functions.h](jB)}(h``data``h]h)}(hj..h]hdata}(hj0.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj,.ubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMhj(.ubj\)}(hhh]h)}(h+Data that will be passed to walk functions.h]h+Data that will be passed to walk functions.}(hjG.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMhjD.ubah}(h]h ]h"]h$]h&]uh1j[hj(.ubeh}(h]h ]h"]h$]h&]uh1j;hjC.hMhj-ubeh}(h]h ]h"]h$]h&]uh1j6hj-ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhj5hNubh)}(h**Description**h]j)}(hjq.h]h Description}(hjs.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjo.ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMhjhhubh)}(hControl damos_walk(), which requests specific kdamond to invoke the given function to each region that eligible to apply actions of the kdamond's schemes. Refer to damos_walk() for more details.h]hControl damos_walk(), which requests specific kdamond to invoke the given function to each region that eligible to apply actions of the kdamond’s schemes. Refer to damos_walk() for more details.}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMhjhhubj%)}(hhh]h}(h]h ]h"]h$]h&]entries](j1damos_access_pattern (C struct)c.damos_access_patternhNtauh1j$hjhhhj5hNubj7)}(hhh](j<)}(hdamos_access_patternh]jB)}(hstruct damos_access_patternh](jH)}(hjKh]hstruct}(hj.hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj.hhhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMubjZ)}(h h]h }(hj.hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj.hhhj.hMubjk)}(hdamos_access_patternh]jq)}(hj.h]hdamos_access_pattern}(hj.hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1jphj.ubah}(h]h ](jjeh"]h$]h&]hhuh1jjhj.hhhj.hMubeh}(h]h ]h"]h$]h&]hhjuh1jAjjhj.hhhj.hMubah}(h]j.ah ](jjeh"]h$]h&]jj)jhuh1j;hj.hMhj.hhubj)}(hhh]h)}(h*Target access pattern of the given scheme.h]h*Target access pattern of the given scheme.}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMhj.hhubah}(h]h ]h"]h$]h&]uh1jhj.hhhj.hMubeh}(h]h ](jstructeh"]h$]h&]jjjj /jj /jjjuh1j6hhhjhj5hNubj)}(hXs**Definition**:: struct damos_access_pattern { unsigned long min_sz_region; unsigned long max_sz_region; unsigned int min_nr_accesses; unsigned int max_nr_accesses; unsigned int min_age_region; unsigned int max_age_region; }; **Members** ``min_sz_region`` Minimum size of target regions. ``max_sz_region`` Maximum size of target regions. ``min_nr_accesses`` Minimum ``->nr_accesses`` of target regions. ``max_nr_accesses`` Maximum ``->nr_accesses`` of target regions. ``min_age_region`` Minimum age of target regions. ``max_age_region`` Maximum age of target regions.h](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubh:}(hj/hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMhj /ubj)}(hstruct damos_access_pattern { unsigned long min_sz_region; unsigned long max_sz_region; unsigned int min_nr_accesses; unsigned int max_nr_accesses; unsigned int min_age_region; unsigned int max_age_region; };h]hstruct damos_access_pattern { unsigned long min_sz_region; unsigned long max_sz_region; unsigned int min_nr_accesses; unsigned int max_nr_accesses; unsigned int min_age_region; unsigned int max_age_region; };}hj./sbah}(h]h ]h"]h$]h&]hhuh1j hR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMhj /ubh)}(h **Members**h]j)}(hj?/h]hMembers}(hjA/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=/ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMhj /ubj7)}(hhh](j<)}(h2``min_sz_region`` Minimum size of target regions. h](jB)}(h``min_sz_region``h]h)}(hj^/h]h min_sz_region}(hj`/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj\/ubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMhjX/ubj\)}(hhh]h)}(hMinimum size of target regions.h]hMinimum size of target regions.}(hjw/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjs/hMhjt/ubah}(h]h ]h"]h$]h&]uh1j[hjX/ubeh}(h]h ]h"]h$]h&]uh1j;hjs/hMhjU/ubj<)}(h2``max_sz_region`` Maximum size of target regions. h](jB)}(h``max_sz_region``h]h)}(hj/h]h max_sz_region}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/ubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMhj/ubj\)}(hhh]h)}(hMaximum size of target regions.h]hMaximum size of target regions.}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/hMhj/ubah}(h]h ]h"]h$]h&]uh1j[hj/ubeh}(h]h ]h"]h$]h&]uh1j;hj/hMhjU/ubj<)}(hA``min_nr_accesses`` Minimum ``->nr_accesses`` of target regions. h](jB)}(h``min_nr_accesses``h]h)}(hj/h]hmin_nr_accesses}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/ubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMhj/ubj\)}(hhh]h)}(h,Minimum ``->nr_accesses`` of target regions.h](hMinimum }(hj/hhhNhNubh)}(h``->nr_accesses``h]h ->nr_accesses}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/ubh of target regions.}(hj/hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj/hMhj/ubah}(h]h ]h"]h$]h&]uh1j[hj/ubeh}(h]h ]h"]h$]h&]uh1j;hj/hMhjU/ubj<)}(hA``max_nr_accesses`` Maximum ``->nr_accesses`` of target regions. h](jB)}(h``max_nr_accesses``h]h)}(hj0h]hmax_nr_accesses}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0ubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMhj0ubj\)}(hhh]h)}(h,Maximum ``->nr_accesses`` of target regions.h](hMaximum }(hj40hhhNhNubh)}(h``->nr_accesses``h]h ->nr_accesses}(hj<0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj40ubh of target regions.}(hj40hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj00hMhj10ubah}(h]h ]h"]h$]h&]uh1j[hj0ubeh}(h]h ]h"]h$]h&]uh1j;hj00hMhjU/ubj<)}(h2``min_age_region`` Minimum age of target regions. h](jB)}(h``min_age_region``h]h)}(hjf0h]hmin_age_region}(hjh0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjd0ubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMhj`0ubj\)}(hhh]h)}(hMinimum age of target regions.h]hMinimum age of target regions.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj{0hMhj|0ubah}(h]h ]h"]h$]h&]uh1j[hj`0ubeh}(h]h ]h"]h$]h&]uh1j;hj{0hMhjU/ubj<)}(h1``max_age_region`` Maximum age of target regions.h](jB)}(h``max_age_region``h]h)}(hj0h]hmax_age_region}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0ubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMhj0ubj\)}(hhh]h)}(hMaximum age of target regions.h]hMaximum age of target regions.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMhj0ubah}(h]h ]h"]h$]h&]uh1j[hj0ubeh}(h]h ]h"]h$]h&]uh1j;hj0hMhjU/ubeh}(h]h ]h"]h$]h&]uh1j6hj /ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhj5hNubj%)}(hhh]h}(h]h ]h"]h$]h&]entries](j1damos_migrate_dests (C struct)c.damos_migrate_destshNtauh1j$hjhhhj5hNubj7)}(hhh](j<)}(hdamos_migrate_destsh]jB)}(hstruct damos_migrate_destsh](jH)}(hjKh]hstruct}(hj0hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj0hhhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMubjZ)}(h h]h }(hj1hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj0hhhj1hMubjk)}(hdamos_migrate_destsh]jq)}(hj0h]hdamos_migrate_dests}(hj1hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1jphj1ubah}(h]h ](jjeh"]h$]h&]hhuh1jjhj0hhhj1hMubeh}(h]h ]h"]h$]h&]hhjuh1jAjjhj0hhhj1hMubah}(h]j0ah ](jjeh"]h$]h&]jj)jhuh1j;hj1hMhj0hhubj)}(hhh]h)}(h.Migration destination nodes and their weights.h]h.Migration destination nodes and their weights.}(hj;1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMhj81hhubah}(h]h ]h"]h$]h&]uh1jhj0hhhj1hMubeh}(h]h ](jstructeh"]h$]h&]jjjjS1jjS1jjjuh1j6hhhjhj5hNubj)}(hXa**Definition**:: struct damos_migrate_dests { unsigned int *node_id_arr; unsigned int *weight_arr; size_t nr_dests; }; **Members** ``node_id_arr`` Array of migration destination node ids. ``weight_arr`` Array of migration weights for **node_id_arr**. ``nr_dests`` Length of the **node_id_arr** and **weight_arr** arrays.h](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hj_1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[1ubh:}(hj[1hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMhjW1ubj)}(hqstruct damos_migrate_dests { unsigned int *node_id_arr; unsigned int *weight_arr; size_t nr_dests; };h]hqstruct damos_migrate_dests { unsigned int *node_id_arr; unsigned int *weight_arr; size_t nr_dests; };}hjx1sbah}(h]h ]h"]h$]h&]hhuh1j hR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMhjW1ubh)}(h **Members**h]j)}(hj1h]hMembers}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMhjW1ubj7)}(hhh](j<)}(h9``node_id_arr`` Array of migration destination node ids. h](jB)}(h``node_id_arr``h]h)}(hj1h]h node_id_arr}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1ubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMhj1ubj\)}(hhh]h)}(h(Array of migration destination node ids.h]h(Array of migration destination node ids.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1hMhj1ubah}(h]h ]h"]h$]h&]uh1j[hj1ubeh}(h]h ]h"]h$]h&]uh1j;hj1hMhj1ubj<)}(h?``weight_arr`` Array of migration weights for **node_id_arr**. h](jB)}(h``weight_arr``h]h)}(hj1h]h weight_arr}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1ubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMhj1ubj\)}(hhh]h)}(h/Array of migration weights for **node_id_arr**.h](hArray of migration weights for }(hj1hhhNhNubj)}(h**node_id_arr**h]h node_id_arr}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubh.}(hj1hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj1hMhj1ubah}(h]h ]h"]h$]h&]uh1j[hj1ubeh}(h]h ]h"]h$]h&]uh1j;hj1hMhj1ubj<)}(hE``nr_dests`` Length of the **node_id_arr** and **weight_arr** arrays.h](jB)}(h ``nr_dests``h]h)}(hj,2h]hnr_dests}(hj.2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj*2ubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMhj&2ubj\)}(hhh]h)}(h8Length of the **node_id_arr** and **weight_arr** arrays.h](hLength of the }(hjE2hhhNhNubj)}(h**node_id_arr**h]h node_id_arr}(hjM2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjE2ubh and }(hjE2hhhNhNubj)}(h**weight_arr**h]h weight_arr}(hj_2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjE2ubh arrays.}(hjE2hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMhjB2ubah}(h]h ]h"]h$]h&]uh1j[hj&2ubeh}(h]h ]h"]h$]h&]uh1j;hjA2hMhj1ubeh}(h]h ]h"]h$]h&]uh1j6hjW1ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhj5hNubh)}(h**Description**h]j)}(hj2h]h Description}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMhjhhubh)}(h**node_id_arr** is an array of the ids of migration destination nodes. **weight_arr** is an array of the weights for those. The weights in **weight_arr** are for nodes in **node_id_arr** of same array index.h](j)}(h**node_id_arr**h]h node_id_arr}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubh8 is an array of the ids of migration destination nodes. }(hj2hhhNhNubj)}(h**weight_arr**h]h weight_arr}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubh7 is an array of the weights for those. The weights in }(hj2hhhNhNubj)}(h**weight_arr**h]h weight_arr}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubh are for nodes in }(hj2hhhNhNubj)}(h**node_id_arr**h]h node_id_arr}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubh of same array index.}(hj2hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMhjhhubj%)}(hhh]h}(h]h ]h"]h$]h&]entries](j1damos (C struct)c.damoshNtauh1j$hjhhhj5hNubj7)}(hhh](j<)}(hdamosh]jB)}(h struct damosh](jH)}(hjKh]hstruct}(hj3hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj3hhhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMubjZ)}(h h]h }(hj#3hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj3hhhj"3hMubjk)}(hdamosh]jq)}(hj3h]hdamos}(hj53hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1jphj13ubah}(h]h ](jjeh"]h$]h&]hhuh1jjhj3hhhj"3hMubeh}(h]h ]h"]h$]h&]hhjuh1jAjjhj 3hhhj"3hMubah}(h]j3ah ](jjeh"]h$]h&]jj)jhuh1j;hj"3hMhj 3hhubj)}(hhh]h)}(h;Represents a Data Access Monitoring-based Operation Scheme.h]h;Represents a Data Access Monitoring-based Operation Scheme.}(hjW3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMhjT3hhubah}(h]h ]h"]h$]h&]uh1jhj 3hhhj"3hMubeh}(h]h ](jstructeh"]h$]h&]jjjjo3jjo3jjjuh1j6hhhjhj5hNubj)}(hX**Definition**:: struct damos { struct damos_access_pattern pattern; enum damos_action action; unsigned long apply_interval_us; struct damos_quota quota; struct damos_watermarks wmarks; union { struct { int target_nid; struct damos_migrate_dests migrate_dests; }; }; struct list_head core_filters; struct list_head ops_filters; void *last_applied; struct damos_stat stat; unsigned long max_nr_snapshots; struct list_head list; }; **Members** ``pattern`` Access pattern of target regions. ``action`` :c:type:`damos_action` to be applied to the target regions. ``apply_interval_us`` The time between applying the **action**. ``quota`` Control the aggressiveness of this scheme. ``wmarks`` Watermarks for automated (in)activation of this scheme. ``{unnamed_union}`` anonymous ``{unnamed_struct}`` anonymous ``target_nid`` Destination node if **action** is "migrate_{hot,cold}". ``migrate_dests`` Destination nodes if **action** is "migrate_{hot,cold}". ``core_filters`` Additional set of :c:type:`struct damos_filter ` for :c:type:`action`. ``ops_filters`` ops layer handling :c:type:`struct damos_filter ` objects list. ``last_applied`` Last **action** applied ops-managing entity. ``stat`` Statistics of this scheme. ``max_nr_snapshots`` Upper limit of nr_snapshots stat. ``list`` List head for siblings.h](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hj{3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjw3ubh:}(hjw3hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhM hjs3ubj)}(hXstruct damos { struct damos_access_pattern pattern; enum damos_action action; unsigned long apply_interval_us; struct damos_quota quota; struct damos_watermarks wmarks; union { struct { int target_nid; struct damos_migrate_dests migrate_dests; }; }; struct list_head core_filters; struct list_head ops_filters; void *last_applied; struct damos_stat stat; unsigned long max_nr_snapshots; struct list_head list; };h]hXstruct damos { struct damos_access_pattern pattern; enum damos_action action; unsigned long apply_interval_us; struct damos_quota quota; struct damos_watermarks wmarks; union { struct { int target_nid; struct damos_migrate_dests migrate_dests; }; }; struct list_head core_filters; struct list_head ops_filters; void *last_applied; struct damos_stat stat; unsigned long max_nr_snapshots; struct list_head list; };}hj3sbah}(h]h ]h"]h$]h&]hhuh1j hR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhM hjs3ubh)}(h **Members**h]j)}(hj3h]hMembers}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhM!hjs3ubj7)}(hhh](j<)}(h.``pattern`` Access pattern of target regions. h](jB)}(h ``pattern``h]h)}(hj3h]hpattern}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj3ubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhM hj3ubj\)}(hhh]h)}(h!Access pattern of target regions.h]h!Access pattern of target regions.}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj3hM hj3ubah}(h]h ]h"]h$]h&]uh1j[hj3ubeh}(h]h ]h"]h$]h&]uh1j;hj3hM hj3ubj<)}(hG``action`` :c:type:`damos_action` to be applied to the target regions. h](jB)}(h ``action``h]h)}(hj3h]haction}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj3ubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhM hj3ubj\)}(hhh]h)}(h;:c:type:`damos_action` to be applied to the target regions.h](h)}(h:c:type:`damos_action`h]h)}(hj4h]h damos_action}(hj4hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhj4ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj  damos_actionuh1hhj4hM hj4ubh% to be applied to the target regions.}(hj4hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj4hM hj4ubah}(h]h ]h"]h$]h&]uh1j[hj3ubeh}(h]h ]h"]h$]h&]uh1j;hj4hM hj3ubj<)}(h@``apply_interval_us`` The time between applying the **action**. h](jB)}(h``apply_interval_us``h]h)}(hjU4h]happly_interval_us}(hjW4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjS4ubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhM hjO4ubj\)}(hhh]h)}(h)The time between applying the **action**.h](hThe time between applying the }(hjn4hhhNhNubj)}(h **action**h]haction}(hjv4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjn4ubh.}(hjn4hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjj4hM hjk4ubah}(h]h ]h"]h$]h&]uh1j[hjO4ubeh}(h]h ]h"]h$]h&]uh1j;hjj4hM hj3ubj<)}(h5``quota`` Control the aggressiveness of this scheme. h](jB)}(h ``quota``h]h)}(hj4h]hquota}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4ubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhM hj4ubj\)}(hhh]h)}(h*Control the aggressiveness of this scheme.h]h*Control the aggressiveness of this scheme.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4hM hj4ubah}(h]h ]h"]h$]h&]uh1j[hj4ubeh}(h]h ]h"]h$]h&]uh1j;hj4hM hj3ubj<)}(hC``wmarks`` Watermarks for automated (in)activation of this scheme. h](jB)}(h ``wmarks``h]h)}(hj4h]hwmarks}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4ubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhM hj4ubj\)}(hhh]h)}(h7Watermarks for automated (in)activation of this scheme.h]h7Watermarks for automated (in)activation of this scheme.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4hM hj4ubah}(h]h ]h"]h$]h&]uh1j[hj4ubeh}(h]h ]h"]h$]h&]uh1j;hj4hM hj3ubj<)}(h``{unnamed_union}`` anonymous h](jB)}(h``{unnamed_union}``h]h)}(hj5h]h{unnamed_union}}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5ubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhKhj 5ubj\)}(hhh]h)}(h anonymoush]h anonymous}(hj+5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj'5hKhj(5ubah}(h]h ]h"]h$]h&]uh1j[hj 5ubeh}(h]h ]h"]h$]h&]uh1j;hj'5hKhj3ubj<)}(h``{unnamed_struct}`` anonymous h](jB)}(h``{unnamed_struct}``h]h)}(hjK5h]h{unnamed_struct}}(hjM5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjI5ubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhKhjE5ubj\)}(hhh]h)}(h anonymoush]h anonymous}(hjd5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj`5hKhja5ubah}(h]h ]h"]h$]h&]uh1j[hjE5ubeh}(h]h ]h"]h$]h&]uh1j;hj`5hKhj3ubj<)}(hG``target_nid`` Destination node if **action** is "migrate_{hot,cold}". h](jB)}(h``target_nid``h]h)}(hj5h]h target_nid}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5ubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMhj~5ubj\)}(hhh]h)}(h7Destination node if **action** is "migrate_{hot,cold}".h](hDestination node if }(hj5hhhNhNubj)}(h **action**h]haction}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubh is “migrate_{hot,cold}”.}(hj5hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj5hMhj5ubah}(h]h ]h"]h$]h&]uh1j[hj~5ubeh}(h]h ]h"]h$]h&]uh1j;hj5hMhj3ubj<)}(hK``migrate_dests`` Destination nodes if **action** is "migrate_{hot,cold}". h](jB)}(h``migrate_dests``h]h)}(hj5h]h migrate_dests}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5ubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMhj5ubj\)}(hhh]h)}(h8Destination nodes if **action** is "migrate_{hot,cold}".h](hDestination nodes if }(hj5hhhNhNubj)}(h **action**h]haction}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubh is “migrate_{hot,cold}”.}(hj5hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj5hMhj5ubah}(h]h ]h"]h$]h&]uh1j[hj5ubeh}(h]h ]h"]h$]h&]uh1j;hj5hMhj3ubj<)}(hf``core_filters`` Additional set of :c:type:`struct damos_filter ` for :c:type:`action`. h](jB)}(h``core_filters``h]h)}(hj6h]h core_filters}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6ubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMhj6ubj\)}(hhh]h)}(hTAdditional set of :c:type:`struct damos_filter ` for :c:type:`action`.h](hAdditional set of }(hj36hhhNhNubh)}(h,:c:type:`struct damos_filter `h]h)}(hj=6h]hstruct damos_filter}(hj?6hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhj;6ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj  damos_filteruh1hhj/6hMhj36ubh for }(hj36hhhNhNubh)}(h:c:type:`action`h]h)}(hj`6h]haction}(hjb6hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhj^6ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj actionuh1hhj/6hMhj36ubh.}(hj36hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj/6hMhj06ubah}(h]h ]h"]h$]h&]uh1j[hj6ubeh}(h]h ]h"]h$]h&]uh1j;hj/6hMhj3ubj<)}(h^``ops_filters`` ops layer handling :c:type:`struct damos_filter ` objects list. h](jB)}(h``ops_filters``h]h)}(hj6h]h ops_filters}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6ubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMhj6ubj\)}(hhh]h)}(hMops layer handling :c:type:`struct damos_filter ` objects list.h](hops layer handling }(hj6hhhNhNubh)}(h,:c:type:`struct damos_filter `h]h)}(hj6h]hstruct damos_filter}(hj6hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhj6ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj  damos_filteruh1hhj6hMhj6ubh objects list.}(hj6hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj6hMhj6ubah}(h]h ]h"]h$]h&]uh1j[hj6ubeh}(h]h ]h"]h$]h&]uh1j;hj6hMhj3ubj<)}(h>``last_applied`` Last **action** applied ops-managing entity. h](jB)}(h``last_applied``h]h)}(hj6h]h last_applied}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6ubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMhj6ubj\)}(hhh]h)}(h,Last **action** applied ops-managing entity.h](hLast }(hj7hhhNhNubj)}(h **action**h]haction}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubh applied ops-managing entity.}(hj7hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj 7hMhj 7ubah}(h]h ]h"]h$]h&]uh1j[hj6ubeh}(h]h ]h"]h$]h&]uh1j;hj 7hMhj3ubj<)}(h$``stat`` Statistics of this scheme. h](jB)}(h``stat``h]h)}(hj@7h]hstat}(hjB7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj>7ubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMhj:7ubj\)}(hhh]h)}(hStatistics of this scheme.h]hStatistics of this scheme.}(hjY7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjU7hMhjV7ubah}(h]h ]h"]h$]h&]uh1j[hj:7ubeh}(h]h ]h"]h$]h&]uh1j;hjU7hMhj3ubj<)}(h7``max_nr_snapshots`` Upper limit of nr_snapshots stat. h](jB)}(h``max_nr_snapshots``h]h)}(hjy7h]hmax_nr_snapshots}(hj{7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjw7ubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMhjs7ubj\)}(hhh]h)}(h!Upper limit of nr_snapshots stat.h]h!Upper limit of nr_snapshots stat.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj7hMhj7ubah}(h]h ]h"]h$]h&]uh1j[hjs7ubeh}(h]h ]h"]h$]h&]uh1j;hj7hMhj3ubj<)}(h ``list`` List head for siblings.h](jB)}(h``list``h]h)}(hj7h]hlist}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj7ubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMhj7ubj\)}(hhh]h)}(hList head for siblings.h]hList head for siblings.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMhj7ubah}(h]h ]h"]h$]h&]uh1j[hj7ubeh}(h]h ]h"]h$]h&]uh1j;hj7hMhj3ubeh}(h]h ]h"]h$]h&]uh1j6hjs3ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhj5hNubh)}(h**Description**h]j)}(hj7h]h Description}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMhjhhubh)}(hFor each **apply_interval_us**, DAMON finds regions which fit in the :c:type:`pattern` and applies :c:type:`action` to those. To avoid consuming too much CPU time or IO resources for the :c:type:`action`, :c:type:`quota` is used.h](h For each }(hj 8hhhNhNubj)}(h**apply_interval_us**h]happly_interval_us}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj 8ubh', DAMON finds regions which fit in the }(hj 8hhhNhNubh)}(h:c:type:`pattern`h]h)}(hj'8h]hpattern}(hj)8hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhj%8ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj patternuh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMhj 8ubh and applies }(hj 8hhhNhNubh)}(h:c:type:`action`h]h)}(hjK8h]haction}(hjM8hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhjI8ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj actionuh1hhjD8hMhj 8ubhH to those. To avoid consuming too much CPU time or IO resources for the }(hj 8hhhNhNubh)}(h:c:type:`action`h]h)}(hjn8h]haction}(hjp8hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhjl8ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj actionuh1hhjD8hMhj 8ubh, }(hj 8hhhNhNubh)}(h:c:type:`quota`h]h)}(hj8h]hquota}(hj8hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhj8ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj quotauh1hhjD8hMhj 8ubh is used.}(hj 8hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjD8hMhjhhubh)}(heIf **apply_interval_us** is zero, :c:type:`damon_attrs->aggr_interval ` is used instead.h](hIf }(hj8hhhNhNubj)}(h**apply_interval_us**h]happly_interval_us}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubh is zero, }(hj8hhhNhNubh)}(h2:c:type:`damon_attrs->aggr_interval `h]h)}(hj8h]hdamon_attrs->aggr_interval}(hj8hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhj8ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj  damon_attrsuh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMhj8ubh is used instead.}(hj8hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj8hMhjhhubh)}(hXTo do the work only when needed, schemes can be activated for specific system situations using :c:type:`wmarks`. If all schemes that registered to the monitoring context are inactive, DAMON stops monitoring either, and just repeatedly checks the watermarks.h](h_To do the work only when needed, schemes can be activated for specific system situations using }(hj8hhhNhNubh)}(h:c:type:`wmarks`h]h)}(hj9h]hwmarks}(hj9hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhj9ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj wmarksuh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMhj8ubh. If all schemes that registered to the monitoring context are inactive, DAMON stops monitoring either, and just repeatedly checks the watermarks.}(hj8hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj#9hMhjhhubh)}(h**migrate_dests** specifies multiple migration target nodes with different weights for migrate_hot or migrate_cold actions. **target_nid** is ignored if this is set.h](j)}(h**migrate_dests**h]h migrate_dests}(hj29hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.9ubhl specifies multiple migration target nodes with different weights for migrate_hot or migrate_cold actions. }(hj.9hhhNhNubj)}(h**target_nid**h]h target_nid}(hjD9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.9ubh is ignored if this is set.}(hj.9hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhM hjhhubh)}(h**target_nid** is used to set the migration target node for migrate_hot or migrate_cold actions, and **migrate_dests** is unset.h](j)}(h**target_nid**h]h target_nid}(hja9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]9ubhW is used to set the migration target node for migrate_hot or migrate_cold actions, and }(hj]9hhhNhNubj)}(h**migrate_dests**h]h migrate_dests}(hjs9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]9ubh is unset.}(hj]9hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhM$hjhhubh)}(hBefore applying the :c:type:`action` to a memory region, :c:type:`struct damon_operations ` implementation could check pages of the region and skip :c:type:`action` to respect :c:type:`core_filters`h](hBefore applying the }(hj9hhhNhNubh)}(h:c:type:`action`h]h)}(hj9h]haction}(hj9hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhj9ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj actionuh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhM'hj9ubh to a memory region, }(hj9hhhNhNubh)}(h4:c:type:`struct damon_operations `h]h)}(hj9h]hstruct damon_operations}(hj9hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhj9ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj damon_operationsuh1hhj9hM'hj9ubh9 implementation could check pages of the region and skip }(hj9hhhNhNubh)}(h:c:type:`action`h]h)}(hj9h]haction}(hj9hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhj9ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj actionuh1hhj9hM'hj9ubh to respect }(hj9hhhNhNubh)}(h:c:type:`core_filters`h]h)}(hj:h]h core_filters}(hj:hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhj9ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj  core_filtersuh1hhj9hM'hj9ubeh}(h]h ]h"]h$]h&]uh1hhj9hM'hjhhubh)}(hXThe minimum entity that **action** can be applied depends on the underlying :c:type:`struct damon_operations `. Since it may not be aligned with the core layer abstract, namely :c:type:`struct damon_region `, :c:type:`struct damon_operations ` could apply **action** to same entity multiple times. Large folios that underlying on multiple :c:type:`struct damon ` region objects could be such examples. The :c:type:`struct damon_operations ` can use **last_applied** to avoid that. DAMOS core logic unsets **last_applied** when each regions walking for applying the scheme is finished.h](hThe minimum entity that }(hj#:hhhNhNubj)}(h **action**h]haction}(hj+:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#:ubh* can be applied depends on the underlying }(hj#:hhhNhNubh)}(h4:c:type:`struct damon_operations `h]h)}(hj?:h]hstruct damon_operations}(hjA:hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhj=:ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj damon_operationsuh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhM+hj#:ubhD. Since it may not be aligned with the core layer abstract, namely }(hj#:hhhNhNubh)}(h,:c:type:`struct damon_region `h]h)}(hjc:h]hstruct damon_region}(hje:hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhja:ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj  damon_regionuh1hhj\:hM+hj#:ubh, }(hj#:hhhNhNubh)}(h4:c:type:`struct damon_operations `h]h)}(hj:h]hstruct damon_operations}(hj:hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhj:ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj damon_operationsuh1hhj\:hM+hj#:ubh could apply }(hj#:hhhNhNubj)}(h **action**h]haction}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#:ubhJ to same entity multiple times. Large folios that underlying on multiple }(hj#:hhhNhNubh)}(h:c:type:`struct damon `h]h)}(hj:h]h struct damon}(hj:hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhj:ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj damonuh1hhj\:hM+hj#:ubh- region objects could be such examples. The }(hj#:hhhNhNubh)}(h4:c:type:`struct damon_operations `h]h)}(hj:h]hstruct damon_operations}(hj:hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhj:ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj damon_operationsuh1hhj\:hM+hj#:ubh can use }(hj#:hhhNhNubj)}(h**last_applied**h]h last_applied}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#:ubh) to avoid that. DAMOS core logic unsets }(hj#:hhhNhNubj)}(h**last_applied**h]h last_applied}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#:ubh? when each regions walking for applying the scheme is finished.}(hj#:hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj\:hM+hjhhubh)}(hNAfter applying the :c:type:`action` to each region, :c:type:`stat` is updated.h](hAfter applying the }(hj);hhhNhNubh)}(h:c:type:`action`h]h)}(hj3;h]haction}(hj5;hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhj1;ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj actionuh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhM4hj);ubh to each region, }(hj);hhhNhNubh)}(h:c:type:`stat`h]h)}(hjW;h]hstat}(hjY;hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhjU;ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj statuh1hhjP;hM4hj);ubh is updated.}(hj);hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjP;hM4hjhhubh)}(hIf :c:type:`max_nr_snapshots` is set as non-zero and :c:type:`stat.nr_snapshots ` be same to or greater than it, the scheme is deactivated.h](hIf }(hj~;hhhNhNubh)}(h:c:type:`max_nr_snapshots`h]h)}(hj;h]hmax_nr_snapshots}(hj;hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhj;ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj max_nr_snapshotsuh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhM6hj~;ubh is set as non-zero and }(hj~;hhhNhNubh)}(h":c:type:`stat.nr_snapshots `h]h)}(hj;h]hstat.nr_snapshots}(hj;hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhj;ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj statuh1hhj;hM6hj~;ubh: be same to or greater than it, the scheme is deactivated.}(hj~;hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj;hM6hjhhubj%)}(hhh]h}(h]h ]h"]h$]h&]entries](j1damon_ops_id (C enum)c.damon_ops_idhNtauh1j$hjhhhj5hNubj7)}(hhh](j<)}(h damon_ops_idh]jB)}(henum damon_ops_idh](jH)}(hj h]henum}(hj;hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj;hhhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhM<ubjZ)}(h h]h }(hj;hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj;hhhj;hM<ubjk)}(h damon_ops_idh]jq)}(hj;h]h damon_ops_id}(hj <hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1jphj<ubah}(h]h ](jjeh"]h$]h&]hhuh1jjhj;hhhj;hM<ubeh}(h]h ]h"]h$]h&]hhjuh1jAjjhj;hhhj;hM<ubah}(h]j;ah ](jjeh"]h$]h&]jj)jhuh1j;hj;hM<hj;hhubj)}(hhh]h)}(h8Identifier for each monitoring operations implementationh]h8Identifier for each monitoring operations implementation}(hj.<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhM`hj+<hhubah}(h]h ]h"]h$]h&]uh1jhj;hhhj;hM<ubeh}(h]h ](jenumeh"]h$]h&]jjjjF<jjF<jjjuh1j6hhhjhj5hNubj)}(hXE**Constants** ``DAMON_OPS_VADDR`` Monitoring operations for virtual address spaces ``DAMON_OPS_FVADDR`` Monitoring operations for only fixed ranges of virtual address spaces ``DAMON_OPS_PADDR`` Monitoring operations for the physical address space ``NR_DAMON_OPS`` Number of monitoring operations implementationsh](h)}(h **Constants**h]j)}(hjP<h]h Constants}(hjR<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjN<ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMdhjJ<ubj7)}(hhh](j<)}(hE``DAMON_OPS_VADDR`` Monitoring operations for virtual address spaces h](jB)}(h``DAMON_OPS_VADDR``h]h)}(hjo<h]hDAMON_OPS_VADDR}(hjq<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjm<ubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMghji<ubj\)}(hhh]h)}(h0Monitoring operations for virtual address spacesh]h0Monitoring operations for virtual address spaces}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj<hMghj<ubah}(h]h ]h"]h$]h&]uh1j[hji<ubeh}(h]h ]h"]h$]h&]uh1j;hj<hMghjf<ubj<)}(h[``DAMON_OPS_FVADDR`` Monitoring operations for only fixed ranges of virtual address spaces h](jB)}(h``DAMON_OPS_FVADDR``h]h)}(hj<h]hDAMON_OPS_FVADDR}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj<ubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMkhj<ubj\)}(hhh]h)}(hEMonitoring operations for only fixed ranges of virtual address spacesh]hEMonitoring operations for only fixed ranges of virtual address spaces}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMjhj<ubah}(h]h ]h"]h$]h&]uh1j[hj<ubeh}(h]h ]h"]h$]h&]uh1j;hj<hMkhjf<ubj<)}(hI``DAMON_OPS_PADDR`` Monitoring operations for the physical address space h](jB)}(h``DAMON_OPS_PADDR``h]h)}(hj<h]hDAMON_OPS_PADDR}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj<ubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMnhj<ubj\)}(hhh]h)}(h4Monitoring operations for the physical address spaceh]h4Monitoring operations for the physical address space}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj<hMnhj<ubah}(h]h ]h"]h$]h&]uh1j[hj<ubeh}(h]h ]h"]h$]h&]uh1j;hj<hMnhjf<ubj<)}(h@``NR_DAMON_OPS`` Number of monitoring operations implementationsh](jB)}(h``NR_DAMON_OPS``h]h)}(hj=h]h NR_DAMON_OPS}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj=ubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMphj=ubj\)}(hhh]h)}(h/Number of monitoring operations implementationsh]h/Number of monitoring operations implementations}(hj4=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMqhj1=ubah}(h]h ]h"]h$]h&]uh1j[hj=ubeh}(h]h ]h"]h$]h&]uh1j;hj0=hMphjf<ubeh}(h]h ]h"]h$]h&]uh1j6hjJ<ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhj5hNubj%)}(hhh]h}(h]h ]h"]h$]h&]entries](j1damon_operations (C struct)c.damon_operationshNtauh1j$hjhhhj5hNubj7)}(hhh](j<)}(hdamon_operationsh]jB)}(hstruct damon_operationsh](jH)}(hjKh]hstruct}(hju=hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjq=hhhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMvubjZ)}(h h]h }(hj=hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjq=hhhj=hMvubjk)}(hdamon_operationsh]jq)}(hjo=h]hdamon_operations}(hj=hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1jphj=ubah}(h]h ](jjeh"]h$]h&]hhuh1jjhjq=hhhj=hMvubeh}(h]h ]h"]h$]h&]hhjuh1jAjjhjm=hhhj=hMvubah}(h]jh=ah ](jjeh"]h$]h&]jj)jhuh1j;hj=hMvhjj=hhubj)}(hhh]h)}(h*Monitoring operations for given use cases.h]h*Monitoring operations for given use cases.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMphj=hhubah}(h]h ]h"]h$]h&]uh1jhjj=hhhj=hMvubeh}(h]h ](jstructeh"]h$]h&]jjjj=jj=jjjuh1j6hhhjhj5hNubj)}(hX5**Definition**:: struct damon_operations { enum damon_ops_id id; void (*init)(struct damon_ctx *context); void (*update)(struct damon_ctx *context); void (*prepare_access_checks)(struct damon_ctx *context); unsigned int (*check_accesses)(struct damon_ctx *context); void (*apply_probes)(struct damon_ctx *context); int (*get_scheme_score)(struct damon_ctx *context, struct damon_region *r, struct damos *scheme); unsigned long (*apply_scheme)(struct damon_ctx *context, struct damon_target *t, struct damon_region *r, struct damos *scheme, unsigned long *sz_filter_passed); bool (*target_valid)(struct damon_target *t); void (*cleanup_target)(struct damon_target *t); }; **Members** ``id`` Identifier of this operations set. ``init`` Initialize operations-related data structures. ``update`` Update operations-related data structures. ``prepare_access_checks`` Prepare next access check of target regions. ``check_accesses`` Check the accesses to target regions. ``apply_probes`` Apply probes for each region. ``get_scheme_score`` Get the score of a region for a scheme. ``apply_scheme`` Apply a DAMON-based operation scheme. ``target_valid`` Determine if the target is valid. ``cleanup_target`` Clean up each target before deallocation.h](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubh:}(hj=hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMthj=ubj)}(hXstruct damon_operations { enum damon_ops_id id; void (*init)(struct damon_ctx *context); void (*update)(struct damon_ctx *context); void (*prepare_access_checks)(struct damon_ctx *context); unsigned int (*check_accesses)(struct damon_ctx *context); void (*apply_probes)(struct damon_ctx *context); int (*get_scheme_score)(struct damon_ctx *context, struct damon_region *r, struct damos *scheme); unsigned long (*apply_scheme)(struct damon_ctx *context, struct damon_target *t, struct damon_region *r, struct damos *scheme, unsigned long *sz_filter_passed); bool (*target_valid)(struct damon_target *t); void (*cleanup_target)(struct damon_target *t); };h]hXstruct damon_operations { enum damon_ops_id id; void (*init)(struct damon_ctx *context); void (*update)(struct damon_ctx *context); void (*prepare_access_checks)(struct damon_ctx *context); unsigned int (*check_accesses)(struct damon_ctx *context); void (*apply_probes)(struct damon_ctx *context); int (*get_scheme_score)(struct damon_ctx *context, struct damon_region *r, struct damos *scheme); unsigned long (*apply_scheme)(struct damon_ctx *context, struct damon_target *t, struct damon_region *r, struct damos *scheme, unsigned long *sz_filter_passed); bool (*target_valid)(struct damon_target *t); void (*cleanup_target)(struct damon_target *t); };}hj=sbah}(h]h ]h"]h$]h&]hhuh1j hR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMvhj=ubh)}(h **Members**h]j)}(hj>h]hMembers}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMhj=ubj7)}(hhh](j<)}(h*``id`` Identifier of this operations set. h](jB)}(h``id``h]h)}(hj$>h]hid}(hj&>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj">ubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMshj>ubj\)}(hhh]h)}(h"Identifier of this operations set.h]h"Identifier of this operations set.}(hj=>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9>hMshj:>ubah}(h]h ]h"]h$]h&]uh1j[hj>ubeh}(h]h ]h"]h$]h&]uh1j;hj9>hMshj>ubj<)}(h8``init`` Initialize operations-related data structures. h](jB)}(h``init``h]h)}(hj]>h]hinit}(hj_>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj[>ubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMthjW>ubj\)}(hhh]h)}(h.Initialize operations-related data structures.h]h.Initialize operations-related data structures.}(hjv>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjr>hMthjs>ubah}(h]h ]h"]h$]h&]uh1j[hjW>ubeh}(h]h ]h"]h$]h&]uh1j;hjr>hMthj>ubj<)}(h6``update`` Update operations-related data structures. h](jB)}(h ``update``h]h)}(hj>h]hupdate}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj>ubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMuhj>ubj\)}(hhh]h)}(h*Update operations-related data structures.h]h*Update operations-related data structures.}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj>hMuhj>ubah}(h]h ]h"]h$]h&]uh1j[hj>ubeh}(h]h ]h"]h$]h&]uh1j;hj>hMuhj>ubj<)}(hG``prepare_access_checks`` Prepare next access check of target regions. h](jB)}(h``prepare_access_checks``h]h)}(hj>h]hprepare_access_checks}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj>ubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMvhj>ubj\)}(hhh]h)}(h,Prepare next access check of target regions.h]h,Prepare next access check of target regions.}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj>hMvhj>ubah}(h]h ]h"]h$]h&]uh1j[hj>ubeh}(h]h ]h"]h$]h&]uh1j;hj>hMvhj>ubj<)}(h9``check_accesses`` Check the accesses to target regions. h](jB)}(h``check_accesses``h]h)}(hj?h]hcheck_accesses}(hj ?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj?ubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMwhj?ubj\)}(hhh]h)}(h%Check the accesses to target regions.h]h%Check the accesses to target regions.}(hj!?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj?hMwhj?ubah}(h]h ]h"]h$]h&]uh1j[hj?ubeh}(h]h ]h"]h$]h&]uh1j;hj?hMwhj>ubj<)}(h/``apply_probes`` Apply probes for each region. h](jB)}(h``apply_probes``h]h)}(hjA?h]h apply_probes}(hjC?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj??ubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMxhj;?ubj\)}(hhh]h)}(hApply probes for each region.h]hApply probes for each region.}(hjZ?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjV?hMxhjW?ubah}(h]h ]h"]h$]h&]uh1j[hj;?ubeh}(h]h ]h"]h$]h&]uh1j;hjV?hMxhj>ubj<)}(h=``get_scheme_score`` Get the score of a region for a scheme. h](jB)}(h``get_scheme_score``h]h)}(hjz?h]hget_scheme_score}(hj|?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjx?ubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMyhjt?ubj\)}(hhh]h)}(h'Get the score of a region for a scheme.h]h'Get the score of a region for a scheme.}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj?hMyhj?ubah}(h]h ]h"]h$]h&]uh1j[hjt?ubeh}(h]h ]h"]h$]h&]uh1j;hj?hMyhj>ubj<)}(h7``apply_scheme`` Apply a DAMON-based operation scheme. h](jB)}(h``apply_scheme``h]h)}(hj?h]h apply_scheme}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj?ubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMzhj?ubj\)}(hhh]h)}(h%Apply a DAMON-based operation scheme.h]h%Apply a DAMON-based operation scheme.}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj?hMzhj?ubah}(h]h ]h"]h$]h&]uh1j[hj?ubeh}(h]h ]h"]h$]h&]uh1j;hj?hMzhj>ubj<)}(h3``target_valid`` Determine if the target is valid. h](jB)}(h``target_valid``h]h)}(hj?h]h target_valid}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj?ubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhM{hj?ubj\)}(hhh]h)}(h!Determine if the target is valid.h]h!Determine if the target is valid.}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj@hM{hj@ubah}(h]h ]h"]h$]h&]uh1j[hj?ubeh}(h]h ]h"]h$]h&]uh1j;hj@hM{hj>ubj<)}(h<``cleanup_target`` Clean up each target before deallocation.h](jB)}(h``cleanup_target``h]h)}(hj%@h]hcleanup_target}(hj'@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#@ubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhM{hj@ubj\)}(hhh]h)}(h)Clean up each target before deallocation.h]h)Clean up each target before deallocation.}(hj>@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhM|hj;@ubah}(h]h ]h"]h$]h&]uh1j[hj@ubeh}(h]h ]h"]h$]h&]uh1j;hj:@hM{hj>ubeh}(h]h ]h"]h$]h&]uh1j6hj=ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhj5hNubh)}(h**Description**h]j)}(hjh@h]h Description}(hjj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjf@ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMhjhhubh)}(hX8DAMON can be extended for various address spaces and usages. For this, users should register the low level operations for their target address space and usecase via the :c:type:`damon_ctx.ops `. Then, the monitoring thread (:c:type:`damon_ctx.kdamond `) calls **init** and **prepare_access_checks** before starting the monitoring, **update** after each :c:type:`damon_attrs.ops_update_interval `, and **check_accesses**, **target_valid** and **prepare_access_checks** after each :c:type:`damon_attrs.sample_interval `.h](hDAMON can be extended for various address spaces and usages. For this, users should register the low level operations for their target address space and usecase via the }(hj~@hhhNhNubh)}(h#:c:type:`damon_ctx.ops `h]h)}(hj@h]h damon_ctx.ops}(hj@hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhj@ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj  damon_ctxuh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhM|hj~@ubh . Then, the monitoring thread (}(hj~@hhhNhNubh)}(h':c:type:`damon_ctx.kdamond `h]h)}(hj@h]hdamon_ctx.kdamond}(hj@hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhj@ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj  damon_ctxuh1hhj@hM|hj~@ubh) calls }(hj~@hhhNhNubj)}(h**init**h]hinit}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~@ubh and }(hj~@hhhNhNubj)}(h**prepare_access_checks**h]hprepare_access_checks}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~@ubh! before starting the monitoring, }(hj~@hhhNhNubj)}(h **update**h]hupdate}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~@ubh after each }(hj~@hhhNhNubh)}(h7:c:type:`damon_attrs.ops_update_interval `h]h)}(hjAh]hdamon_attrs.ops_update_interval}(hjAhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhjAubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj  damon_attrsuh1hhj@hM|hj~@ubh, and }(hj~@hhhNhNubj)}(h**check_accesses**h]hcheck_accesses}(hj&AhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~@ubh, }(hj~@hhhNhNubj)}(h**target_valid**h]h target_valid}(hj8AhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~@ubh and }hj~@sbj)}(h**prepare_access_checks**h]hprepare_access_checks}(hjJAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~@ubh after each }(hj~@hhhNhNubh)}(h3:c:type:`damon_attrs.sample_interval `h]h)}(hj^Ah]hdamon_attrs.sample_interval}(hj`AhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhj\Aubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj  damon_attrsuh1hhj@hM|hj~@ubh.}(hj~@hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj@hM|hjhhubh)}(hXEach :c:type:`struct damon_operations ` instance having valid **id** can be registered via damon_register_ops() and selected by damon_select_ops() later. **init** should initialize operations-related data structures. For example, this could be used to construct proper monitoring target regions and link those to **damon_ctx.adaptive_targets**. **update** should update the operations-related data structures. For example, this could be used to update monitoring target regions for current status. **prepare_access_checks** should manipulate the monitoring regions to be prepared for the next access check. **check_accesses** should check the accesses to each region that made after the last preparation and update the number of observed accesses of each region. It should also return max number of observed accesses that made as a result of its update. The value will be used for regions adjustment threshold. **apply_probes** should apply the data attribute probes to each region and accordingly update the probe hits counter of the region. **get_scheme_score** should return the priority score of a region for a scheme as an integer in [0, :c:type:`DAMOS_MAX_SCORE`]. **apply_scheme** is called from **kdamond** when a region for user provided DAMON-based operation scheme is found. It should apply the scheme's action to the region and return bytes of the region that the action is successfully applied. It should also report how many bytes of the region has passed filters (:c:type:`struct damos_filter `) that handled by itself. **target_valid** should check whether the target is still valid for the monitoring. **cleanup_target** is called before the target will be deallocated.h](hEach }(hjAhhhNhNubh)}(h4:c:type:`struct damon_operations `h]h)}(hjAh]hstruct damon_operations}(hjAhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhjAubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj damon_operationsuh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMhjAubh instance having valid }(hjAhhhNhNubj)}(h**id**h]hid}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubhV can be registered via damon_register_ops() and selected by damon_select_ops() later. }(hjAhhhNhNubj)}(h**init**h]hinit}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubh should initialize operations-related data structures. For example, this could be used to construct proper monitoring target regions and link those to }(hjAhhhNhNubj)}(h**damon_ctx.adaptive_targets**h]hdamon_ctx.adaptive_targets}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubh. }(hjAhhhNhNubj)}(h **update**h]hupdate}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubh should update the operations-related data structures. For example, this could be used to update monitoring target regions for current status. }(hjAhhhNhNubj)}(h**prepare_access_checks**h]hprepare_access_checks}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubhT should manipulate the monitoring regions to be prepared for the next access check. }(hjAhhhNhNubj)}(h**check_accesses**h]hcheck_accesses}(hj BhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubhX should check the accesses to each region that made after the last preparation and update the number of observed accesses of each region. It should also return max number of observed accesses that made as a result of its update. The value will be used for regions adjustment threshold. }(hjAhhhNhNubj)}(h**apply_probes**h]h apply_probes}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubht should apply the data attribute probes to each region and accordingly update the probe hits counter of the region. }(hjAhhhNhNubj)}(h**get_scheme_score**h]hget_scheme_score}(hj/BhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubhP should return the priority score of a region for a scheme as an integer in [0, }(hjAhhhNhNubh)}(h:c:type:`DAMOS_MAX_SCORE`h]h)}(hjCBh]hDAMOS_MAX_SCORE}(hjEBhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhjABubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj DAMOS_MAX_SCOREuh1hhjAhMhjAubh]. }(hjAhhhNhNubj)}(h**apply_scheme**h]h apply_scheme}(hjdBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubh is called from }(hjAhhhNhNubj)}(h **kdamond**h]hkdamond}(hjvBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubhX  when a region for user provided DAMON-based operation scheme is found. It should apply the scheme’s action to the region and return bytes of the region that the action is successfully applied. It should also report how many bytes of the region has passed filters (}(hjAhhhNhNubh)}(h,:c:type:`struct damos_filter `h]h)}(hjBh]hstruct damos_filter}(hjBhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhjBubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj  damos_filteruh1hhjAhMhjAubh) that handled by itself. }(hjAhhhNhNubj)}(h**target_valid**h]h target_valid}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubhD should check whether the target is still valid for the monitoring. }(hjAhhhNhNubj)}(h**cleanup_target**h]hcleanup_target}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubh1 is called before the target will be deallocated.}(hjAhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjAhMhjhhubj%)}(hhh]h}(h]h ]h"]h$]h&]entries](j1damon_intervals_goal (C struct)c.damon_intervals_goalhNtauh1j$hjhhhj5hNubj7)}(hhh](j<)}(hdamon_intervals_goalh]jB)}(hstruct damon_intervals_goalh](jH)}(hjKh]hstruct}(hjBhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjBhhhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMubjZ)}(h h]h }(hjBhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjBhhhjBhMubjk)}(hdamon_intervals_goalh]jq)}(hjBh]hdamon_intervals_goal}(hjChhhNhNubah}(h]h ]j|ah"]h$]h&]uh1jphj Cubah}(h]h ](jjeh"]h$]h&]hhuh1jjhjBhhhjBhMubeh}(h]h ]h"]h$]h&]hhjuh1jAjjhjBhhhjBhMubah}(h]jBah ](jjeh"]h$]h&]jj)jhuh1j;hjBhMhjBhhubj)}(hhh]h)}(h&Monitoring intervals auto-tuning goal.h]h&Monitoring intervals auto-tuning goal.}(hj0ChhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMhj-Chhubah}(h]h ]h"]h$]h&]uh1jhjBhhhjBhMubeh}(h]h ](jstructeh"]h$]h&]jjjjHCjjHCjjjuh1j6hhhjhj5hNubj)}(hX**Definition**:: struct damon_intervals_goal { unsigned long access_bp; unsigned long aggrs; unsigned long min_sample_us; unsigned long max_sample_us; }; **Members** ``access_bp`` Access events observation ratio to achieve in bp. ``aggrs`` Number of aggregations to achieve **access_bp** within. ``min_sample_us`` Minimum resulting sampling interval in microseconds. ``max_sample_us`` Maximum resulting sampling interval in microseconds.h](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjTChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPCubh:}(hjPChhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMhjLCubj)}(hstruct damon_intervals_goal { unsigned long access_bp; unsigned long aggrs; unsigned long min_sample_us; unsigned long max_sample_us; };h]hstruct damon_intervals_goal { unsigned long access_bp; unsigned long aggrs; unsigned long min_sample_us; unsigned long max_sample_us; };}hjmCsbah}(h]h ]h"]h$]h&]hhuh1j hR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMhjLCubh)}(h **Members**h]j)}(hj~Ch]hMembers}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|Cubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMhjLCubj7)}(hhh](j<)}(h@``access_bp`` Access events observation ratio to achieve in bp. h](jB)}(h ``access_bp``h]h)}(hjCh]h access_bp}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhjCubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMhjCubj\)}(hhh]h)}(h1Access events observation ratio to achieve in bp.h]h1Access events observation ratio to achieve in bp.}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhjChMhjCubah}(h]h ]h"]h$]h&]uh1j[hjCubeh}(h]h ]h"]h$]h&]uh1j;hjChMhjCubj<)}(hB``aggrs`` Number of aggregations to achieve **access_bp** within. h](jB)}(h ``aggrs``h]h)}(hjCh]haggrs}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhjCubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMhjCubj\)}(hhh]h)}(h7Number of aggregations to achieve **access_bp** within.h](h"Number of aggregations to achieve }(hjChhhNhNubj)}(h **access_bp**h]h access_bp}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubh within.}(hjChhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjChMhjCubah}(h]h ]h"]h$]h&]uh1j[hjCubeh}(h]h ]h"]h$]h&]uh1j;hjChMhjCubj<)}(hG``min_sample_us`` Minimum resulting sampling interval in microseconds. h](jB)}(h``min_sample_us``h]h)}(hj!Dh]h min_sample_us}(hj#DhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMhjDubj\)}(hhh]h)}(h4Minimum resulting sampling interval in microseconds.h]h4Minimum resulting sampling interval in microseconds.}(hj:DhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6DhMhj7Dubah}(h]h ]h"]h$]h&]uh1j[hjDubeh}(h]h ]h"]h$]h&]uh1j;hj6DhMhjCubj<)}(hF``max_sample_us`` Maximum resulting sampling interval in microseconds.h](jB)}(h``max_sample_us``h]h)}(hjZDh]h max_sample_us}(hj\DhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjXDubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMhjTDubj\)}(hhh]h)}(h4Maximum resulting sampling interval in microseconds.h]h4Maximum resulting sampling interval in microseconds.}(hjsDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMhjpDubah}(h]h ]h"]h$]h&]uh1j[hjTDubeh}(h]h ]h"]h$]h&]uh1j;hjoDhMhjCubeh}(h]h ]h"]h$]h&]uh1j6hjLCubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhj5hNubh)}(h**Description**h]j)}(hjDh]h Description}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMhjhhubh)}(hX'DAMON automatically tunes :c:type:`damon_attrs->sample_interval ` and :c:type:`damon_attrs->aggr_interval ` aiming the ratio in bp (1/10,000) of DAMON-observed access events to theoretical maximum amount within **aggrs** aggregations be same to **access_bp**. The logic increases :c:type:`damon_attrs->aggr_interval ` and :c:type:`damon_attrs->sampling_interval ` in same ratio if the current access events observation ratio is lower than the target for each **aggrs** aggregations, and vice versa.h](hDAMON automatically tunes }(hjDhhhNhNubh)}(h4:c:type:`damon_attrs->sample_interval `h]h)}(hjDh]hdamon_attrs->sample_interval}(hjDhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhjDubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj  damon_attrsuh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMhjDubh and }(hjDhhhNhNubh)}(h2:c:type:`damon_attrs->aggr_interval `h]h)}(hjDh]hdamon_attrs->aggr_interval}(hjDhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhjDubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj  damon_attrsuh1hhjDhMhjDubhh aiming the ratio in bp (1/10,000) of DAMON-observed access events to theoretical maximum amount within }(hjDhhhNhNubj)}(h **aggrs**h]haggrs}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubh aggregations be same to }(hjDhhhNhNubj)}(h **access_bp**h]h access_bp}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubh. The logic increases }(hjDhhhNhNubh)}(h2:c:type:`damon_attrs->aggr_interval `h]h)}(hj(Eh]hdamon_attrs->aggr_interval}(hj*EhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhj&Eubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj  damon_attrsuh1hhjDhMhjDubh and }(hjDhhhNhNubh)}(h6:c:type:`damon_attrs->sampling_interval `h]h)}(hjKEh]hdamon_attrs->sampling_interval}(hjMEhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhjIEubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj  damon_attrsuh1hhjDhMhjDubh` in same ratio if the current access events observation ratio is lower than the target for each }(hjDhhhNhNubj)}(h **aggrs**h]haggrs}(hjlEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubh aggregations, and vice versa.}(hjDhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjDhMhjhhubh)}(hNIf **aggrs** is zero, the tuning is disabled and hence this struct is ignored.h](hIf }(hjEhhhNhNubj)}(h **aggrs**h]haggrs}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubhB is zero, the tuning is disabled and hence this struct is ignored.}(hjEhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMhjhhubj%)}(hhh]h}(h]h ]h"]h$]h&]entries](j1damon_filter_type (C enum)c.damon_filter_typehNtauh1j$hjhhhj5hNubj7)}(hhh](j<)}(hdamon_filter_typeh]jB)}(henum damon_filter_typeh](jH)}(hj h]henum}(hjEhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjEhhhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMubjZ)}(h h]h }(hjEhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjEhhhjEhMubjk)}(hdamon_filter_typeh]jq)}(hjEh]hdamon_filter_type}(hjEhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1jphjEubah}(h]h ](jjeh"]h$]h&]hhuh1jjhjEhhhjEhMubeh}(h]h ]h"]h$]h&]hhjuh1jAjjhjEhhhjEhMubah}(h]jEah ](jjeh"]h$]h&]jj)jhuh1j;hjEhMhjEhhubj)}(hhh]h)}(h4Type of :c:type:`struct damon_filter `h](hType of }(hjFhhhNhNubh)}(h,:c:type:`struct damon_filter `h]h)}(hj Fh]hstruct damon_filter}(hj FhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhjFubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjj)}j ]j%)}j%jEsbc.damon_filter_typeasbj  damon_filteruh1hhj%hKhjFubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMhjEhhubah}(h]h ]h"]h$]h&]uh1jhjEhhhjEhMubeh}(h]h ](jenumeh"]h$]h&]jjjj>Fjj>Fjjjuh1j6hhhjhj5hNubj)}(hs**Constants** ``DAMON_FILTER_TYPE_ANON`` Anonymous pages. ``DAMON_FILTER_TYPE_MEMCG`` Specific memcg's pages.h](h)}(h **Constants**h]j)}(hjHFh]h Constants}(hjJFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFFubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMhjBFubj7)}(hhh](j<)}(h,``DAMON_FILTER_TYPE_ANON`` Anonymous pages. h](jB)}(h``DAMON_FILTER_TYPE_ANON``h]h)}(hjgFh]hDAMON_FILTER_TYPE_ANON}(hjiFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjeFubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMhjaFubj\)}(hhh]h)}(hAnonymous pages.h]hAnonymous pages.}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj|FhMhj}Fubah}(h]h ]h"]h$]h&]uh1j[hjaFubeh}(h]h ]h"]h$]h&]uh1j;hj|FhMhj^Fubj<)}(h3``DAMON_FILTER_TYPE_MEMCG`` Specific memcg's pages.h](jB)}(h``DAMON_FILTER_TYPE_MEMCG``h]h)}(hjFh]hDAMON_FILTER_TYPE_MEMCG}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMhjFubj\)}(hhh]h)}(hSpecific memcg's pages.h]hSpecific memcg’s pages.}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMhjFubah}(h]h ]h"]h$]h&]uh1j[hjFubeh}(h]h ]h"]h$]h&]uh1j;hjFhMhj^Fubeh}(h]h ]h"]h$]h&]uh1j6hjBFubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhj5hNubj%)}(hhh]h}(h]h ]h"]h$]h&]entries](j1damon_filter (C struct)c.damon_filterhNtauh1j$hjhhhj5hNubj7)}(hhh](j<)}(h damon_filterh]jB)}(hstruct damon_filterh](jH)}(hjKh]hstruct}(hjFhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjFhhhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMubjZ)}(h h]h }(hjGhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjFhhhjGhMubjk)}(h damon_filterh]jq)}(hjFh]h damon_filter}(hjGhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1jphjGubah}(h]h ](jjeh"]h$]h&]hhuh1jjhjFhhhjGhMubeh}(h]h ]h"]h$]h&]hhjuh1jAjjhjFhhhjGhMubah}(h]jFah ](jjeh"]h$]h&]jj)jhuh1j;hjGhMhjFhhubj)}(hhh]h)}(hCDAMON region filter for :c:type:`struct damon_probe `.h](hDAMON region filter for }(hj`h]h)}(hjFGh]hstruct damon_probe}(hjHGhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhjDGubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjj)}j ]j%)}j%jFsbc.damon_filterasbj  damon_probeuh1hhj%hKhjnr_accesses ` for **aggr_interval** time. For each **aggr_interval**, the count is reset. DAMON also checks whether the target memory regions need update (e.g., by ``mmap()`` calls from the application, in case of virtual memory monitoring) and applies the changes for each **ops_update_interval**. All time intervals are in micro-seconds. Please refer to :c:type:`struct damon_operations ` and :c:type:`struct damon_call_control ` for more detail.h](h For each }(hjLhhhNhNubj)}(h**sample_interval**h]hsample_interval}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubhF, DAMON checks whether each region is accessed or not during the last }(hjLhhhNhNubj)}(h**sample_interval**h]hsample_interval}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubhK. If such access is found, DAMON aggregates the information by increasing }(hjLhhhNhNubh)}(h2:c:type:`damon_region->nr_accesses `h]h)}(hjMh]hdamon_region->nr_accesses}(hjMhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhjMubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj  damon_regionuh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMhjLubh for }(hjLhhhNhNubj)}(h**aggr_interval**h]h aggr_interval}(hj7MhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubh time. For each }(hjLhhhNhNubj)}(h**aggr_interval**h]h aggr_interval}(hjIMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubha, the count is reset. DAMON also checks whether the target memory regions need update (e.g., by }(hjLhhhNhNubh)}(h ``mmap()``h]hmmap()}(hj[MhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjLubhd calls from the application, in case of virtual memory monitoring) and applies the changes for each }(hjLhhhNhNubj)}(h**ops_update_interval**h]hops_update_interval}(hjmMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubh=. All time intervals are in micro-seconds. Please refer to }(hjLhhhNhNubh)}(h4:c:type:`struct damon_operations `h]h)}(hjMh]hstruct damon_operations}(hjMhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhjMubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj damon_operationsuh1hhj2MhMhjLubh and }(hjLhhhNhNubh)}(h8:c:type:`struct damon_call_control `h]h)}(hjMh]hstruct damon_call_control}(hjMhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhjMubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj damon_call_controluh1hhj2MhMhjLubh for more detail.}(hjLhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj2MhMhjhhubj%)}(hhh]h}(h]h ]h"]h$]h&]entries](j1damon_ctx (C struct) c.damon_ctxhNtauh1j$hjhhhj5hNubj7)}(hhh](j<)}(h damon_ctxh]jB)}(hstruct damon_ctxh](jH)}(hjKh]hstruct}(hjMhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjMhhhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhM$ubjZ)}(h h]h }(hjMhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjMhhhjMhM$ubjk)}(h damon_ctxh]jq)}(hjMh]h damon_ctx}(hjNhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1jphjNubah}(h]h ](jjeh"]h$]h&]hhuh1jjhjMhhhjMhM$ubeh}(h]h ]h"]h$]h&]hhjuh1jAjjhjMhhhjMhM$ubah}(h]jMah ](jjeh"]h$]h&]jj)jhuh1j;hjMhM$hjMhhubj)}(hhh]h)}(hRepresents a context for each monitoring. This is the main interface that allows users to set the attributes and get the results of the monitoring.h]hRepresents a context for each monitoring. This is the main interface that allows users to set the attributes and get the results of the monitoring.}(hj&NhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhM7hj#Nhhubah}(h]h ]h"]h$]h&]uh1jhjMhhhjMhM$ubeh}(h]h ](jstructeh"]h$]h&]jjjj>Njj>Njjjuh1j6hhhjhj5hNubj)}(hXd**Definition**:: struct damon_ctx { struct damon_attrs attrs; struct damon_operations ops; struct list_head probes; unsigned long addr_unit; unsigned long min_region_sz; bool pause; struct list_head adaptive_targets; struct list_head schemes; struct rnd_state rnd_state; }; **Members** ``attrs`` Monitoring attributes for accuracy/overhead control. ``ops`` Set of monitoring operations for given use cases. ``probes`` Head of probes (:c:type:`damon_probe`) list. ``addr_unit`` Scale factor for core to ops address conversion. ``min_region_sz`` Minimum region size. ``pause`` Pause kdamond main loop. ``adaptive_targets`` Head of monitoring targets (:c:type:`damon_target`) list. ``schemes`` Head of schemes (:c:type:`damos`) list. ``rnd_state`` Per-ctx PRNG state for damon_rand().h](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjJNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFNubh:}(hjFNhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhM;hjBNubj)}(hX$struct damon_ctx { struct damon_attrs attrs; struct damon_operations ops; struct list_head probes; unsigned long addr_unit; unsigned long min_region_sz; bool pause; struct list_head adaptive_targets; struct list_head schemes; struct rnd_state rnd_state; };h]hX$struct damon_ctx { struct damon_attrs attrs; struct damon_operations ops; struct list_head probes; unsigned long addr_unit; unsigned long min_region_sz; bool pause; struct list_head adaptive_targets; struct list_head schemes; struct rnd_state rnd_state; };}hjcNsbah}(h]h ]h"]h$]h&]hhuh1j hR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhM=hjBNubh)}(h **Members**h]j)}(hjtNh]hMembers}(hjvNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMIhjBNubj7)}(hhh](j<)}(h?``attrs`` Monitoring attributes for accuracy/overhead control. h](jB)}(h ``attrs``h]h)}(hjNh]hattrs}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjNubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhM<hjNubj\)}(hhh]h)}(h4Monitoring attributes for accuracy/overhead control.h]h4Monitoring attributes for accuracy/overhead control.}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjNhM<hjNubah}(h]h ]h"]h$]h&]uh1j[hjNubeh}(h]h ]h"]h$]h&]uh1j;hjNhM<hjNubj<)}(h:``ops`` Set of monitoring operations for given use cases. h](jB)}(h``ops``h]h)}(hjNh]hops}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjNubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMLhjNubj\)}(hhh]h)}(h1Set of monitoring operations for given use cases.h]h1Set of monitoring operations for given use cases.}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjNhMLhjNubah}(h]h ]h"]h$]h&]uh1j[hjNubeh}(h]h ]h"]h$]h&]uh1j;hjNhMLhjNubj<)}(h8``probes`` Head of probes (:c:type:`damon_probe`) list. h](jB)}(h ``probes``h]h)}(hjOh]hprobes}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjOubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMMhjNubj\)}(hhh]h)}(h,Head of probes (:c:type:`damon_probe`) list.h](hHead of probes (}(hjOhhhNhNubh)}(h:c:type:`damon_probe`h]h)}(hj(Oh]h damon_probe}(hj*OhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhj&Oubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj  damon_probeuh1hhjOhMMhjOubh) list.}(hjOhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjOhMMhjOubah}(h]h ]h"]h$]h&]uh1j[hjNubeh}(h]h ]h"]h$]h&]uh1j;hjOhMMhjNubj<)}(h?``addr_unit`` Scale factor for core to ops address conversion. h](jB)}(h ``addr_unit``h]h)}(hjaOh]h addr_unit}(hjcOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_Oubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMNhj[Oubj\)}(hhh]h)}(h0Scale factor for core to ops address conversion.h]h0Scale factor for core to ops address conversion.}(hjzOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjvOhMNhjwOubah}(h]h ]h"]h$]h&]uh1j[hj[Oubeh}(h]h ]h"]h$]h&]uh1j;hjvOhMNhjNubj<)}(h'``min_region_sz`` Minimum region size. h](jB)}(h``min_region_sz``h]h)}(hjOh]h min_region_sz}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjOubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMOhjOubj\)}(hhh]h)}(hMinimum region size.h]hMinimum region size.}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjOhMOhjOubah}(h]h ]h"]h$]h&]uh1j[hjOubeh}(h]h ]h"]h$]h&]uh1j;hjOhMOhjNubj<)}(h#``pause`` Pause kdamond main loop. h](jB)}(h ``pause``h]h)}(hjOh]hpause}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjOubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMPhjOubj\)}(hhh]h)}(hPause kdamond main loop.h]hPause kdamond main loop.}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjOhMPhjOubah}(h]h ]h"]h$]h&]uh1j[hjOubeh}(h]h ]h"]h$]h&]uh1j;hjOhMPhjNubj<)}(hO``adaptive_targets`` Head of monitoring targets (:c:type:`damon_target`) list. h](jB)}(h``adaptive_targets``h]h)}(hj Ph]hadaptive_targets}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj Pubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMQhjPubj\)}(hhh]h)}(h9Head of monitoring targets (:c:type:`damon_target`) list.h](hHead of monitoring targets (}(hj%PhhhNhNubh)}(h:c:type:`damon_target`h]h)}(hj/Ph]h damon_target}(hj1PhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhj-Pubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj  damon_targetuh1hhj!PhMQhj%Pubh) list.}(hj%PhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj!PhMQhj"Pubah}(h]h ]h"]h$]h&]uh1j[hjPubeh}(h]h ]h"]h$]h&]uh1j;hj!PhMQhjNubj<)}(h4``schemes`` Head of schemes (:c:type:`damos`) list. h](jB)}(h ``schemes``h]h)}(hjhPh]hschemes}(hjjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjfPubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMRhjbPubj\)}(hhh]h)}(h'Head of schemes (:c:type:`damos`) list.h](hHead of schemes (}(hjPhhhNhNubh)}(h:c:type:`damos`h]h)}(hjPh]hdamos}(hjPhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhjPubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj damosuh1hhj}PhMRhjPubh) list.}(hjPhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj}PhMRhj~Pubah}(h]h ]h"]h$]h&]uh1j[hjbPubeh}(h]h ]h"]h$]h&]uh1j;hj}PhMRhjNubj<)}(h2``rnd_state`` Per-ctx PRNG state for damon_rand().h](jB)}(h ``rnd_state``h]h)}(hjPh]h rnd_state}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjPubah}(h]h ]h"]h$]h&]uh1jAhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMRhjPubj\)}(hhh]h)}(h$Per-ctx PRNG state for damon_rand().h]h$Per-ctx PRNG state for damon_rand().}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMShjPubah}(h]h ]h"]h$]h&]uh1j[hjPubeh}(h]h ]h"]h$]h&]uh1j;hjPhMRhjNubeh}(h]h ]h"]h$]h&]uh1j6hjBNubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhj5hNubh)}(h**Description**h]j)}(hjQh]h Description}(hj QhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMVhjhhubh)}(hFor each monitoring context, one kernel thread for the monitoring, namely kdamond, is created. The pid of kdamond can be retrieved using damon_kdamond_pid().h]hFor each monitoring context, one kernel thread for the monitoring, namely kdamond, is created. The pid of kdamond can be retrieved using damon_kdamond_pid().}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhM<hjhhubh)}(hXpOnce started, kdamond runs until explicitly required to be terminated or every monitoring target is invalid. The validity of the targets is checked via the :c:type:`damon_operations.target_valid ` of **ops**. The termination can also be explicitly requested by calling damon_stop(). To know if a kdamond is running, damon_is_running() can be used.h](hOnce started, kdamond runs until explicitly required to be terminated or every monitoring target is invalid. The validity of the targets is checked via the }(hj,QhhhNhNubh)}(h::c:type:`damon_operations.target_valid `h]h)}(hj6Qh]hdamon_operations.target_valid}(hj8QhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhj4Qubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj damon_operationsuh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhM@hj,Qubh of }(hj,QhhhNhNubj)}(h**ops**h]hops}(hjXQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,Qubh. The termination can also be explicitly requested by calling damon_stop(). To know if a kdamond is running, damon_is_running() can be used.}(hj,QhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjSQhM@hjhhubh)}(hWhile the kdamond is running, all accesses to :c:type:`struct damon_ctx ` from a thread other than the kdamond should be made using safe DAMON APIs, including damon_call() and damos_walk().h](h.While the kdamond is running, all accesses to }(hjpQhhhNhNubh)}(h&:c:type:`struct damon_ctx `h]h)}(hjzQh]hstruct damon_ctx}(hj|QhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhjxQubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj  damon_ctxuh1hhR/var/lib/git/docbuild/linux/Documentation/mm/damon/api:14: ./include/linux/damon.hhMFhjpQubht from a thread other than the kdamond should be made using safe DAMON APIs, including damon_call() and damos_walk().}(hjpQhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjQhMFhjhhubeh}(h] structuresah ]h"] structuresah$]h&]uh1hhhhhhhhK ubh)}(hhh](h)}(h Functionsh]h Functions}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQhhhhhKubj%)}(hhh]h}(h]h ]h"]h$]h&]entries](j1$damon_is_registered_ops (C function)c.damon_is_registered_opshNtauh1j$hjQhhhNhNubj7)}(hhh](j<)}(h3bool damon_is_registered_ops (enum damon_ops_id id)h]jB)}(h2bool damon_is_registered_ops(enum damon_ops_id id)h](hdesc_sig_keyword_type)}(hboolh]hbool}(hjQhhhNhNubah}(h]h ]ktah"]h$]h&]uh1jQhjQhhhL/var/lib/git/docbuild/linux/Documentation/mm/damon/api:20: ./mm/damon/core.chK-ubjZ)}(h h]h }(hjQhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjQhhhjQhK-ubjk)}(hdamon_is_registered_opsh]jq)}(hdamon_is_registered_opsh]hdamon_is_registered_ops}(hjQhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1jphjQubah}(h]h ](jjeh"]h$]h&]hhuh1jjhjQhhhjQhK-ubhdesc_parameterlist)}(h(enum damon_ops_id id)h]hdesc_parameter)}(henum damon_ops_id idh](jH)}(hj h]henum}(hjRhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjRubjZ)}(h h]h }(hj%RhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjRubh)}(hhh]jq)}(h damon_ops_idh]h damon_ops_id}(hj6RhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1jphj3Rubah}(h]h ]h"]h$]h&] refdomainjreftypej% reftargetj8RmodnameN classnameNjj)}j ]j%)}j%jQsbc.damon_is_registered_opsasbuh1hhjRubjZ)}(h h]h }(hjVRhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjRubjq)}(hidh]hid}(hjdRhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1jphjRubeh}(h]h ]h"]h$]h&]noemphhhuh1jRhjRubah}(h]h ]h"]h$]h&]hhuh1j RhjQhhhjQhK-ubeh}(h]h ]h"]h$]h&]hhjuh1jAjjhjQhhhjQhK-ubah}(h]jQah ](jjeh"]h$]h&]jj)jhuh1j;hjQhK-hjQhhubj)}(hhh]h)}(h0Check if a given damon_operations is registered.h]h0Check if a given damon_operations is registered.}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhL/var/lib/git/docbuild/linux/Documentation/mm/damon/api:20: ./mm/damon/core.chK-hjRhhubah}(h]h ]h"]h$]h&]uh1jhjQhhhjQhK-ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjRjjRjjjuh1j6hhhjQhNhNubj)}(h**Parameters** ``enum damon_ops_id id`` Id of the damon_operations to check if registered. **Return** true if the ops is set, false otherwise.h](h)}(h**Parameters**h]j)}(hjRh]h Parameters}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1hhL/var/lib/git/docbuild/linux/Documentation/mm/damon/api:20: ./mm/damon/core.chK1hjRubj7)}(hhh]j<)}(hL``enum damon_ops_id id`` Id of the damon_operations to check if registered. h](jB)}(h``enum damon_ops_id id``h]h)}(hjRh]henum damon_ops_id id}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjRubah}(h]h ]h"]h$]h&]uh1jAhL/var/lib/git/docbuild/linux/Documentation/mm/damon/api:20: ./mm/damon/core.chK.hjRubj\)}(hhh]h)}(h2Id of the damon_operations to check if registered.h]h2Id of the damon_operations to check if registered.}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjRhK.hjRubah}(h]h ]h"]h$]h&]uh1j[hjRubeh}(h]h ]h"]h$]h&]uh1j;hjRhK.hjRubah}(h]h ]h"]h$]h&]uh1j6hjRubh)}(h **Return**h]j)}(hj Sh]hReturn}(hj ShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1hhL/var/lib/git/docbuild/linux/Documentation/mm/damon/api:20: ./mm/damon/core.chK0hjRubh)}(h(true if the ops is set, false otherwise.h]h(true if the ops is set, false otherwise.}(hj ShhhNhNubah}(h]h ]h"]h$]h&]uh1hhL/var/lib/git/docbuild/linux/Documentation/mm/damon/api:20: ./mm/damon/core.chK0hjRubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjQhhhNhNubj%)}(hhh]h}(h]h ]h"]h$]h&]entries](j1damon_register_ops (C function)c.damon_register_opshNtauh1j$hjQhhhNhNubj7)}(hhh](j<)}(h5int damon_register_ops (struct damon_operations *ops)h]jB)}(h4int damon_register_ops(struct damon_operations *ops)h](jQ)}(hinth]hint}(hjOShhhNhNubah}(h]h ]jQah"]h$]h&]uh1jQhjKShhhL/var/lib/git/docbuild/linux/Documentation/mm/damon/api:20: ./mm/damon/core.chK?ubjZ)}(h h]h }(hj^ShhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjKShhhj]ShK?ubjk)}(hdamon_register_opsh]jq)}(hdamon_register_opsh]hdamon_register_ops}(hjpShhhNhNubah}(h]h ]j|ah"]h$]h&]uh1jphjlSubah}(h]h ](jjeh"]h$]h&]hhuh1jjhjKShhhj]ShK?ubj R)}(h(struct damon_operations *ops)h]jR)}(hstruct damon_operations *opsh](jH)}(hjKh]hstruct}(hjShhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjSubjZ)}(h h]h }(hjShhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjSubh)}(hhh]jq)}(hdamon_operationsh]hdamon_operations}(hjShhhNhNubah}(h]h ]j|ah"]h$]h&]uh1jphjSubah}(h]h ]h"]h$]h&] refdomainjreftypej% reftargetjSmodnameN classnameNjj)}j ]j%)}j%jrSsbc.damon_register_opsasbuh1hhjSubjZ)}(h h]h }(hjShhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjSubhdesc_sig_punctuation)}(h*h]h*}(hjShhhNhNubah}(h]h ]pah"]h$]h&]uh1jShjSubjq)}(hopsh]hops}(hjShhhNhNubah}(h]h ]j|ah"]h$]h&]uh1jphjSubeh}(h]h ]h"]h$]h&]noemphhhuh1jRhjSubah}(h]h ]h"]h$]h&]hhuh1j RhjKShhhj]ShK?ubeh}(h]h ]h"]h$]h&]hhjuh1jAjjhjGShhhj]ShK?ubah}(h]jBSah ](jjeh"]h$]h&]jj)jhuh1j;hj]ShK?hjDShhubj)}(hhh]h)}(h.Register a monitoring operations set to DAMON.h]h.Register a monitoring operations set to DAMON.}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhL/var/lib/git/docbuild/linux/Documentation/mm/damon/api:20: ./mm/damon/core.chK?hjThhubah}(h]h ]h"]h$]h&]uh1jhjDShhhj]ShK?ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj+Tjj+Tjjjuh1j6hhhjQhNhNubj)}(hXG**Parameters** ``struct damon_operations *ops`` monitoring operations set to register. **Description** This function registers a monitoring operations set of valid :c:type:`struct damon_operations `->id so that others can find and use them later. **Return** 0 on success, negative error code otherwise.h](h)}(h**Parameters**h]j)}(hj5Th]h Parameters}(hj7ThhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3Tubah}(h]h ]h"]h$]h&]uh1hhL/var/lib/git/docbuild/linux/Documentation/mm/damon/api:20: ./mm/damon/core.chKChj/Tubj7)}(hhh]j<)}(hH``struct damon_operations *ops`` monitoring operations set to register. h](jB)}(h ``struct damon_operations *ops``h]h)}(hjTTh]hstruct damon_operations *ops}(hjVThhhNhNubah}(h]h ]h"]h$]h&]uh1hhjRTubah}(h]h ]h"]h$]h&]uh1jAhL/var/lib/git/docbuild/linux/Documentation/mm/damon/api:20: ./mm/damon/core.chK@hjNTubj\)}(hhh]h)}(h&monitoring operations set to register.h]h&monitoring operations set to register.}(hjmThhhNhNubah}(h]h ]h"]h$]h&]uh1hhjiThK@hjjTubah}(h]h ]h"]h$]h&]uh1j[hjNTubeh}(h]h ]h"]h$]h&]uh1j;hjiThK@hjKTubah}(h]h ]h"]h$]h&]uh1j6hj/Tubh)}(h**Description**h]j)}(hjTh]h Description}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]uh1hhL/var/lib/git/docbuild/linux/Documentation/mm/damon/api:20: ./mm/damon/core.chKBhj/Tubh)}(hThis function registers a monitoring operations set of valid :c:type:`struct damon_operations `->id so that others can find and use them later.h](h=This function registers a monitoring operations set of valid }(hjThhhNhNubh)}(h4:c:type:`struct damon_operations `h]h)}(hjTh]hstruct damon_operations}(hjThhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhjTubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj damon_operationsuh1hhL/var/lib/git/docbuild/linux/Documentation/mm/damon/api:20: ./mm/damon/core.chKAhjTubh0->id so that others can find and use them later.}(hjThhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjThKAhj/Tubh)}(h **Return**h]j)}(hjTh]hReturn}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]uh1hhL/var/lib/git/docbuild/linux/Documentation/mm/damon/api:20: ./mm/damon/core.chKDhj/Tubh)}(h,0 on success, negative error code otherwise.h]h,0 on success, negative error code otherwise.}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhL/var/lib/git/docbuild/linux/Documentation/mm/damon/api:20: ./mm/damon/core.chKEhj/Tubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjQhhhNhNubj%)}(hhh]h}(h]h ]h"]h$]h&]entries](j1damon_select_ops (C function)c.damon_select_opshNtauh1j$hjQhhhNhNubj7)}(hhh](j<)}(hBint damon_select_ops (struct damon_ctx *ctx, enum damon_ops_id id)h]jB)}(hAint damon_select_ops(struct damon_ctx *ctx, enum damon_ops_id id)h](jQ)}(hinth]hint}(hjUhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jQhjUhhhL/var/lib/git/docbuild/linux/Documentation/mm/damon/api:20: ./mm/damon/core.chKYubjZ)}(h h]h }(hj-UhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjUhhhj,UhKYubjk)}(hdamon_select_opsh]jq)}(hdamon_select_opsh]hdamon_select_ops}(hj?UhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1jphj;Uubah}(h]h ](jjeh"]h$]h&]hhuh1jjhjUhhhj,UhKYubj R)}(h-(struct damon_ctx *ctx, enum damon_ops_id id)h](jR)}(hstruct damon_ctx *ctxh](jH)}(hjKh]hstruct}(hj[UhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjWUubjZ)}(h h]h }(hjhUhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjWUubh)}(hhh]jq)}(h damon_ctxh]h damon_ctx}(hjyUhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1jphjvUubah}(h]h ]h"]h$]h&] refdomainjreftypej% reftargetj{UmodnameN classnameNjj)}j ]j%)}j%jAUsbc.damon_select_opsasbuh1hhjWUubjZ)}(h h]h }(hjUhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjWUubjS)}(hjSh]h*}(hjUhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jShjWUubjq)}(hctxh]hctx}(hjUhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1jphjWUubeh}(h]h ]h"]h$]h&]noemphhhuh1jRhjSUubjR)}(henum damon_ops_id idh](jH)}(hj h]henum}(hjUhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjUubjZ)}(h h]h }(hjUhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjUubh)}(hhh]jq)}(h damon_ops_idh]h damon_ops_id}(hjUhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1jphjUubah}(h]h ]h"]h$]h&] refdomainjreftypej% reftargetjUmodnameN classnameNjj)}j ]jUc.damon_select_opsasbuh1hhjUubjZ)}(h h]h }(hj VhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjUubjq)}(hidh]hid}(hjVhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1jphjUubeh}(h]h ]h"]h$]h&]noemphhhuh1jRhjSUubeh}(h]h ]h"]h$]h&]hhuh1j RhjUhhhj,UhKYubeh}(h]h ]h"]h$]h&]hhjuh1jAjjhjUhhhj,UhKYubah}(h]jUah ](jjeh"]h$]h&]jj)jhuh1j;hj,UhKYhjUhhubj)}(hhh]h)}(h7Select a monitoring operations to use with the context.h]h7Select a monitoring operations to use with the context.}(hjAVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhL/var/lib/git/docbuild/linux/Documentation/mm/damon/api:20: ./mm/damon/core.chKYhj>Vhhubah}(h]h ]h"]h$]h&]uh1jhjUhhhj,UhKYubeh}(h]h ](jfunctioneh"]h$]h&]jjjjYVjjYVjjjuh1j6hhhjQhNhNubj)}(hXR**Parameters** ``struct damon_ctx *ctx`` monitoring context to use the operations. ``enum damon_ops_id id`` id of the registered monitoring operations to select. **Description** This function finds registered monitoring operations set of **id** and make **ctx** to use it. **Return** 0 on success, negative error code otherwise.h](h)}(h**Parameters**h]j)}(hjcVh]h Parameters}(hjeVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaVubah}(h]h ]h"]h$]h&]uh1hhL/var/lib/git/docbuild/linux/Documentation/mm/damon/api:20: ./mm/damon/core.chK]hj]Vubj7)}(hhh](j<)}(hD``struct damon_ctx *ctx`` monitoring context to use the operations. h](jB)}(h``struct damon_ctx *ctx``h]h)}(hjVh]hstruct damon_ctx *ctx}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjVubah}(h]h ]h"]h$]h&]uh1jAhL/var/lib/git/docbuild/linux/Documentation/mm/damon/api:20: ./mm/damon/core.chKZhj|Vubj\)}(hhh]h)}(h)monitoring context to use the operations.h]h)monitoring context to use the operations.}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjVhKZhjVubah}(h]h ]h"]h$]h&]uh1j[hj|Vubeh}(h]h ]h"]h$]h&]uh1j;hjVhKZhjyVubj<)}(hO``enum damon_ops_id id`` id of the registered monitoring operations to select. h](jB)}(h``enum damon_ops_id id``h]h)}(hjVh]henum damon_ops_id id}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjVubah}(h]h ]h"]h$]h&]uh1jAhL/var/lib/git/docbuild/linux/Documentation/mm/damon/api:20: ./mm/damon/core.chK[hjVubj\)}(hhh]h)}(h5id of the registered monitoring operations to select.h]h5id of the registered monitoring operations to select.}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjVhK[hjVubah}(h]h ]h"]h$]h&]uh1j[hjVubeh}(h]h ]h"]h$]h&]uh1j;hjVhK[hjyVubeh}(h]h ]h"]h$]h&]uh1j6hj]Vubh)}(h**Description**h]j)}(hjVh]h Description}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1hhL/var/lib/git/docbuild/linux/Documentation/mm/damon/api:20: ./mm/damon/core.chK]hj]Vubh)}(h^This function finds registered monitoring operations set of **id** and make **ctx** to use it.h](h damon_commit() for online parameters updates. Finally, kdamond_fn() itself use this for applying auto-tuned monitoring intervals. Every time interval is in micro-seconds. **Return** 0 on success, negative error code otherwise.h](h)}(h**Parameters**h]j)}(hj]Zh]h Parameters}(hj_ZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[Zubah}(h]h ]h"]h$]h&]uh1hhL/var/lib/git/docbuild/linux/Documentation/mm/damon/api:20: ./mm/damon/core.chMhjWZubj7)}(hhh](j<)}(h-``struct damon_ctx *ctx`` monitoring context h](jB)}(h``struct damon_ctx *ctx``h]h)}(hj|Zh]hstruct damon_ctx *ctx}(hj~ZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjzZubah}(h]h ]h"]h$]h&]uh1jAhL/var/lib/git/docbuild/linux/Documentation/mm/damon/api:20: ./mm/damon/core.chM|hjvZubj\)}(hhh]h)}(hmonitoring contexth]hmonitoring context}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjZhM|hjZubah}(h]h ]h"]h$]h&]uh1j[hjvZubeh}(h]h ]h"]h$]h&]uh1j;hjZhM|hjsZubj<)}(h4``struct damon_attrs *attrs`` monitoring attributes h](jB)}(h``struct damon_attrs *attrs``h]h)}(hjZh]hstruct damon_attrs *attrs}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjZubah}(h]h ]h"]h$]h&]uh1jAhL/var/lib/git/docbuild/linux/Documentation/mm/damon/api:20: ./mm/damon/core.chM}hjZubj\)}(hhh]h)}(hmonitoring attributesh]hmonitoring attributes}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjZhM}hjZubah}(h]h ]h"]h$]h&]uh1j[hjZubeh}(h]h ]h"]h$]h&]uh1j;hjZhM}hjsZubeh}(h]h ]h"]h$]h&]uh1j6hjWZubh)}(h**Description**h]j)}(hjZh]h Description}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1hhL/var/lib/git/docbuild/linux/Documentation/mm/damon/api:20: ./mm/damon/core.chMhjWZubh)}(hX%This function updates monitoring results and next monitoring/damos operation schedules. Because those are periodically updated by kdamond, this should be called from a safe contexts. Such contexts include damon_ctx setup time while the kdamond is not yet started, and inside of kdamond_fn().h]hX%This function updates monitoring results and next monitoring/damos operation schedules. Because those are periodically updated by kdamond, this should be called from a safe contexts. Such contexts include damon_ctx setup time while the kdamond is not yet started, and inside of kdamond_fn().}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhL/var/lib/git/docbuild/linux/Documentation/mm/damon/api:20: ./mm/damon/core.chM~hjWZubh)}(hXLIn detail, all DAMON API callers directly call this function for initial setup of damon_ctx before calling damon_start(). Some of the API callers also indirectly call this function via damon_call() -> damon_commit() for online parameters updates. Finally, kdamond_fn() itself use this for applying auto-tuned monitoring intervals.h]hXLIn detail, all DAMON API callers directly call this function for initial setup of damon_ctx before calling damon_start(). Some of the API callers also indirectly call this function via damon_call() -> damon_commit() for online parameters updates. Finally, kdamond_fn() itself use this for applying auto-tuned monitoring intervals.}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhL/var/lib/git/docbuild/linux/Documentation/mm/damon/api:20: ./mm/damon/core.chMhjWZubh)}(h(Every time interval is in micro-seconds.h]h(Every time interval is in micro-seconds.}(hj$[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhL/var/lib/git/docbuild/linux/Documentation/mm/damon/api:20: ./mm/damon/core.chMhjWZubh)}(h **Return**h]j)}(hj5[h]hReturn}(hj7[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3[ubah}(h]h ]h"]h$]h&]uh1hhL/var/lib/git/docbuild/linux/Documentation/mm/damon/api:20: ./mm/damon/core.chMhjWZubh)}(h,0 on success, negative error code otherwise.h]h,0 on success, negative error code otherwise.}(hjK[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhL/var/lib/git/docbuild/linux/Documentation/mm/damon/api:20: ./mm/damon/core.chMhjWZubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjQhhhNhNubj%)}(hhh]h}(h]h ]h"]h$]h&]entries](j1damon_set_schemes (C function)c.damon_set_schemeshNtauh1j$hjQhhhNhNubj7)}(hhh](j<)}(hZvoid damon_set_schemes (struct damon_ctx *ctx, struct damos **schemes, ssize_t nr_schemes)h]jB)}(hYvoid damon_set_schemes(struct damon_ctx *ctx, struct damos **schemes, ssize_t nr_schemes)h](jQ)}(hvoidh]hvoid}(hjz[hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jQhjv[hhhL/var/lib/git/docbuild/linux/Documentation/mm/damon/api:20: ./mm/damon/core.chMubjZ)}(h h]h }(hj[hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjv[hhhj[hMubjk)}(hdamon_set_schemesh]jq)}(hdamon_set_schemesh]hdamon_set_schemes}(hj[hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1jphj[ubah}(h]h ](jjeh"]h$]h&]hhuh1jjhjv[hhhj[hMubj R)}(hC(struct damon_ctx *ctx, struct damos **schemes, ssize_t nr_schemes)h](jR)}(hstruct damon_ctx *ctxh](jH)}(hjKh]hstruct}(hj[hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj[ubjZ)}(h h]h }(hj[hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj[ubh)}(hhh]jq)}(h damon_ctxh]h damon_ctx}(hj[hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1jphj[ubah}(h]h ]h"]h$]h&] refdomainjreftypej% reftargetj[modnameN classnameNjj)}j ]j%)}j%j[sbc.damon_set_schemesasbuh1hhj[ubjZ)}(h h]h }(hj[hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj[ubjS)}(hjSh]h*}(hj\hhhNhNubah}(h]h ]jSah"]h$]h&]uh1jShj[ubjq)}(hctxh]hctx}(hj\hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1jphj[ubeh}(h]h ]h"]h$]h&]noemphhhuh1jRhj[ubjR)}(hstruct damos **schemesh](jH)}(hjKh]hstruct}(hj)\hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj%\ubjZ)}(h h]h }(hj6\hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj%\ubh)}(hhh]jq)}(hdamosh]hdamos}(hjG\hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1jphjD\ubah}(h]h ]h"]h$]h&] refdomainjreftypej% reftargetjI\modnameN classnameNjj)}j ]j[c.damon_set_schemesasbuh1hhj%\ubjZ)}(h h]h }(hje\hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj%\ubjS)}(hjSh]h*}(hjs\hhhNhNubah}(h]h ]jSah"]h$]h&]uh1jShj%\ubjS)}(hjSh]h*}(hj\hhhNhNubah}(h]h ]jSah"]h$]h&]uh1jShj%\ubjq)}(hschemesh]hschemes}(hj\hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1jphj%\ubeh}(h]h ]h"]h$]h&]noemphhhuh1jRhj[ubjR)}(hssize_t nr_schemesh](h)}(hhh]jq)}(hssize_th]hssize_t}(hj\hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1jphj\ubah}(h]h ]h"]h$]h&] refdomainjreftypej% reftargetj\modnameN classnameNjj)}j ]j[c.damon_set_schemesasbuh1hhj\ubjZ)}(h h]h }(hj\hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj\ubjq)}(h nr_schemesh]h nr_schemes}(hj\hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1jphj\ubeh}(h]h ]h"]h$]h&]noemphhhuh1jRhj[ubeh}(h]h ]h"]h$]h&]hhuh1j Rhjv[hhhj[hMubeh}(h]h ]h"]h$]h&]hhjuh1jAjjhjr[hhhj[hMubah}(h]jm[ah ](jjeh"]h$]h&]jj)jhuh1j;hj[hMhjo[hhubj)}(hhh]h)}(h3Set data access monitoring based operation schemes.h]h3Set data access monitoring based operation schemes.}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhL/var/lib/git/docbuild/linux/Documentation/mm/damon/api:20: ./mm/damon/core.chMhj\hhubah}(h]h ]h"]h$]h&]uh1jhjo[hhhj[hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj]jj]jjjuh1j6hhhjQhNhNubj)}(hX**Parameters** ``struct damon_ctx *ctx`` monitoring context ``struct damos **schemes`` array of the schemes ``ssize_t nr_schemes`` number of entries in **schemes** **Description** This function should not be called while the kdamond of the context is running.h](h)}(h**Parameters**h]j)}(hj!]h]h Parameters}(hj#]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]uh1hhL/var/lib/git/docbuild/linux/Documentation/mm/damon/api:20: ./mm/damon/core.chMhj]ubj7)}(hhh](j<)}(h-``struct damon_ctx *ctx`` monitoring context h](jB)}(h``struct damon_ctx *ctx``h]h)}(hj@]h]hstruct damon_ctx *ctx}(hjB]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj>]ubah}(h]h ]h"]h$]h&]uh1jAhL/var/lib/git/docbuild/linux/Documentation/mm/damon/api:20: ./mm/damon/core.chMhj:]ubj\)}(hhh]h)}(hmonitoring contexth]hmonitoring context}(hjY]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjU]hMhjV]ubah}(h]h ]h"]h$]h&]uh1j[hj:]ubeh}(h]h ]h"]h$]h&]uh1j;hjU]hMhj7]ubj<)}(h0``struct damos **schemes`` array of the schemes h](jB)}(h``struct damos **schemes``h]h)}(hjy]h]hstruct damos **schemes}(hj{]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjw]ubah}(h]h ]h"]h$]h&]uh1jAhL/var/lib/git/docbuild/linux/Documentation/mm/damon/api:20: ./mm/damon/core.chMhjs]ubj\)}(hhh]h)}(harray of the schemesh]harray of the schemes}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]hMhj]ubah}(h]h ]h"]h$]h&]uh1j[hjs]ubeh}(h]h ]h"]h$]h&]uh1j;hj]hMhj7]ubj<)}(h8``ssize_t nr_schemes`` number of entries in **schemes** h](jB)}(h``ssize_t nr_schemes``h]h)}(hj]h]hssize_t nr_schemes}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]ubah}(h]h ]h"]h$]h&]uh1jAhL/var/lib/git/docbuild/linux/Documentation/mm/damon/api:20: ./mm/damon/core.chMhj]ubj\)}(hhh]h)}(h number of entries in **schemes**h](hnumber of entries in }(hj]hhhNhNubj)}(h **schemes**h]hschemes}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]uh1hhj]hMhj]ubah}(h]h ]h"]h$]h&]uh1j[hj]ubeh}(h]h ]h"]h$]h&]uh1j;hj]hMhj7]ubeh}(h]h ]h"]h$]h&]uh1j6hj]ubh)}(h**Description**h]j)}(hj]h]h Description}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]uh1hhL/var/lib/git/docbuild/linux/Documentation/mm/damon/api:20: ./mm/damon/core.chMhj]ubh)}(hOThis function should not be called while the kdamond of the context is running.h]hOThis function should not be called while the kdamond of the context is running.}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhL/var/lib/git/docbuild/linux/Documentation/mm/damon/api:20: ./mm/damon/core.chMhj]ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjQhhhNhNubj%)}(hhh]h}(h]h ]h"]h$]h&]entries](j1%damos_commit_quota_goals (C function)c.damos_commit_quota_goalshNtauh1j$hjQhhhNhNubj7)}(hhh](j<)}(hOint damos_commit_quota_goals (struct damos_quota *dst, struct damos_quota *src)h]jB)}(hNint damos_commit_quota_goals(struct damos_quota *dst, struct damos_quota *src)h](jQ)}(hinth]hint}(hj@^hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jQhj<^hhhL/var/lib/git/docbuild/linux/Documentation/mm/damon/api:20: ./mm/damon/core.chMubjZ)}(h h]h }(hjO^hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj<^hhhjN^hMubjk)}(hdamos_commit_quota_goalsh]jq)}(hdamos_commit_quota_goalsh]hdamos_commit_quota_goals}(hja^hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1jphj]^ubah}(h]h ](jjeh"]h$]h&]hhuh1jjhj<^hhhjN^hMubj R)}(h2(struct damos_quota *dst, struct damos_quota *src)h](jR)}(hstruct damos_quota *dsth](jH)}(hjKh]hstruct}(hj}^hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjy^ubjZ)}(h h]h }(hj^hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjy^ubh)}(hhh]jq)}(h damos_quotah]h damos_quota}(hj^hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1jphj^ubah}(h]h ]h"]h$]h&] refdomainjreftypej% reftargetj^modnameN classnameNjj)}j ]j%)}j%jc^sbc.damos_commit_quota_goalsasbuh1hhjy^ubjZ)}(h h]h }(hj^hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjy^ubjS)}(hjSh]h*}(hj^hhhNhNubah}(h]h ]jSah"]h$]h&]uh1jShjy^ubjq)}(hdsth]hdst}(hj^hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1jphjy^ubeh}(h]h ]h"]h$]h&]noemphhhuh1jRhju^ubjR)}(hstruct damos_quota *srch](jH)}(hjKh]hstruct}(hj^hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj^ubjZ)}(h h]h }(hj^hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj^ubh)}(hhh]jq)}(h damos_quotah]h damos_quota}(hj _hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1jphj _ubah}(h]h ]h"]h$]h&] refdomainjreftypej% reftargetj_modnameN classnameNjj)}j ]j^c.damos_commit_quota_goalsasbuh1hhj^ubjZ)}(h h]h }(hj+_hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj^ubjS)}(hjSh]h*}(hj9_hhhNhNubah}(h]h ]jSah"]h$]h&]uh1jShj^ubjq)}(hsrch]hsrc}(hjF_hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1jphj^ubeh}(h]h ]h"]h$]h&]noemphhhuh1jRhju^ubeh}(h]h ]h"]h$]h&]hhuh1j Rhj<^hhhjN^hMubeh}(h]h ]h"]h$]h&]hhjuh1jAjjhj8^hhhjN^hMubah}(h]j3^ah ](jjeh"]h$]h&]jj)jhuh1j;hjN^hMhj5^hhubj)}(hhh]h)}(h*Commit DAMOS quota goals to another quota.h]h*Commit DAMOS quota goals to another quota.}(hjp_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhL/var/lib/git/docbuild/linux/Documentation/mm/damon/api:20: ./mm/damon/core.chMhjm_hhubah}(h]h ]h"]h$]h&]uh1jhj5^hhhjN^hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj_jj_jjjuh1j6hhhjQhNhNubj)}(hX**Parameters** ``struct damos_quota *dst`` The commit destination DAMOS quota. ``struct damos_quota *src`` The commit source DAMOS quota. **Description** Copies user-specified parameters for quota goals from **src** to **dst**. Users should use this function for quota goals-level parameters update of running DAMON contexts, instead of manual in-place updates. This function should be called from parameters-update safe context, like damon_call().h](h)}(h**Parameters**h]j)}(hj_h]h Parameters}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&]uh1hhL/var/lib/git/docbuild/linux/Documentation/mm/damon/api:20: ./mm/damon/core.chMhj_ubj7)}(hhh](j<)}(h@``struct damos_quota *dst`` The commit destination DAMOS quota. h](jB)}(h``struct damos_quota *dst``h]h)}(hj_h]hstruct damos_quota *dst}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_ubah}(h]h ]h"]h$]h&]uh1jAhL/var/lib/git/docbuild/linux/Documentation/mm/damon/api:20: ./mm/damon/core.chMhj_ubj\)}(hhh]h)}(h#The commit destination DAMOS quota.h]h#The commit destination DAMOS quota.}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_hMhj_ubah}(h]h ]h"]h$]h&]uh1j[hj_ubeh}(h]h ]h"]h$]h&]uh1j;hj_hMhj_ubj<)}(h;``struct damos_quota *src`` The commit source DAMOS quota. h](jB)}(h``struct damos_quota *src``h]h)}(hj_h]hstruct damos_quota *src}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_ubah}(h]h ]h"]h$]h&]uh1jAhL/var/lib/git/docbuild/linux/Documentation/mm/damon/api:20: ./mm/damon/core.chMhj_ubj\)}(hhh]h)}(hThe commit source DAMOS quota.h]hThe commit source DAMOS quota.}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_hMhj`ubah}(h]h ]h"]h$]h&]uh1j[hj_ubeh}(h]h ]h"]h$]h&]uh1j;hj_hMhj_ubeh}(h]h ]h"]h$]h&]uh1j6hj_ubh)}(h**Description**h]j)}(hj%`h]h Description}(hj'`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#`ubah}(h]h ]h"]h$]h&]uh1hhL/var/lib/git/docbuild/linux/Documentation/mm/damon/api:20: ./mm/damon/core.chMhj_ubh)}(hCopies user-specified parameters for quota goals from **src** to **dst**. Users should use this function for quota goals-level parameters update of running DAMON contexts, instead of manual in-place updates.h](h6Copies user-specified parameters for quota goals from }(hj;`hhhNhNubj)}(h**src**h]hsrc}(hjC`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;`ubh to }(hj;`hhhNhNubj)}(h**dst**h]hdst}(hjU`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;`ubh. Users should use this function for quota goals-level parameters update of running DAMON contexts, instead of manual in-place updates.}(hj;`hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhL/var/lib/git/docbuild/linux/Documentation/mm/damon/api:20: ./mm/damon/core.chMhj_ubh)}(hVThis function should be called from parameters-update safe context, like damon_call().h]hVThis function should be called from parameters-update safe context, like damon_call().}(hjn`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhL/var/lib/git/docbuild/linux/Documentation/mm/damon/api:20: ./mm/damon/core.chMhj_ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjQhhhNhNubj%)}(hhh]h}(h]h ]h"]h$]h&]entries](j1)damos_filters_default_reject (C function)c.damos_filters_default_rejecthNtauh1j$hjQhhhNhNubj7)}(hhh](j<)}(h=bool damos_filters_default_reject (struct list_head *filters)h]jB)}(hfn ` and :c:type:`damon_call_control->data ` of **control**. If :c:type:`damon_call_control->repeat ` of **control** is unset, further wait until the kdamond finishes handling of the request. Otherwise, return as soon as the request is made. The kdamond executes the function with the argument in the main loop, just after a sampling of the iteration is finished. The function can hence safely access the internal data of the :c:type:`struct damon_ctx ` without additional synchronization. The return value of the function will be saved in :c:type:`damon_call_control->return_code `. Note that this function should be called only after damon_start() with the **ctx** has succeeded. Otherwise, this function could fall into an indefinite wait. **Return** 0 on success, negative error code otherwise.h](h)}(h**Parameters**h]j)}(hjnh]h Parameters}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1hhL/var/lib/git/docbuild/linux/Documentation/mm/damon/api:20: ./mm/damon/core.chMIhjnubj7)}(hhh](j<)}(hB``struct damon_ctx *ctx`` DAMON context to call the function for. h](jB)}(h``struct damon_ctx *ctx``h]h)}(hjnh]hstruct damon_ctx *ctx}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjnubah}(h]h ]h"]h$]h&]uh1jAhL/var/lib/git/docbuild/linux/Documentation/mm/damon/api:20: ./mm/damon/core.chMFhjnubj\)}(hhh]h)}(h'DAMON context to call the function for.h]h'DAMON context to call the function for.}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjnhMFhjnubah}(h]h ]h"]h$]h&]uh1j[hjnubeh}(h]h ]h"]h$]h&]uh1j;hjnhMFhjnubj<)}(hM``struct damon_call_control *control`` Control variable of the call request. h](jB)}(h&``struct damon_call_control *control``h]h)}(hjnh]h"struct damon_call_control *control}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjnubah}(h]h ]h"]h$]h&]uh1jAhL/var/lib/git/docbuild/linux/Documentation/mm/damon/api:20: ./mm/damon/core.chMGhjnubj\)}(hhh]h)}(h%Control variable of the call request.h]h%Control variable of the call request.}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjnhMGhjnubah}(h]h ]h"]h$]h&]uh1j[hjnubeh}(h]h ]h"]h$]h&]uh1j;hjnhMGhjnubeh}(h]h ]h"]h$]h&]uh1j6hjnubh)}(h**Description**h]j)}(hjoh]h Description}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1hhL/var/lib/git/docbuild/linux/Documentation/mm/damon/api:20: ./mm/damon/core.chMIhjnubh)}(hXAsk DAMON worker thread (kdamond) of **ctx** to call a function with an argument data that respectively passed via :c:type:`damon_call_control->fn ` and :c:type:`damon_call_control->data ` of **control**. If :c:type:`damon_call_control->repeat ` of **control** is unset, further wait until the kdamond finishes handling of the request. Otherwise, return as soon as the request is made.h](h%Ask DAMON worker thread (kdamond) of }(hj0ohhhNhNubj)}(h**ctx**h]hctx}(hj8ohhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0oubhG to call a function with an argument data that respectively passed via }(hj0ohhhNhNubh)}(h5:c:type:`damon_call_control->fn `h]h)}(hjLoh]hdamon_call_control->fn}(hjNohhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhjJoubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj damon_call_controluh1hhL/var/lib/git/docbuild/linux/Documentation/mm/damon/api:20: ./mm/damon/core.chMHhj0oubh and }(hj0ohhhNhNubh)}(h7:c:type:`damon_call_control->data `h]h)}(hjpoh]hdamon_call_control->data}(hjrohhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhjnoubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj damon_call_controluh1hhjiohMHhj0oubh of }(hj0ohhhNhNubj)}(h **control**h]hcontrol}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0oubh. If }(hj0ohhhNhNubh)}(h9:c:type:`damon_call_control->repeat `h]h)}(hjoh]hdamon_call_control->repeat}(hjohhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhjoubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj damon_call_controluh1hhjiohMHhj0oubh of }(hj0ohhhNhNubj)}(h **control**h]hcontrol}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0oubh~ is unset, further wait until the kdamond finishes handling of the request. Otherwise, return as soon as the request is made.}(hj0ohhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjiohMHhjnubh)}(hXvThe kdamond executes the function with the argument in the main loop, just after a sampling of the iteration is finished. The function can hence safely access the internal data of the :c:type:`struct damon_ctx ` without additional synchronization. The return value of the function will be saved in :c:type:`damon_call_control->return_code `.h](hThe kdamond executes the function with the argument in the main loop, just after a sampling of the iteration is finished. The function can hence safely access the internal data of the }(hjohhhNhNubh)}(h&:c:type:`struct damon_ctx `h]h)}(hjoh]hstruct damon_ctx}(hjohhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhjoubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj  damon_ctxuh1hhL/var/lib/git/docbuild/linux/Documentation/mm/damon/api:20: ./mm/damon/core.chMNhjoubhX without additional synchronization. The return value of the function will be saved in }(hjohhhNhNubh)}(h>:c:type:`damon_call_control->return_code `h]h)}(hj ph]hdamon_call_control->return_code}(hjphhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhj pubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj damon_call_controluh1hhjphMNhjoubh.}(hjohhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjphMNhjnubh)}(hNote that this function should be called only after damon_start() with the **ctx** has succeeded. Otherwise, this function could fall into an indefinite wait.h](hKNote that this function should be called only after damon_start() with the }(hj3phhhNhNubj)}(h**ctx**h]hctx}(hj;phhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3pubhM has succeeded. Otherwise, this function could fall into an indefinite wait.}(hj3phhhNhNubeh}(h]h ]h"]h$]h&]uh1hhL/var/lib/git/docbuild/linux/Documentation/mm/damon/api:20: ./mm/damon/core.chMThjnubh)}(h **Return**h]j)}(hjVph]hReturn}(hjXphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTpubah}(h]h ]h"]h$]h&]uh1hhL/var/lib/git/docbuild/linux/Documentation/mm/damon/api:20: ./mm/damon/core.chMXhjnubh)}(h,0 on success, negative error code otherwise.h]h,0 on success, negative error code otherwise.}(hjlphhhNhNubah}(h]h ]h"]h$]h&]uh1hhL/var/lib/git/docbuild/linux/Documentation/mm/damon/api:20: ./mm/damon/core.chMYhjnubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjQhhhNhNubj%)}(hhh]h}(h]h ]h"]h$]h&]entries](j1damos_walk (C function) c.damos_walkhNtauh1j$hjQhhhNhNubj7)}(hhh](j<)}(hJint damos_walk (struct damon_ctx *ctx, struct damos_walk_control *control)h]jB)}(hIint damos_walk(struct damon_ctx *ctx, struct damos_walk_control *control)h](jQ)}(hinth]hint}(hjphhhNhNubah}(h]h ]jQah"]h$]h&]uh1jQhjphhhL/var/lib/git/docbuild/linux/Documentation/mm/damon/api:20: ./mm/damon/core.chMrubjZ)}(h h]h }(hjphhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjphhhjphMrubjk)}(h damos_walkh]jq)}(h damos_walkh]h damos_walk}(hjphhhNhNubah}(h]h ]j|ah"]h$]h&]uh1jphjpubah}(h]h ](jjeh"]h$]h&]hhuh1jjhjphhhjphMrubj R)}(h;(struct damon_ctx *ctx, struct damos_walk_control *control)h](jR)}(hstruct damon_ctx *ctxh](jH)}(hjKh]hstruct}(hjphhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjpubjZ)}(h h]h }(hjphhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjpubh)}(hhh]jq)}(h damon_ctxh]h damon_ctx}(hjphhhNhNubah}(h]h ]j|ah"]h$]h&]uh1jphjpubah}(h]h ]h"]h$]h&] refdomainjreftypej% reftargetjpmodnameN classnameNjj)}j ]j%)}j%jpsb c.damos_walkasbuh1hhjpubjZ)}(h h]h }(hjqhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjpubjS)}(hjSh]h*}(hj$qhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jShjpubjq)}(hctxh]hctx}(hj1qhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1jphjpubeh}(h]h ]h"]h$]h&]noemphhhuh1jRhjpubjR)}(h"struct damos_walk_control *controlh](jH)}(hjKh]hstruct}(hjJqhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjFqubjZ)}(h h]h }(hjWqhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjFqubh)}(hhh]jq)}(hdamos_walk_controlh]hdamos_walk_control}(hjhqhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1jphjequbah}(h]h ]h"]h$]h&] refdomainjreftypej% reftargetjjqmodnameN classnameNjj)}j ]jq c.damos_walkasbuh1hhjFqubjZ)}(h h]h }(hjqhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjFqubjS)}(hjSh]h*}(hjqhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jShjFqubjq)}(hcontrolh]hcontrol}(hjqhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1jphjFqubeh}(h]h ]h"]h$]h&]noemphhhuh1jRhjpubeh}(h]h ]h"]h$]h&]hhuh1j RhjphhhjphMrubeh}(h]h ]h"]h$]h&]hhjuh1jAjjhjphhhjphMrubah}(h]jpah ](jjeh"]h$]h&]jj)jhuh1j;hjphMrhjphhubj)}(hhh]h)}(h2Invoke a given functions while DAMOS walk regions.h]h2Invoke a given functions while DAMOS walk regions.}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhL/var/lib/git/docbuild/linux/Documentation/mm/damon/api:20: ./mm/damon/core.chMrhjqhhubah}(h]h ]h"]h$]h&]uh1jhjphhhjphMrubeh}(h]h ](jfunctioneh"]h$]h&]jjjjqjjqjjjuh1j6hhhjQhNhNubj)}(hX**Parameters** ``struct damon_ctx *ctx`` DAMON context to call the functions for. ``struct damos_walk_control *control`` Control variable of the walk request. **Description** Ask DAMON worker thread (kdamond) of **ctx** to call a function for each region that the kdamond will apply DAMOS action to, and wait until the kdamond finishes handling of the request. The kdamond executes the given function in the main loop, for each region just after it applied any DAMOS actions of **ctx** to it. The invocation is made only within one :c:type:`damos->apply_interval_us ` since damos_walk() invocation, for each scheme. The given callback function can hence safely access the internal data of :c:type:`struct damon_ctx ` and :c:type:`struct damon_region ` that each of the scheme will apply the action for next interval, without additional synchronizations against the kdamond. If every scheme of **ctx** passed at least one :c:type:`damos->apply_interval_us `, kdamond marks the request as completed so that damos_walk() can wakeup and return. Note that this function should be called only after damon_start() with the **ctx** has succeeded. Otherwise, this function could fall into an indefinite wait. **Return** 0 on success, negative error code otherwise.h](h)}(h**Parameters**h]j)}(hjqh]h Parameters}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1hhL/var/lib/git/docbuild/linux/Documentation/mm/damon/api:20: ./mm/damon/core.chMvhjqubj7)}(hhh](j<)}(hC``struct damon_ctx *ctx`` DAMON context to call the functions for. h](jB)}(h``struct damon_ctx *ctx``h]h)}(hj rh]hstruct damon_ctx *ctx}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj rubah}(h]h ]h"]h$]h&]uh1jAhL/var/lib/git/docbuild/linux/Documentation/mm/damon/api:20: ./mm/damon/core.chMshjrubj\)}(hhh]h)}(h(DAMON context to call the functions for.h]h(DAMON context to call the functions for.}(hj%rhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj!rhMshj"rubah}(h]h ]h"]h$]h&]uh1j[hjrubeh}(h]h ]h"]h$]h&]uh1j;hj!rhMshjrubj<)}(hM``struct damos_walk_control *control`` Control variable of the walk request. h](jB)}(h&``struct damos_walk_control *control``h]h)}(hjErh]h"struct damos_walk_control *control}(hjGrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjCrubah}(h]h ]h"]h$]h&]uh1jAhL/var/lib/git/docbuild/linux/Documentation/mm/damon/api:20: ./mm/damon/core.chMthj?rubj\)}(hhh]h)}(h%Control variable of the walk request.h]h%Control variable of the walk request.}(hj^rhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjZrhMthj[rubah}(h]h ]h"]h$]h&]uh1j[hj?rubeh}(h]h ]h"]h$]h&]uh1j;hjZrhMthjrubeh}(h]h ]h"]h$]h&]uh1j6hjqubh)}(h**Description**h]j)}(hjrh]h Description}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~rubah}(h]h ]h"]h$]h&]uh1hhL/var/lib/git/docbuild/linux/Documentation/mm/damon/api:20: ./mm/damon/core.chMvhjqubh)}(hAsk DAMON worker thread (kdamond) of **ctx** to call a function for each region that the kdamond will apply DAMOS action to, and wait until the kdamond finishes handling of the request.h](h%Ask DAMON worker thread (kdamond) of }(hjrhhhNhNubj)}(h**ctx**h]hctx}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubh to call a function for each region that the kdamond will apply DAMOS action to, and wait until the kdamond finishes handling of the request.}(hjrhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhL/var/lib/git/docbuild/linux/Documentation/mm/damon/api:20: ./mm/damon/core.chMuhjqubh)}(hXThe kdamond executes the given function in the main loop, for each region just after it applied any DAMOS actions of **ctx** to it. The invocation is made only within one :c:type:`damos->apply_interval_us ` since damos_walk() invocation, for each scheme. The given callback function can hence safely access the internal data of :c:type:`struct damon_ctx ` and :c:type:`struct damon_region ` that each of the scheme will apply the action for next interval, without additional synchronizations against the kdamond. If every scheme of **ctx** passed at least one :c:type:`damos->apply_interval_us `, kdamond marks the request as completed so that damos_walk() can wakeup and return.h](huThe kdamond executes the given function in the main loop, for each region just after it applied any DAMOS actions of }(hjrhhhNhNubj)}(h**ctx**h]hctx}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubh0 to it. The invocation is made only within one }(hjrhhhNhNubh)}(h*:c:type:`damos->apply_interval_us `h]h)}(hjrh]hdamos->apply_interval_us}(hjrhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhjrubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj damosuh1hhL/var/lib/git/docbuild/linux/Documentation/mm/damon/api:20: ./mm/damon/core.chMyhjrubh{ since damos_walk() invocation, for each scheme. The given callback function can hence safely access the internal data of }(hjrhhhNhNubh)}(h&:c:type:`struct damon_ctx `h]h)}(hjrh]hstruct damon_ctx}(hjrhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhjrubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj  damon_ctxuh1hhjrhMyhjrubh and }(hjrhhhNhNubh)}(h,:c:type:`struct damon_region `h]h)}(hjsh]hstruct damon_region}(hjshhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhjsubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj  damon_regionuh1hhjrhMyhjrubh that each of the scheme will apply the action for next interval, without additional synchronizations against the kdamond. If every scheme of }(hjrhhhNhNubj)}(h**ctx**h]hctx}(hj;shhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubh passed at least one }(hjrhhhNhNubh)}(h*:c:type:`damos->apply_interval_us `h]h)}(hjOsh]hdamos->apply_interval_us}(hjQshhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhjMsubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj damosuh1hhjrhMyhjrubhT, kdamond marks the request as completed so that damos_walk() can wakeup and return.}(hjrhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjrhMyhjqubh)}(hNote that this function should be called only after damon_start() with the **ctx** has succeeded. Otherwise, this function could fall into an indefinite wait.h](hKNote that this function should be called only after damon_start() with the }(hjvshhhNhNubj)}(h**ctx**h]hctx}(hj~shhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvsubhM has succeeded. Otherwise, this function could fall into an indefinite wait.}(hjvshhhNhNubeh}(h]h ]h"]h$]h&]uh1hhL/var/lib/git/docbuild/linux/Documentation/mm/damon/api:20: ./mm/damon/core.chMhjqubh)}(h **Return**h]j)}(hjsh]hReturn}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1hhL/var/lib/git/docbuild/linux/Documentation/mm/damon/api:20: ./mm/damon/core.chMhjqubh)}(h,0 on success, negative error code otherwise.h]h,0 on success, negative error code otherwise.}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhL/var/lib/git/docbuild/linux/Documentation/mm/damon/api:20: ./mm/damon/core.chMhjqubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjQhhhNhNubj%)}(hhh]h}(h]h ]h"]h$]h&]entries](j11damon_set_region_system_rams_default (C function)&c.damon_set_region_system_rams_defaulthNtauh1j$hjQhhhNhNubj7)}(hhh](j<)}(hint damon_set_region_system_rams_default (struct damon_target *t, unsigned long *start, unsigned long *end, unsigned long addr_unit, unsigned long min_region_sz)h]jB)}(hint damon_set_region_system_rams_default(struct damon_target *t, unsigned long *start, unsigned long *end, unsigned long addr_unit, unsigned long min_region_sz)h](jQ)}(hinth]hint}(hjshhhNhNubah}(h]h ]jQah"]h$]h&]uh1jQhjshhhL/var/lib/git/docbuild/linux/Documentation/mm/damon/api:20: ./mm/damon/core.chMmubjZ)}(h h]h }(hjshhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjshhhjshMmubjk)}(h$damon_set_region_system_rams_defaulth]jq)}(h$damon_set_region_system_rams_defaulth]h$damon_set_region_system_rams_default}(hjshhhNhNubah}(h]h ]j|ah"]h$]h&]uh1jphjsubah}(h]h ](jjeh"]h$]h&]hhuh1jjhjshhhjshMmubj R)}(hx(struct damon_target *t, unsigned long *start, unsigned long *end, unsigned long addr_unit, unsigned long min_region_sz)h](jR)}(hstruct damon_target *th](jH)}(hjKh]hstruct}(hjthhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjtubjZ)}(h h]h }(hj(thhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjtubh)}(hhh]jq)}(h damon_targeth]h damon_target}(hj9thhhNhNubah}(h]h ]j|ah"]h$]h&]uh1jphj6tubah}(h]h ]h"]h$]h&] refdomainjreftypej% reftargetj;tmodnameN classnameNjj)}j ]j%)}j%jtsb&c.damon_set_region_system_rams_defaultasbuh1hhjtubjZ)}(h h]h }(hjYthhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjtubjS)}(hjSh]h*}(hjgthhhNhNubah}(h]h ]jSah"]h$]h&]uh1jShjtubjq)}(hth]ht}(hjtthhhNhNubah}(h]h ]j|ah"]h$]h&]uh1jphjtubeh}(h]h ]h"]h$]h&]noemphhhuh1jRhjtubjR)}(hunsigned long *starth](jQ)}(hunsignedh]hunsigned}(hjthhhNhNubah}(h]h ]jQah"]h$]h&]uh1jQhjtubjZ)}(h h]h }(hjthhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjtubjQ)}(hlongh]hlong}(hjthhhNhNubah}(h]h ]jQah"]h$]h&]uh1jQhjtubjZ)}(h h]h }(hjthhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjtubjS)}(hjSh]h*}(hjthhhNhNubah}(h]h ]jSah"]h$]h&]uh1jShjtubjq)}(hstarth]hstart}(hjthhhNhNubah}(h]h ]j|ah"]h$]h&]uh1jphjtubeh}(h]h ]h"]h$]h&]noemphhhuh1jRhjtubjR)}(hunsigned long *endh](jQ)}(hunsignedh]hunsigned}(hjthhhNhNubah}(h]h ]jQah"]h$]h&]uh1jQhjtubjZ)}(h h]h }(hjthhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjtubjQ)}(hlongh]hlong}(hjuhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jQhjtubjZ)}(h h]h }(hjuhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjtubjS)}(hjSh]h*}(hj#uhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jShjtubjq)}(hendh]hend}(hj0uhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1jphjtubeh}(h]h ]h"]h$]h&]noemphhhuh1jRhjtubjR)}(hunsigned long addr_unith](jQ)}(hunsignedh]hunsigned}(hjIuhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jQhjEuubjZ)}(h h]h }(hjWuhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjEuubjQ)}(hlongh]hlong}(hjeuhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jQhjEuubjZ)}(h h]h }(hjsuhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjEuubjq)}(h addr_unith]h addr_unit}(hjuhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1jphjEuubeh}(h]h ]h"]h$]h&]noemphhhuh1jRhjtubjR)}(hunsigned long min_region_szh](jQ)}(hunsignedh]hunsigned}(hjuhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jQhjuubjZ)}(h h]h }(hjuhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjuubjQ)}(hlongh]hlong}(hjuhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jQhjuubjZ)}(h h]h }(hjuhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjuubjq)}(h min_region_szh]h min_region_sz}(hjuhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1jphjuubeh}(h]h ]h"]h$]h&]noemphhhuh1jRhjtubeh}(h]h ]h"]h$]h&]hhuh1j RhjshhhjshMmubeh}(h]h ]h"]h$]h&]hhjuh1jAjjhjshhhjshMmubah}(h]jsah ](jjeh"]h$]h&]jj)jhuh1j;hjshMmhjshhubj)}(hhh]h)}(hcSet the region of the given monitoring target as requested, or to cover all 'System RAM' resources.h]hgSet the region of the given monitoring target as requested, or to cover all ‘System RAM’ resources.}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhL/var/lib/git/docbuild/linux/Documentation/mm/damon/api:20: ./mm/damon/core.chMmhjuhhubah}(h]h ]h"]h$]h&]uh1jhjshhhjshMmubeh}(h]h ](jfunctioneh"]h$]h&]jjjjvjjvjjjuh1j6hhhjQhNhNubj)}(hX3**Parameters** ``struct damon_target *t`` The monitoring target to set the region. ``unsigned long *start`` The pointer to the start address of the region. ``unsigned long *end`` The pointer to the end address of the region. ``unsigned long addr_unit`` The address unit for the damon_ctx of **t**. ``unsigned long min_region_sz`` Minimum region size. **Description** This function sets the region of **t** as requested by **start** and **end**. If the values of **start** and **end** are zero, however, this function finds 'System RAM' resources and sets the region to cover all the resource. In the latter case, this function saves the start and the end addresseses of the first and the last resources in **start** and **end**, respectively. **Return** 0 on success, negative error code otherwise.h](h)}(h**Parameters**h]j)}(hjvh]h Parameters}(hj vhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1hhL/var/lib/git/docbuild/linux/Documentation/mm/damon/api:20: ./mm/damon/core.chMqhjvubj7)}(hhh](j<)}(hD``struct damon_target *t`` The monitoring target to set the region. h](jB)}(h``struct damon_target *t``h]h)}(hj=vh]hstruct damon_target *t}(hj?vhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj;vubah}(h]h ]h"]h$]h&]uh1jAhL/var/lib/git/docbuild/linux/Documentation/mm/damon/api:20: ./mm/damon/core.chMohj7vubj\)}(hhh]h)}(h(The monitoring target to set the region.h]h(The monitoring target to set the region.}(hjVvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjRvhMohjSvubah}(h]h ]h"]h$]h&]uh1j[hj7vubeh}(h]h ]h"]h$]h&]uh1j;hjRvhMohj4vubj<)}(hI``unsigned long *start`` The pointer to the start address of the region. h](jB)}(h``unsigned long *start``h]h)}(hjvvh]hunsigned long *start}(hjxvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjtvubah}(h]h ]h"]h$]h&]uh1jAhL/var/lib/git/docbuild/linux/Documentation/mm/damon/api:20: ./mm/damon/core.chMphjpvubj\)}(hhh]h)}(h/The pointer to the start address of the region.h]h/The pointer to the start address of the region.}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjvhMphjvubah}(h]h ]h"]h$]h&]uh1j[hjpvubeh}(h]h ]h"]h$]h&]uh1j;hjvNKhMphj4vubj<)}(hE``unsigned long *end`` The pointer to the end address of the region. h](jB)}(h``unsigned long *end``h]h)}(hjvh]hunsigned long *end}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjvubah}(h]h ]h"]h$]h&]uh1jAhL/var/lib/git/docbuild/linux/Documentation/mm/damon/api:20: ./mm/damon/core.chMqhjvubj\)}(hhh]h)}(h-The pointer to the end address of the region.h]h-The pointer to the end address of the region.}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjvhMqhjvubah}(h]h ]h"]h$]h&]uh1j[hjvubeh}(h]h ]h"]h$]h&]uh1j;hjvhMqhj4vubj<)}(hI``unsigned long addr_unit`` The address unit for the damon_ctx of **t**. h](jB)}(h``unsigned long addr_unit``h]h)}(hjvh]hunsigned long addr_unit}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjvubah}(h]h ]h"]h$]h&]uh1jAhL/var/lib/git/docbuild/linux/Documentation/mm/damon/api:20: ./mm/damon/core.chMrhjvubj\)}(hhh]h)}(h,The address unit for the damon_ctx of **t**.h](h&The address unit for the damon_ctx of }(hjwhhhNhNubj)}(h**t**h]ht}(hj whhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubh.}(hjwhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjvhMrhjvubah}(h]h ]h"]h$]h&]uh1j[hjvubeh}(h]h ]h"]h$]h&]uh1j;hjvhMrhj4vubj<)}(h5``unsigned long min_region_sz`` Minimum region size. h](jB)}(h``unsigned long min_region_sz``h]h)}(hj3wh]hunsigned long min_region_sz}(hj5whhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1wubah}(h]h ]h"]h$]h&]uh1jAhL/var/lib/git/docbuild/linux/Documentation/mm/damon/api:20: ./mm/damon/core.chMshj-wubj\)}(hhh]h)}(hMinimum region size.h]hMinimum region size.}(hjLwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjHwhMshjIwubah}(h]h ]h"]h$]h&]uh1j[hj-wubeh}(h]h ]h"]h$]h&]uh1j;hjHwhMshj4vubeh}(h]h ]h"]h$]h&]uh1j6hjvubh)}(h**Description**h]j)}(hjnwh]h Description}(hjpwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlwubah}(h]h ]h"]h$]h&]uh1hhL/var/lib/git/docbuild/linux/Documentation/mm/damon/api:20: ./mm/damon/core.chMuhjvubh)}(hXyThis function sets the region of **t** as requested by **start** and **end**. If the values of **start** and **end** are zero, however, this function finds 'System RAM' resources and sets the region to cover all the resource. In the latter case, this function saves the start and the end addresseses of the first and the last resources in **start** and **end**, respectively.h](h!This function sets the region of }(hjwhhhNhNubj)}(h**t**h]ht}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubh as requested by }(hjwhhhNhNubj)}(h **start**h]hstart}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubh and }(hjwhhhNhNubj)}(h**end**h]hend}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubh. If the values of }(hjwhhhNhNubj)}(h **start**h]hstart}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubh and }hjwsbj)}(h**end**h]hend}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubh are zero, however, this function finds ‘System RAM’ resources and sets the region to cover all the resource. In the latter case, this function saves the start and the end addresseses of the first and the last resources in }(hjwhhhNhNubj)}(h **start**h]hstart}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubh and }hjwsbj)}(h**end**h]hend}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubh, respectively.}(hjwhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhL/var/lib/git/docbuild/linux/Documentation/mm/damon/api:20: ./mm/damon/core.chMthjvubh)}(h **Return**h]j)}(hjxh]hReturn}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1hhL/var/lib/git/docbuild/linux/Documentation/mm/damon/api:20: ./mm/damon/core.chMzhjvubh)}(h,0 on success, negative error code otherwise.h]h,0 on success, negative error code otherwise.}(hj)xhhhNhNubah}(h]h ]h"]h$]h&]uh1hhL/var/lib/git/docbuild/linux/Documentation/mm/damon/api:20: ./mm/damon/core.chM{hjvubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjQhhhNhNubj%)}(hhh]h}(h]h ]h"]h$]h&]entries](j1,damon_update_region_access_rate (C function)!c.damon_update_region_access_ratehNtauh1j$hjQhhhNhNubj7)}(hhh](j<)}(hgvoid damon_update_region_access_rate (struct damon_region *r, bool accessed, struct damon_attrs *attrs)h]jB)}(hfvoid damon_update_region_access_rate(struct damon_region *r, bool accessed, struct damon_attrs *attrs)h](jQ)}(hvoidh]hvoid}(hjXxhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jQhjTxhhhL/var/lib/git/docbuild/linux/Documentation/mm/damon/api:20: ./mm/damon/core.chMubjZ)}(h h]h }(hjgxhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjTxhhhjfxhMubjk)}(hdamon_update_region_access_rateh]jq)}(hdamon_update_region_access_rateh]hdamon_update_region_access_rate}(hjyxhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1jphjuxubah}(h]h ](jjeh"]h$]h&]hhuh1jjhjTxhhhjfxhMubj R)}(hB(struct damon_region *r, bool accessed, struct damon_attrs *attrs)h](jR)}(hstruct damon_region *rh](jH)}(hjKh]hstruct}(hjxhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjxubjZ)}(h h]h }(hjxhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjxubh)}(hhh]jq)}(h damon_regionh]h damon_region}(hjxhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1jphjxubah}(h]h ]h"]h$]h&] refdomainjreftypej% reftargetjxmodnameN classnameNjj)}j ]j%)}j%j{xsb!c.damon_update_region_access_rateasbuh1hhjxubjZ)}(h h]h }(hjxhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjxubjS)}(hjSh]h*}(hjxhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jShjxubjq)}(hrh]hr}(hjxhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1jphjxubeh}(h]h ]h"]h$]h&]noemphhhuh1jRhjxubjR)}(h bool accessedh](jQ)}(hjQh]hbool}(hjyhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jQhjyubjZ)}(h h]h }(hjyhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjyubjq)}(haccessedh]haccessed}(hj"yhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1jphjyubeh}(h]h ]h"]h$]h&]noemphhhuh1jRhjxubjR)}(hstruct damon_attrs *attrsh](jH)}(hjKh]hstruct}(hj;yhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj7yubjZ)}(h h]h }(hjHyhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj7yubh)}(hhh]jq)}(h damon_attrsh]h damon_attrs}(hjYyhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1jphjVyubah}(h]h ]h"]h$]h&] refdomainjreftypej% reftargetj[ymodnameN classnameNjj)}j ]jx!c.damon_update_region_access_rateasbuh1hhj7yubjZ)}(h h]h }(hjwyhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj7yubjS)}(hjSh]h*}(hjyhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jShj7yubjq)}(hattrsh]hattrs}(hjyhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1jphj7yubeh}(h]h ]h"]h$]h&]noemphhhuh1jRhjxubeh}(h]h ]h"]h$]h&]hhuh1j RhjTxhhhjfxhMubeh}(h]h ]h"]h$]h&]hhjuh1jAjjhjPxhhhjfxhMubah}(h]jKxah ](jjeh"]h$]h&]jj)jhuh1j;hjfxhMhjMxhhubj)}(hhh]h)}(h#Update the access rate of a region.h]h#Update the access rate of a region.}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhL/var/lib/git/docbuild/linux/Documentation/mm/damon/api:20: ./mm/damon/core.chMhjyhhubah}(h]h ]h"]h$]h&]uh1jhjMxhhhjfxhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjyjjyjjjuh1j6hhhjQhNhNubj)}(hX**Parameters** ``struct damon_region *r`` The DAMON region to update for its access check result. ``bool accessed`` Whether the region has accessed during last sampling interval. ``struct damon_attrs *attrs`` The damon_attrs of the DAMON context. **Description** Update the access rate of a region with the region's last sampling interval access check result. Usually this will be called by :c:type:`damon_operations->check_accesses ` callback.h](h)}(h**Parameters**h]j)}(hjyh]h Parameters}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1hhL/var/lib/git/docbuild/linux/Documentation/mm/damon/api:20: ./mm/damon/core.chMhjyubj7)}(hhh](j<)}(hS``struct damon_region *r`` The DAMON region to update for its access check result. h](jB)}(h``struct damon_region *r``h]h)}(hjyh]hstruct damon_region *r}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjyubah}(h]h ]h"]h$]h&]uh1jAhL/var/lib/git/docbuild/linux/Documentation/mm/damon/api:20: ./mm/damon/core.chMhjyubj\)}(hhh]h)}(h7The DAMON region to update for its access check result.h]h7The DAMON region to update for its access check result.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjzhMhjzubah}(h]h ]h"]h$]h&]uh1j[hjyubeh}(h]h ]h"]h$]h&]uh1j;hjzhMhjyubj<)}(hQ``bool accessed`` Whether the region has accessed during last sampling interval. h](jB)}(h``bool accessed``h]h)}(hj6zh]h bool accessed}(hj8zhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4zubah}(h]h ]h"]h$]h&]uh1jAhL/var/lib/git/docbuild/linux/Documentation/mm/damon/api:20: ./mm/damon/core.chMhj0zubj\)}(hhh]h)}(h>Whether the region has accessed during last sampling interval.h]h>Whether the region has accessed during last sampling interval.}(hjOzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjKzhMhjLzubah}(h]h ]h"]h$]h&]uh1j[hj0zubeh}(h]h ]h"]h$]h&]uh1j;hjKzhMhjyubj<)}(hD``struct damon_attrs *attrs`` The damon_attrs of the DAMON context. h](jB)}(h``struct damon_attrs *attrs``h]h)}(hjozh]hstruct damon_attrs *attrs}(hjqzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjmzubah}(h]h ]h"]h$]h&]uh1jAhL/var/lib/git/docbuild/linux/Documentation/mm/damon/api:20: ./mm/damon/core.chMhjizubj\)}(hhh]h)}(h%The damon_attrs of the DAMON context.h]h%The damon_attrs of the DAMON context.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjzhMhjzubah}(h]h ]h"]h$]h&]uh1j[hjizubeh}(h]h ]h"]h$]h&]uh1j;hjzhMhjyubeh}(h]h ]h"]h$]h&]uh1j6hjyubh)}(h**Description**h]j)}(hjzh]h Description}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1hhL/var/lib/git/docbuild/linux/Documentation/mm/damon/api:20: ./mm/damon/core.chMhjyubh)}(h`Update the access rate of a region with the region's last sampling interval access check result.h]hbUpdate the access rate of a region with the region’s last sampling interval access check result.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhL/var/lib/git/docbuild/linux/Documentation/mm/damon/api:20: ./mm/damon/core.chMhjyubh)}(hfUsually this will be called by :c:type:`damon_operations->check_accesses ` callback.h](hUsually this will be called by }(hjzhhhNhNubh)}(h=:c:type:`damon_operations->check_accesses `h]h)}(hjzh]h damon_operations->check_accesses}(hjzhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhjzubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj damon_operationsuh1hhL/var/lib/git/docbuild/linux/Documentation/mm/damon/api:20: ./mm/damon/core.chMhjzubh callback.}(hjzhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjzhMhjyubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjQhhhNhNubj%)}(hhh]h}(h]h ]h"]h$]h&]entries](j1damon_initialized (C function)c.damon_initializedhNtauh1j$hjQhhhNhNubj7)}(hhh](j<)}(hbool damon_initialized (void)h]jB)}(hbool damon_initialized(void)h](jQ)}(hjQh]hbool}(hj!{hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jQhj{hhhL/var/lib/git/docbuild/linux/Documentation/mm/damon/api:20: ./mm/damon/core.chMubjZ)}(h h]h }(hj/{hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj{hhhj.{hMubjk)}(hdamon_initializedh]jq)}(hdamon_initializedh]hdamon_initialized}(hjA{hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1jphj={ubah}(h]h ](jjeh"]h$]h&]hhuh1jjhj{hhhj.{hMubj R)}(h(void)h]jR)}(hvoidh]jQ)}(hvoidh]hvoid}(hj]{hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jQhjY{ubah}(h]h ]h"]h$]h&]noemphhhuh1jRhjU{ubah}(h]h ]h"]h$]h&]hhuh1j Rhj{hhhj.{hMubeh}(h]h ]h"]h$]h&]hhjuh1jAjjhj{hhhj.{hMubah}(h]j{ah ](jjeh"]h$]h&]jj)jhuh1j;hj.{hMhj{hhubj)}(hhh]h)}(h$Return if DAMON is ready to be used.h]h$Return if DAMON is ready to be used.}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhL/var/lib/git/docbuild/linux/Documentation/mm/damon/api:20: ./mm/damon/core.chMhj{hhubah}(h]h ]h"]h$]h&]uh1jhj{hhhj.{hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj{jj{jjjuh1j6hhhjQhNhNubj)}(hh**Parameters** ``void`` no arguments **Return** true if DAMON is ready to be used, false otherwise.h](h)}(h**Parameters**h]j)}(hj{h]h Parameters}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]uh1hhL/var/lib/git/docbuild/linux/Documentation/mm/damon/api:20: ./mm/damon/core.chMhj{ubj7)}(hhh]j<)}(h``void`` no arguments h](jB)}(h``void``h]h)}(hj{h]hvoid}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj{ubah}(h]h ]h"]h$]h&]uh1jAhL/var/lib/git/docbuild/linux/Documentation/mm/damon/api:20: ./mm/damon/core.chKhj{ubj\)}(hhh]h)}(h no argumentsh]h no arguments}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj{hKhj{ubah}(h]h ]h"]h$]h&]uh1j[hj{ubeh}(h]h ]h"]h$]h&]uh1j;hj{hKhj{ubah}(h]h ]h"]h$]h&]uh1j6hj{ubh)}(h **Return**h]j)}(hj|h]hReturn}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]uh1hhL/var/lib/git/docbuild/linux/Documentation/mm/damon/api:20: ./mm/damon/core.chKhj{ubh)}(h3true if DAMON is ready to be used, false otherwise.h]h3true if DAMON is ready to be used, false otherwise.}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhL/var/lib/git/docbuild/linux/Documentation/mm/damon/api:20: ./mm/damon/core.chMhj{ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjQhhhNhNubeh}(h] functionsah ]h"] functionsah$]h&]uh1hhhhhhhhKubeh}(h] api-referenceah ]h"] api referenceah$]h&]uh1hhhhhhhhKubeh}(h]h ]h"]h$]h&]sourcehuh1hcurrent_sourceN current_lineNsettingsdocutils.frontendValues)}(hN generatorN datestampN source_linkN source_urlN toc_backlinksentryfootnote_backlinksK sectnum_xformKstrip_commentsNstrip_elements_with_classesN strip_classesN report_levelK halt_levelKexit_status_levelKdebugNwarning_streamN tracebackinput_encoding utf-8-siginput_encoding_error_handlerstrictoutput_encodingutf-8output_encoding_error_handlerjb|error_encodingutf-8error_encoding_error_handlerbackslashreplace language_codeenrecord_dependenciesNconfigN id_prefixhauto_id_prefixid dump_settingsNdump_internalsNdump_transformsNdump_pseudo_xmlNexpose_internalsNstrict_visitorN_disable_configN_sourcehnj _destinationN _config_files]7/var/lib/git/docbuild/linux/Documentation/docutils.confafile_insertion_enabled raw_enabledKline_length_limitM'pep_referencesN pep_base_urlhttps://peps.python.org/pep_file_url_templatepep-%04drfc_referencesN rfc_base_url&https://datatracker.ietf.org/doc/html/ tab_widthKtrim_footnote_reference_spacesyntax_highlightlong smart_quotessmartquotes_locales]character_level_inline_markupdoctitle_xform docinfo_xformKsectsubtitle_xform image_loadinglinkembed_stylesheetcloak_email_addressessection_self_linkenvNubreporterNindirect_targets]substitution_defs}substitution_names}refnames}refids}nameids}(j<|j9|jQjQj4|j1|u nametypes}(j<|jQj4|uh}(j9|hjQjj3j=jjj3j8jjjv j{ jzjjjjjjjjjjjj!j!jN%jS%j%)j*)j9-j>-j.j.j0j0j3j 3j;j;jh=jm=jBjBjEjEjFjFjsIjxIjJjJjMjMj1|jQjQjQjBSjGSjUjUjyWj~WjXjYjm[jr[j3^j8^j`j`jajajGdjLdjIejNejgjgjjjjjkjkj(mj-mjpjpjsjsjKxjPxj{j{u footnote_refs} citation_refs} autofootnotes]autofootnote_refs]symbol_footnotes]symbol_footnote_refs] footnotes] citations]autofootnote_startKsymbol_footnote_startK id_counter collectionsCounter}Rparse_messages]transform_messages] transformerN include_log] decorationNhhub.