Ejemplo n.º 1
0
Archivo: debug.c Proyecto: 3null/linux
static char *task_group_path(struct task_group *tg)
{
	if (autogroup_path(tg, group_path, PATH_MAX))
		return group_path;

	return cgroup_path(tg->css.cgroup, group_path, PATH_MAX);
}
Ejemplo n.º 2
0
static void task_group_path(struct task_group *tg, char *buf, int buflen)
{
	/* may be NULL if the underlying cgroup isn't fully-created yet */
	if (!tg->css.cgroup) {
		if (!autogroup_path(tg, buf, buflen))
			buf[0] = '\0';
		return;
	}
	cgroup_path(tg->css.cgroup, buf, buflen);
}
Ejemplo n.º 3
0
static char *task_group_path(struct task_group *tg)
{
	if (autogroup_path(tg, group_path, PATH_MAX))
		return group_path;
	if (!tg->css.cgroup) {
		group_path[0] = '\0';
		return group_path;
	}
	cgroup_path(tg->css.cgroup, group_path, PATH_MAX);
	return group_path;
}
static char *task_group_path(struct task_group *tg)
{
	if (autogroup_path(tg, group_path, PATH_MAX))
	return group_path;
	/*
	 * May be NULL if the underlying cgroup isn't fully-created yet
	 */
	if (!tg->css.cgroup) {
		group_path[0] = '\0';
		return group_path;
	}
	cgroup_path(tg->css.cgroup, group_path, PATH_MAX);
	return group_path;
}
Ejemplo n.º 5
0
static char *task_group_path(struct task_group *tg)
{
	if (autogroup_path(tg, group_path, PATH_MAX))
		return group_path;

	/*
	 * May be NULL if the underlying cgroup isn't fully-created yet
	 */
	if (!tg->css.cgroup) {
		group_path[0] = '\0';
		return group_path;
	}

   /*[Arima JimCheng 20131225] Rollback workitem 32175 ++*/
	// << FerryWu, 2013/12/17, fix coverity 103078
	cgroup_path(tg->css.cgroup, group_path, PATH_MAX) ;
	//	group_path[0] = '\0';
	// >> FerryWu, 2013/12/17, fix coverity 103078
   /*[Arima JimCheng 20131225] Rollback workitem 32175 --*/
	return group_path;
}