Lines Matching refs:PATH_MAX
100 char path[PATH_MAX]; in cpu__get_topology_int()
102 snprintf(path, PATH_MAX, in cpu__get_topology_int()
307 char path[PATH_MAX]; in set_max_cpu_num()
319 ret = snprintf(path, PATH_MAX, "%s/devices/system/cpu/possible", mnt); in set_max_cpu_num()
320 if (ret >= PATH_MAX) { in set_max_cpu_num()
321 pr_err("sysfs path crossed PATH_MAX(%d) size\n", PATH_MAX); in set_max_cpu_num()
330 ret = snprintf(path, PATH_MAX, "%s/devices/system/cpu/present", mnt); in set_max_cpu_num()
331 if (ret >= PATH_MAX) { in set_max_cpu_num()
332 pr_err("sysfs path crossed PATH_MAX(%d) size\n", PATH_MAX); in set_max_cpu_num()
347 char path[PATH_MAX]; in set_max_node_num()
358 ret = snprintf(path, PATH_MAX, "%s/devices/system/node/possible", mnt); in set_max_node_num()
359 if (ret >= PATH_MAX) { in set_max_node_num()
360 pr_err("sysfs path crossed PATH_MAX(%d) size\n", PATH_MAX); in set_max_node_num()
430 char buf[PATH_MAX]; in cpu__setup_cpunode_map()
431 char path[PATH_MAX]; in cpu__setup_cpunode_map()
443 n = snprintf(path, PATH_MAX, "%s/devices/system/node", mnt); in cpu__setup_cpunode_map()
444 if (n >= PATH_MAX) { in cpu__setup_cpunode_map()
445 pr_err("sysfs path crossed PATH_MAX(%d) size\n", PATH_MAX); in cpu__setup_cpunode_map()
458 n = snprintf(buf, PATH_MAX, "%s/%s", path, dent1->d_name); in cpu__setup_cpunode_map()
459 if (n >= PATH_MAX) { in cpu__setup_cpunode_map()
460 pr_err("sysfs path crossed PATH_MAX(%d) size\n", PATH_MAX); in cpu__setup_cpunode_map()