Documented in 1 files:
Defined in 2 files as a function:
- mm/khugepaged.c, line 387 (as a function)
- tools/testing/selftests/mm/khugepaged.c, line 802 (as a function)
Referenced in 2 files:
Smatch caller information:
mm/khugepaged.c __collapse_huge_page_isolate() -> collapse_max_ptes_none()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cc | 4096-ptr_max |
| PARAM_VALUE | 0 | cc->mthp_present_ptes | 0 |
| PARAM_VALUE | 1 | vma | 4096-ptr_max |
| PARAM_VALUE | 1 | vma->anon_vma | 4096-ptr_max |
| PARAM_VALUE | 1 | vma->anon_vma->root | 4096-ptr_max |
| PARAM_VALUE | 1 | vma->vm_file->f_inode->i_sb->s_cop->inode_info_offs | 1632,1720,1808,2632,2648,2704,2712 |
| PARAM_VALUE | 1 | vma->vm_file->f_mapping->host->i_sb->s_export_op->fh_to_dentry | 0,8684,447817974243774464,687732489194512384,742201802719268864,868497899885588480,1471448175530500096,2021658383390310400,2445877819203563520,2512819722689847296,2649270699546726400,2761259683714371584,2893332316235677696-s64max |
| PARAM_VALUE | 1 | vma->vm_mm | 4096-ptr_max |
| PARAM_VALUE | 1 | vma->vm_mm->context.asid_transition | 1 |
| PARAM_VALUE | 2 | order | 0-9 |
| CAPPED_DATA | 2 | order | 1 |
| DATA_SOURCE | 0 | cc | $3 |
| DATA_SOURCE | 1 | vma | $0 |
| DATA_SOURCE | 2 | order | $4 |
| FUZZY_MAX | 2 | order | 9 |
| MEM_ZERO | 0 | cc->alloc_nmask.bits | |
| MEM_ZERO | 0 | cc->mthp_present_ptes | |
| MEM_ZERO | 0 | cc->node_load | |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | pte_ptl | ||
| LOCK2 | 1 | &vma->anon_vma->root->rwsem | |
| HALF_LOCKED2 | &mm->mmap_lock | ||
| TYPE_LOCK | (struct anon_vma)->rwsem | ||
| TYPE_LOCK | (struct mm_struct)->mmap_lock |
mm/khugepaged.c collapse_scan_file() -> collapse_max_ptes_none()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cc | 4096-ptr_max |
| PARAM_VALUE | 0 | *cc->node_load | 0-4294967295 |
| PARAM_VALUE | 1 | vma | 0 |
| PARAM_VALUE | 2 | order | 9 |
| BUF_SIZE | 0 | cc | (-1),4296 |
| BUF_SIZE | 0 | cc | (-1),4296 |
| DATA_SOURCE | 0 | cc | $4 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &mm->mmap_lock |
mm/khugepaged.c collapse_scan_pmd() -> collapse_max_ptes_none()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cc | 4096-ptr_max |
| PARAM_VALUE | 0 | *cc->node_load | 0-4294967295 |
| PARAM_VALUE | 1 | vma | 4096-ptr_max |
| PARAM_VALUE | 1 | vma->vm_file->f_cred->process_keyring->user->qnbytes | s32min-s32max |
| PARAM_VALUE | 1 | vma->vm_file->f_cred->process_keyring->user->qnkeys | s32min-s32max |
| PARAM_VALUE | 1 | vma->vm_file->f_cred->request_key_auth->user->qnbytes | s32min-s32max |
| PARAM_VALUE | 1 | vma->vm_file->f_cred->request_key_auth->user->qnkeys | s32min-s32max |
| PARAM_VALUE | 1 | vma->vm_file->f_cred->session_keyring->user->qnbytes | s32min-s32max |
| PARAM_VALUE | 1 | vma->vm_file->f_cred->session_keyring->user->qnkeys | s32min-s32max |
| PARAM_VALUE | 1 | vma->vm_file->f_cred->thread_keyring->user->qnbytes | s32min-s32max |
| PARAM_VALUE | 1 | vma->vm_file->f_cred->thread_keyring->user->qnkeys | s32min-s32max |
| PARAM_VALUE | 1 | vma->vm_file->f_mapping->host->i_op->get_offset_ctx | 0,2606890545167454208 |
| PARAM_VALUE | 1 | vma->vm_file->f_mapping->host->i_op->readlink | 0,1728600404483375104,2832489546165891072,2874824064778891264,3069732422725099520,4516337085607264256 |
| PARAM_VALUE | 1 | vma->vm_file->f_mapping->host->i_op->sync_lazytime | 0,6951464784224747520 |
| PARAM_VALUE | 1 | vma->vm_file->f_mapping->host->i_sb->s_export_op->fh_to_dentry | 0,8684,447817974243774464,687732489194512384,742201802719268864,868497899885588480,1471448175530500096,2021658383390310400,2445877819203563520,2512819722689847296,2649270699546726400,2761259683714371584,2893332316235677696-s64max |
| PARAM_VALUE | 1 | vma->vm_file->f_mapping->host->i_sb->s_umount.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 1 | vma->vm_file->f_mapping->host->i_sb->s_umount.first_waiter->type | 0-1 |
| PARAM_VALUE | 1 | vma->vm_file->f_mapping->i_mmap_rwsem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 1 | vma->vm_file->f_mapping->i_mmap_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 1 | vma->vm_file->f_mapping->invalidate_lock.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 1 | vma->vm_file->f_mapping->invalidate_lock.first_waiter->type | 0-1 |
| PARAM_VALUE | 1 | vma->vm_mm->mmap_lock.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 1 | vma->vm_mm->mmap_lock.first_waiter->type | 0-1 |
| PARAM_VALUE | 1 | vma->vm_ops | 0 |
| PARAM_VALUE | 2 | order | 9 |
| BUF_SIZE | 0 | cc | (-1),4296 |
| BUF_SIZE | 0 | cc | (-1),4296 |
| DATA_SOURCE | 0 | cc | $4 |
| DATA_SOURCE | 1 | vma | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 1 | vma->vm_end | |
| HALF_LOCKED2 | &mm->mmap_lock |
mm/khugepaged.c mthp_collapse() -> collapse_max_ptes_none()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cc | 4096-ptr_max |
| PARAM_VALUE | 0 | cc->mthp_present_ptes | 0 |
| PARAM_VALUE | 0 | cc->node_load | 0 |
| PARAM_VALUE | 0 | *cc->node_load | 0-4294967295 |
| PARAM_VALUE | 1 | vma | 0 |
| PARAM_VALUE | 2 | order | 0-9 |
| CAPPED_DATA | 2 | order | 1 |
| DATA_SOURCE | 0 | cc | $4 |
| FUZZY_MAX | 2 | order | 9 |
| MEM_ZERO | 0 | cc->alloc_nmask.bits | |
| MEM_ZERO | 0 | cc->mthp_present_ptes | |
| MEM_ZERO | 0 | cc->node_load | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &mm->mmap_lock |