Home
last modified time | relevance | path

Searched refs:read_sysfs (Results 1 – 7 of 7) sorted by relevance

/linux/tools/testing/selftests/arm64/mte/
H A Dcheck_ksm_options.c26 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 Dthuge-gen.c88 if (read_sysfs(buf, &val) && ps != getpagesize()) in read_free()
179 read_sysfs("/proc/sys/kernel/shmmax", &shmmax_val); in find_pagesizes()
H A Dvm_util.h107 int read_sysfs(const char *file_path, unsigned long *val);
H A Dvm_util.c554 int read_sysfs(const char *file_path, unsigned long *val) in read_sysfs() function
H A Dksm_tests.c67 return read_sysfs(file_path, val); in ksm_read_sysfs()
H A Dmerge.c481 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 Dx86_energy_perf_policy.c738 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()