Defined in 1 files as a function:
Referenced in 4 files:
Smatch caller information:
mm/damon/vaddr.c __damon_va_prepare_access_check() -> damon_rand()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ctx | 4096-ptr_max |
| BUF_SIZE | 0 | ctx | 128 |
| BUF_SIZE | 0 | ctx | 128 |
| BUF_SIZE | 0 | ctx->regions_score_histogram | 8 |
| CAPPED_DATA | 0 | ctx->min_region_sz | 1 |
| DATA_SOURCE | 0 | ctx | $2 |
| UNITS | 1 | l | unit_byte |
| UNITS | 2 | r | unit_byte |
mm/damon/paddr.c __damon_pa_prepare_access_check() -> damon_rand()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ctx | 4096-ptr_max |
| BUF_SIZE | 0 | ctx | 128 |
| BUF_SIZE | 0 | ctx | 128 |
| BUF_SIZE | 0 | ctx->regions_score_histogram | 8 |
| CAPPED_DATA | 0 | ctx->min_region_sz | 1 |
| DATA_SOURCE | 0 | ctx | $1 |
| UNITS | 1 | l | unit_byte |
| UNITS | 2 | r | unit_byte |
mm/damon/paddr.c damon_pa_apply_probes() -> damon_rand()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ctx | 4096-ptr_max |
| BUF_SIZE | 0 | ctx | 128 |
| BUF_SIZE | 0 | ctx | 128 |
| BUF_SIZE | 0 | ctx->regions_score_histogram | 8 |
| CAPPED_DATA | 0 | &ctx->adaptive_targets | 1 |
| DATA_SOURCE | 0 | ctx | $0 |
| UNITS | 1 | l | unit_byte |
| UNITS | 2 | r | unit_byte |
mm/damon/core.c damon_split_regions_of() -> damon_rand()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ctx | 4096-ptr_max |
| PARAM_VALUE | 1 | l | 1 |
| PARAM_VALUE | 2 | r | 10 |
| BUF_SIZE | 0 | ctx | 128,896 |
| BUF_SIZE | 0 | ctx | 128,896 |
| BUF_SIZE | 0 | ctx->regions_score_histogram | (-1),8 |
| CAPPED_DATA | 0 | ctx->min_region_sz | 1 |
| DATA_SOURCE | 0 | ctx | $0 |
mm/damon/core.c damon_split_some_regions() -> damon_rand()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ctx | 4096-ptr_max |
| PARAM_VALUE | 1 | l | 1 |
| PARAM_VALUE | 2 | r | 10 |
| BUF_SIZE | 0 | ctx | 128,896 |
| BUF_SIZE | 0 | ctx | 128,896 |
| BUF_SIZE | 0 | ctx->regions_score_histogram | (-1),8 |
| CAPPED_DATA | 0 | ctx->min_region_sz | 1 |
| CAPPED_DATA | 0 | &ctx->adaptive_targets | 1 |
| DATA_SOURCE | 0 | ctx | $0 |
mm/damon/core.c damon_test_rand() -> damon_rand()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ctx | 1576861961591676928 |
| PARAM_VALUE | 1 | l | 0 |
| PARAM_VALUE | 2 | r | 10 |