Home
last modified time | relevance | path

Searched refs:goal (Results 1 – 25 of 109) sorted by relevance

12345

/linux/tools/testing/selftests/damon/
H A Ddamos_quota_goal.py17 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 Ddrgn_dump_damon_status.py33 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.py133 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 Dcore.c697 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 Dballoc.c225 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()
557 uint32_t goal, int *err) in udf_table_prealloc_blocks()
582 if (goal >= sbi->s_partmaps[partition].s_partition_len) in udf_table_new_block()
583 goal = 0; in udf_table_new_block()
585 /* We search for the closest matching block to goal. If we find in udf_table_new_block()
598 if (goal >= eloc.logicalBlockNum) { in udf_table_new_block()
599 if (goal < elo in udf_table_new_block()
564 udf_table_new_block(struct super_block * sb,struct inode * table,uint16_t partition,uint32_t goal,int * err) udf_table_new_block() argument
724 udf_new_block(struct super_block * sb,struct inode * inode,uint16_t partition,uint32_t goal,int * err) udf_new_block() argument
[all...]
/linux/fs/hfs/
H A Dbitmap.c139 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/drivers/scsi/aic7xxx/
H A Daic79xx_osm.c1691 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 Daic7xxx_osm.c1618 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 Daic7xxx_core.c1862 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 in ahc_update_neg_request()
[all...]
H A Daic79xx_core.c3140 tinfo->goal.transport_version = 2; in ahd_handle_nonpkt_busfree()
3141 tinfo->goal.ppr_options = 0; in ahd_handle_nonpkt_busfree()
3614 * channel, but reset our current and goal settings to async/narrow in ahd_alloc_tstate()
3623 memset(&tstate->transinfo[i].goal, 0, in ahd_alloc_tstate()
3624 sizeof(tstate->transinfo[i].goal)); in ahd_alloc_tstate()
3679 * Never allow a value higher than our current goal in ahd_devlimited_syncrate()
3691 transinfo = &tinfo->goal; in ahd_devlimited_syncrate()
3773 *offset = min(*offset, (u_int)tinfo->goal.offset); in ahd_validate_offset()
3801 *bus_width = min((u_int)tinfo->goal.width, *bus_width); in ahd_validate_width()
3831 if (tinfo->curr.period != tinfo->goal in ahd_update_neg_request()
[all...]
/linux/drivers/scsi/sym53c8xx_2/
H A Dsym_hipd.c1352 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 Dip_vs_lblc.c302 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 Dip_vs_lblcr.c465 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/xfs/
H A Dxfs_icache.c52 enum xfs_icwalk_goal goal, struct xfs_icwalk *icw);
54 enum xfs_icwalk_goal goal, struct xfs_icwalk *icw);
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()
1748 enum xfs_icwalk_goal goal, in xfs_icwalk_ag() argument
1761 if (goal == XFS_ICWALK_RECLAIM) in xfs_icwalk_ag()
1775 XFS_LOOKUP_BATCH, goal); in xfs_icwalk_ag()
1789 if (done || !xfs_icwalk_igrab(goal, ip, icw)) in xfs_icwalk_ag()
[all …]
/linux/fs/ufs/
H A Dinode.c262 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()
349 tmp = ufs_new_fragments(inode, p, ufs_blknum(new_fragment), goal, in ufs_inode_getblock()
H A Dufs.h88 u64 ufs_new_fragments(struct inode *, void *, u64 fragment, u64 goal,
/linux/fs/ext2/
H A Dinode.c325 * 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()
724 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/fs/ext4/
H A Dialloc.c1004 __u32 goal, uid_t *owner, __u32 i_flags, in __ext4_new_inode()
1025 qstr, goal, owner, i_flags, handle_type, in __ext4_new_inode()
1089 if (!goal) in __ext4_new_inode()
1090 goal = sbi->s_inode_goal; in __ext4_new_inode()
1092 if (goal && goal <= le32_to_cpu(sbi->s_es->s_inodes_count)) { in __ext4_new_inode()
1093 group = (goal - 1) / EXT4_INODES_PER_GROUP(sb); in __ext4_new_inode()
1094 ino = (goal - 1) % EXT4_INODES_PER_GROUP(sb); in __ext4_new_inode()
936 __ext4_new_inode(const struct mnt_idmap * idmap,handle_t * handle,struct inode * dir,umode_t mode,const struct qstr * qstr,__u32 goal,uid_t * owner,__u32 i_flags,int handle_type,unsigned int line_no,int nblocks) __ext4_new_inode() argument
H A Dmigrate.c432 __u32 goal, tmp_csum_seed; in ext4_ext_migrate()
471 goal = ((((u32)inode->i_ino - 1) / EXT4_INODES_PER_GROUP(inode->i_sb)) * in ext4_ext_migrate()
476 S_IFREG, NULL, goal, owner, 0); in ext4_ext_migrate()
419 __u32 goal, tmp_csum_seed; ext4_ext_migrate() local
/linux/net/dccp/
H A Dproto.c
/linux/block/
H A DKconfig.iosched17 goal.
/linux/tools/testing/selftests/cgroup/
H A Dtest_memcontrol.c454 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/Documentation/networking/
H A Dsctp.rst21 The initial project goal is to create an Linux kernel reference implementation
/linux/drivers/platform/x86/amd/pmf/
H A DKconfig17 The goal is to enhance end user experience by making AMD PCs smarter,
/linux/net/rds/
H A Dib_frmr.c361 unsigned long *unpinned, unsigned int goal) in rds_ib_unreg_frmr() argument
385 if (freed < goal || frmr->fr_state == FRMR_IS_STALE) { in rds_ib_unreg_frmr()

12345