| /linux/tools/testing/selftests/damon/ |
| H A D | damos_quota_goal.py | 17 goal = _damon_sysfs.DamosQuotaGoal( 26 goals=[goal], reset_interval_ms=100), 42 goal.current_value = score_values_to_test.pop(0) 43 expect_increase = goal.current_value < goal.target_value 54 last_effective_bytes = goal.effective_bytes 64 goal.current_value, last_effective_bytes, goal.effective_bytes, 65 goal.effective_bytes / last_effective_bytes 68 if last_effective_bytes == goal [all...] |
| H A D | drgn_dump_damon_status.py | 33 def intervals_goal_to_dict(goal): argument 34 return to_dict(goal, [ 124 def damos_quota_goal_to_dict(goal): 125 return to_dict(goal, [ 94 damos_quota_goal_to_dict(goal) global() argument
|
| H A D | _damon_sysfs.py | 133 goal_tuner = None # quota goal tuner 154 for idx, goal in enumerate(self.goals): 155 goal.idx = idx 156 goal.quota = self 197 for goal in self.goals: 198 err = goal.stage() 952 for goal in scheme.quota.goals: 958 goal.effective_bytes = int(content) 983 for goal in scheme.quota.goals: 984 err = goal [all...] |
| /linux/mm/damon/ |
| H A D | core.c | 697 struct damos_quota_goal *goal; in damon_new_scheme() 699 goal = kmalloc_obj(*goal); in damon_new_scheme() 700 if (!goal) in damon_new_scheme() 702 goal->metric = metric; in damon_new_scheme() 703 goal->complement = complement; in damon_new_scheme() 704 goal->target_value = target_value; in damon_new_scheme() 706 goal->last_psi_total = U64_MAX; in damon_new_scheme() 707 INIT_LIST_HEAD(&goal->list); in damon_new_scheme() 708 return goal; in damon_new_scheme() 631 struct damos_quota_goal *goal; damos_new_quota_goal() local 1015 struct damon_intervals_goal *goal = &attrs->intervals_goal; damon_valid_intervals_goal() local 1111 struct damos_quota_goal *goal; damos_nth_quota_goal() local 1755 struct damos_quota_goal *goal; __damon_commit_ctx() local 2258 struct damon_intervals_goal *goal; kdamond_tune_intervals() local 2754 const unsigned long goal = 10000; damon_feed_loop_next_input() local 2808 damos_get_node_mem_bp(struct damos_quota_goal * goal) damos_get_node_mem_bp() argument 2829 damos_get_node_memcg_used_bp(struct damos_quota_goal * goal) damos_get_node_memcg_used_bp() argument 2977 damos_get_node_mem_bp(struct damos_quota_goal * goal) damos_get_node_mem_bp() argument 2983 damos_get_node_memcg_used_bp(struct damos_quota_goal * goal) damos_get_node_memcg_used_bp() argument 3014 damos_set_quota_goal_current_value(struct damon_ctx * c,struct damos * s,struct damos_quota_goal * goal) damos_set_quota_goal_current_value() argument 3052 struct damos_quota_goal *goal; damos_quota_score() local [all...] |
| /linux/fs/udf/ |
| H A D | balloc.c | 225 uint32_t goal, int *err) in udf_bitmap_new_block() argument 240 if (goal >= sbi->s_partmaps[partition].s_partition_len) in udf_bitmap_new_block() 241 goal = 0; in udf_bitmap_new_block() 244 block = goal + (sizeof(struct spaceBitmapDesc) << 3); in udf_bitmap_new_block() 564 uint32_t goal, int *err) in udf_table_new_block() argument 589 if (goal >= sbi->s_partmaps[partition].s_partition_len) in udf_table_new_block() 590 goal = 0; in udf_table_new_block() 592 /* We search for the closest matching block to goal. If we find in udf_table_new_block() 605 if (goal >= eloc.logicalBlockNum) { in udf_table_new_block() 606 if (goal < eloc.logicalBlockNum + in udf_table_new_block() [all …]
|
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | test_ima.c | 100 * - Goal: obtain a sample with the bpf_ima_inode_hash() helper in test_test_ima() 114 * - Goal: obtain samples with the bpf_ima_file_hash() helper in test_test_ima() 131 * - Goal: confirm that bpf_ima_inode_hash() returns a non-fresh digest in test_test_ima() 170 * - Goal: verify that bpf_ima_file_hash() returns a fresh digest in test_test_ima() 201 * - Goal: obtain a sample from the kernel_read_file hook in test_test_ima() 219 * - Goal: ensure that the kernel_read_file hook denies an operation in test_test_ima()
|
| /linux/drivers/scsi/aic7xxx/ |
| H A D | aic79xx_osm.c | 1691 if (tinfo->curr.period != tinfo->goal.period in ahd_send_async() 1692 || tinfo->curr.width != tinfo->goal.width in ahd_send_async() 1693 || tinfo->curr.offset != tinfo->goal.offset in ahd_send_async() 1694 || tinfo->curr.ppr_options != tinfo->goal.ppr_options) in ahd_send_async() 2391 unsigned int ppr_options = tinfo->goal.ppr_options; in ahd_linux_set_period() 2394 unsigned long offset = tinfo->goal.offset; in ahd_linux_set_period() 2457 period = tinfo->goal.period; in ahd_linux_set_offset() 2458 ppr_options = tinfo->goal.ppr_options; in ahd_linux_set_offset() 2479 unsigned int ppr_options = tinfo->goal.ppr_options in ahd_linux_set_dt() 2481 unsigned int period = tinfo->goal.period; in ahd_linux_set_dt() [all …]
|
| H A D | aic7xxx_osm.c | 1618 if (tinfo->curr.period != tinfo->goal.period in ahc_send_async() 1619 || tinfo->curr.width != tinfo->goal.width in ahc_send_async() 1620 || tinfo->curr.offset != tinfo->goal.offset in ahc_send_async() 1621 || tinfo->curr.ppr_options != tinfo->goal.ppr_options) in ahc_send_async() 2348 unsigned int ppr_options = tinfo->goal.ppr_options; in ahc_linux_set_period() 2350 unsigned long offset = tinfo->goal.offset; in ahc_linux_set_period() 2403 period = tinfo->goal.period; in ahc_linux_set_offset() 2404 ppr_options = tinfo->goal.ppr_options; in ahc_linux_set_offset() 2422 unsigned int ppr_options = tinfo->goal.ppr_options in ahc_linux_set_dt() 2424 unsigned int period = tinfo->goal.period; in ahc_linux_set_dt() [all …]
|
| H A D | aic7xxx_core.c | 1862 tinfo->goal.transport_version = 2; in ahc_handle_scsiint() 1863 tinfo->goal.ppr_options = 0; in ahc_handle_scsiint() 2138 * channel, but reset our current and goal settings to async/narrow in ahc_alloc_tstate() 2148 memset(&tstate->transinfo[i].goal, 0, in ahc_alloc_tstate() 2149 sizeof(tstate->transinfo[i].goal)); in ahc_alloc_tstate() 2213 * Never allow a value higher than our current goal in ahc_devlimited_syncrate() 2225 transinfo = &tinfo->goal; in ahc_devlimited_syncrate() 2386 *offset = min(*offset, (u_int)tinfo->goal.offset); in ahc_validate_offset() 2414 *bus_width = min((u_int)tinfo->goal.width, *bus_width); in ahc_validate_width() 2444 if (tinfo->curr.period != tinfo->goal.period in ahc_update_neg_request() [all …]
|
| /linux/fs/hfs/ |
| H A D | bitmap.c | 139 u32 hfs_vbm_search_free(struct super_block *sb, u32 goal, u32 *num_bits) in hfs_vbm_search_free() argument 151 pos = hfs_find_set_zero_bits(bitmap, HFS_SB(sb)->fs_ablocks, goal, num_bits); in hfs_vbm_search_free() 153 if (goal) in hfs_vbm_search_free() 154 pos = hfs_find_set_zero_bits(bitmap, goal, 0, num_bits); in hfs_vbm_search_free()
|
| /linux/fs/xfs/ |
| H A D | xfs_icache.c | 42 * The goal for walking incore inodes. These can correspond with incore inode 52 enum xfs_icwalk_goal goal, struct xfs_icwalk *icw); 54 enum xfs_icwalk_goal goal, struct xfs_icwalk *icw); 1699 * the goal. 1703 enum xfs_icwalk_goal goal, in xfs_icwalk_igrab() argument 1707 switch (goal) { in xfs_icwalk_igrab() 1723 enum xfs_icwalk_goal goal, in xfs_icwalk_process_inode() argument 1730 switch (goal) { in xfs_icwalk_process_inode() 1742 * For a given per-AG structure @pag and a goal, grab qualifying inodes and 1748 enum xfs_icwalk_goal goal, in xfs_icwalk_ag() argument [all …]
|
| /linux/arch/riscv/kernel/ |
| H A D | machine_kexec.c | 25 * provided us with an image to be loaded. Its goal is to validate 104 * below. Its goal is to prepare the rest of the system (the other 124 * and its goal is to shutdown non-crashing cpus and save registers.
|
| /linux/drivers/scsi/sym53c8xx_2/ |
| H A D | sym_hipd.c | 1352 struct sym_trans *goal) argument 1355 goal->width = 0; 1358 goal->iu = 0; 1359 goal->dt = 0; 1360 goal->qas = 0; 1361 goal->offset = 0; 1367 goal->dt = 1; 1369 if (goal->offset == 0) 1370 goal->dt = 0; 1372 goal->dt = 0; [all …]
|
| /linux/net/netfilter/ipvs/ |
| H A D | ip_vs_lblc.c | 302 int goal; in ip_vs_lblc_check_expire() local 319 goal = (atomic_read(&tbl->entries) - tbl->max_size)*4/3; in ip_vs_lblc_check_expire() 320 if (goal > tbl->max_size/2) in ip_vs_lblc_check_expire() 321 goal = tbl->max_size/2; in ip_vs_lblc_check_expire() 333 goal--; in ip_vs_lblc_check_expire() 336 if (goal <= 0) in ip_vs_lblc_check_expire()
|
| H A D | ip_vs_lblcr.c | 465 int goal; in ip_vs_lblcr_check_expire() local 482 goal = (atomic_read(&tbl->entries) - tbl->max_size)*4/3; in ip_vs_lblcr_check_expire() 483 if (goal > tbl->max_size/2) in ip_vs_lblcr_check_expire() 484 goal = tbl->max_size/2; in ip_vs_lblcr_check_expire() 496 goal--; in ip_vs_lblcr_check_expire() 499 if (goal <= 0) in ip_vs_lblcr_check_expire()
|
| /linux/fs/ufs/ |
| H A D | inode.c | 24 * Goal-directed block allocation by Stephen Tweedie (sct@dcs.ed.ac.uk), 1993 262 u64 tmp, goal, lastfrag; in ufs_inode_getfrag() local 277 goal = 0; in ufs_inode_getfrag() 279 goal = ufs_data_ptr_to_cpu(sb, in ufs_inode_getfrag() 281 if (goal) in ufs_inode_getfrag() 282 goal += uspi->s_fpb; in ufs_inode_getfrag() 285 goal, nfrags, err, locked_folio); in ufs_inode_getfrag() 320 u64 tmp = 0, goal; in ufs_inode_getblock() local 346 goal = tmp + uspi->s_fpb; in ufs_inode_getblock() 348 goal = bh->b_blocknr + uspi->s_fpb; in ufs_inode_getblock() [all …]
|
| /linux/fs/ext4/ |
| H A D | mballoc.c | 45 * near to the goal(block) value specified. 179 * fragment size > goal length. So before falling to the slower 180 * CR_GOAL_LEN_SLOW, in CR_BEST_AVAIL_LEN we proactively trim goal length and 208 * the group specified as the goal value in allocation context via 1036 * a larger normalized goal len request which can be trimmed to in ext4_mb_scan_groups_goal_fast() 1037 * a smaller goal len such that it can still satisfy original in ext4_mb_scan_groups_goal_fast() 1052 * order we have and proactively trim the goal request length to that order to 1072 * goal length. in ext4_mb_scan_groups_best_avail() 1090 * up the goal len to num_stripe_clusters in ext4_mb_scan_groups_best_avail() 1104 * Scale down goal le in ext4_mb_scan_groups_best_avail() 5892 ext4_fsblk_t goal; ext4_mb_initialize_context() local 6172 ext4_fsblk_t goal, block; ext4_mb_new_blocks_simple() local [all...] |
| /linux/fs/ext2/ |
| H A D | inode.c | 16 * Goal-directed block allocation by Stephen Tweedie 325 * Returns preferred place for a block (the goal). 389 * @goal: Preferred place for allocation. 399 ext2_fsblk_t goal, int indirect_blks, int blks, in ext2_alloc_blocks() 422 current_block = ext2_new_blocks(inode, goal, &count, err, 0); in ext2_alloc_blocks() 457 * @goal: preferred place for allocation 480 int indirect_blks, int *blks, ext2_fsblk_t goal, in ext2_alloc_branch() 492 num = ext2_alloc_blocks(inode, goal, indirect_blks, in ext2_alloc_branch() 589 * in i_block_alloc_info, to assist find the proper goal block for next in ext2_splice_branch() 635 ext2_fsblk_t goal; in ext2_get_blocks() 398 ext2_alloc_blocks(struct inode * inode,ext2_fsblk_t goal,int indirect_blks,int blks,ext2_fsblk_t new_blocks[4],int * err) ext2_alloc_blocks() argument 478 ext2_alloc_branch(struct inode * inode,int indirect_blks,int * blks,ext2_fsblk_t goal,int * offsets,Indirect * branch) ext2_alloc_branch() argument 631 ext2_fsblk_t goal; ext2_get_blocks() local [all...] |
| /linux/tools/lib/python/ |
| H A D | jobserver.py | 22 Here, the goal is different: This script aims to get the remaining number 29 The end goal here is to keep the total number of build tasks under the
|
| /linux/block/ |
| H A D | Kconfig.iosched | 17 goal.
|
| /linux/tools/testing/selftests/cgroup/ |
| H A D | test_memcontrol.c | 454 static bool reclaim_until(const char *memcg, long goal); 885 * Reclaim from @memcg until usage reaches @goal by writing to 889 * goal. 897 * the usage goal was satisfied. in reclaim_until() 899 static bool reclaim_until(const char *memcg, long goal) in reclaim_until() 909 if (current < goal || values_close(current, goal, 3)) in reclaim_until() 915 to_reclaim = current - goal; in reclaim_until() 896 reclaim_until(const char * memcg,long goal) reclaim_until() argument
|
| /linux/tools/memory-model/Documentation/ |
| H A D | recipes.txt | 209 but in the opposite order. The goal is to avoid the counter-intuitive 212 In the absence of any ordering, this goal may not be met, as can be seen 214 a number of ways of meeting this goal. 359 to the first. The goal is to avoid the counter-intuitive situation where
|
| /linux/drivers/platform/x86/amd/pmf/ |
| H A D | Kconfig | 17 The goal is to enhance end user experience by making AMD PCs smarter,
|
| /linux/Documentation/block/ |
| H A D | bfq-iosched.rst | 19 goal, for a given device, is to achieve the maximum-possible 213 achieve this goal is to give to the queues associated with these 229 merged. Differently from CFQ, BFQ achieves this goal with a more 456 DISABLE this mode if your only goal is to achieve a high throughput. 492 it with auto-tuning. An alternative way to achieve this goal is to
|
| /linux/Documentation/networking/ |
| H A D | sctp.rst | 21 The initial project goal is to create an Linux kernel reference implementation
|