Searched refs:read_sysfs (Results 1 – 7 of 7) sorted by relevance
| /linux/tools/testing/selftests/arm64/mte/ |
| H A D | check_ksm_options.c | 26 static unsigned long read_sysfs(char *str) in read_sysfs() function 59 ksm_sysfs[0] = read_sysfs(PATH_KSM "merge_across_nodes"); in mte_ksm_setup() 61 ksm_sysfs[1] = read_sysfs(PATH_KSM "sleep_millisecs"); in mte_ksm_setup() 63 ksm_sysfs[2] = read_sysfs(PATH_KSM "run"); in mte_ksm_setup() 65 ksm_sysfs[3] = read_sysfs(PATH_KSM "max_page_sharing"); in mte_ksm_setup() 67 ksm_sysfs[4] = read_sysfs(PATH_KSM "pages_to_scan"); in mte_ksm_setup() 82 int cur_count = read_sysfs(PATH_KSM "full_scans"); in mte_ksm_scan() 88 cur_count = read_sysfs(PATH_KSM "full_scans"); in mte_ksm_scan() 93 read_sysfs(PATH_KSM "pages_shared"), in mte_ksm_scan() 94 read_sysfs(PATH_KSM "pages_sharing")); in mte_ksm_scan() [all …]
|
| /linux/tools/testing/selftests/mm/ |
| H A D | thuge-gen.c | 88 if (read_sysfs(buf, &val) && ps != getpagesize()) in read_free() 179 read_sysfs("/proc/sys/kernel/shmmax", &shmmax_val); in find_pagesizes()
|
| H A D | vm_util.h | 107 int read_sysfs(const char *file_path, unsigned long *val);
|
| H A D | vm_util.c | 554 int read_sysfs(const char *file_path, unsigned long *val) in read_sysfs() function
|
| H A D | ksm_tests.c | 67 return read_sysfs(file_path, val); in ksm_read_sysfs()
|
| H A D | merge.c | 481 if (read_sysfs("/sys/bus/event_source/devices/uprobe/type", &type) != 0) { in TEST_F()
|
| /linux/tools/power/x86/x86_energy_perf_policy/ |
| H A D | x86_energy_perf_policy.c | 738 static unsigned int read_sysfs(const char *path, char *buf, size_t buflen) in read_sysfs() function 869 if (!read_sysfs(path, linebuf, 3)) in get_epb_sysfs()
|