Lines Matching refs:PATH_MAX
117 char path[PATH_MAX]; in cpu__get_topology_int()
119 snprintf(path, PATH_MAX, in cpu__get_topology_int()
334 char path[PATH_MAX]; in set_max_cpu_num()
346 ret = snprintf(path, PATH_MAX, "%s/devices/system/cpu/possible", mnt); in set_max_cpu_num()
347 if (ret >= PATH_MAX) { in set_max_cpu_num()
348 pr_err("sysfs path crossed PATH_MAX(%d) size\n", PATH_MAX); in set_max_cpu_num()
357 ret = snprintf(path, PATH_MAX, "%s/devices/system/cpu/present", mnt); in set_max_cpu_num()
358 if (ret >= PATH_MAX) { in set_max_cpu_num()
359 pr_err("sysfs path crossed PATH_MAX(%d) size\n", PATH_MAX); in set_max_cpu_num()
374 char path[PATH_MAX]; in set_max_node_num()
385 ret = snprintf(path, PATH_MAX, "%s/devices/system/node/possible", mnt); in set_max_node_num()
386 if (ret >= PATH_MAX) { in set_max_node_num()
387 pr_err("sysfs path crossed PATH_MAX(%d) size\n", PATH_MAX); in set_max_node_num()
457 char buf[PATH_MAX]; in cpu__setup_cpunode_map()
458 char path[PATH_MAX]; in cpu__setup_cpunode_map()
470 n = snprintf(path, PATH_MAX, "%s/devices/system/node", mnt); in cpu__setup_cpunode_map()
471 if (n >= PATH_MAX) { in cpu__setup_cpunode_map()
472 pr_err("sysfs path crossed PATH_MAX(%d) size\n", PATH_MAX); in cpu__setup_cpunode_map()
485 n = snprintf(buf, PATH_MAX, "%s/%s", path, dent1->d_name); in cpu__setup_cpunode_map()
486 if (n >= PATH_MAX) { in cpu__setup_cpunode_map()
487 pr_err("sysfs path crossed PATH_MAX(%d) size\n", PATH_MAX); in cpu__setup_cpunode_map()