Lines Matching refs:PATH_MAX
306 char path[PATH_MAX]; in cpu__get_topology_int()
308 snprintf(path, PATH_MAX, in cpu__get_topology_int()
445 char path[PATH_MAX]; in set_max_cpu_num()
457 ret = snprintf(path, PATH_MAX, "%s/devices/system/cpu/possible", mnt); in set_max_cpu_num()
458 if (ret == PATH_MAX) { in set_max_cpu_num()
459 pr_err("sysfs path crossed PATH_MAX(%d) size\n", PATH_MAX); in set_max_cpu_num()
468 ret = snprintf(path, PATH_MAX, "%s/devices/system/cpu/present", mnt); in set_max_cpu_num()
469 if (ret == PATH_MAX) { in set_max_cpu_num()
470 pr_err("sysfs path crossed PATH_MAX(%d) size\n", PATH_MAX); in set_max_cpu_num()
485 char path[PATH_MAX]; in set_max_node_num()
496 ret = snprintf(path, PATH_MAX, "%s/devices/system/node/possible", mnt); in set_max_node_num()
497 if (ret == PATH_MAX) { in set_max_node_num()
498 pr_err("sysfs path crossed PATH_MAX(%d) size\n", PATH_MAX); in set_max_node_num()
568 char buf[PATH_MAX]; in cpu__setup_cpunode_map()
569 char path[PATH_MAX]; in cpu__setup_cpunode_map()
581 n = snprintf(path, PATH_MAX, "%s/devices/system/node", mnt); in cpu__setup_cpunode_map()
582 if (n == PATH_MAX) { in cpu__setup_cpunode_map()
583 pr_err("sysfs path crossed PATH_MAX(%d) size\n", PATH_MAX); in cpu__setup_cpunode_map()
596 n = snprintf(buf, PATH_MAX, "%s/%s", path, dent1->d_name); in cpu__setup_cpunode_map()
597 if (n == PATH_MAX) { in cpu__setup_cpunode_map()
598 pr_err("sysfs path crossed PATH_MAX(%d) size\n", PATH_MAX); in cpu__setup_cpunode_map()