Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
libvirt
提交
d6162548
L
libvirt
项目概览
openeuler
/
libvirt
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
L
libvirt
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
d6162548
编写于
12年前
作者:
M
Michal Privoznik
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
virsh-host.c: Switch to C99 initialization of vshCmdOptDef
上级
9a069f94
无相关合并请求
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
75 addition
and
27 deletion
+75
-27
tools/virsh-host.c
tools/virsh-host.c
+75
-27
未找到文件。
tools/virsh-host.c
浏览文件 @
d6162548
...
...
@@ -74,10 +74,17 @@ static const vshCmdInfo info_connect[] = {
};
static
const
vshCmdOptDef
opts_connect
[]
=
{
{
"name"
,
VSH_OT_DATA
,
VSH_OFLAG_EMPTY_OK
,
N_
(
"hypervisor connection URI"
)},
{
"readonly"
,
VSH_OT_BOOL
,
0
,
N_
(
"read-only connection"
)},
{
NULL
,
0
,
0
,
NULL
}
{.
name
=
"name"
,
.
type
=
VSH_OT_DATA
,
.
flags
=
VSH_OFLAG_EMPTY_OK
,
.
help
=
N_
(
"hypervisor connection URI"
)
},
{.
name
=
"readonly"
,
.
type
=
VSH_OT_BOOL
,
.
flags
=
0
,
.
help
=
N_
(
"read-only connection"
)
},
{.
name
=
NULL
}
};
static
bool
...
...
@@ -125,9 +132,17 @@ static const vshCmdInfo info_freecell[] = {
};
static
const
vshCmdOptDef
opts_freecell
[]
=
{
{
"cellno"
,
VSH_OT_INT
,
0
,
N_
(
"NUMA cell number"
)},
{
"all"
,
VSH_OT_BOOL
,
0
,
N_
(
"show free memory for all NUMA cells"
)},
{
NULL
,
0
,
0
,
NULL
}
{.
name
=
"cellno"
,
.
type
=
VSH_OT_INT
,
.
flags
=
0
,
.
help
=
N_
(
"NUMA cell number"
)
},
{.
name
=
"all"
,
.
type
=
VSH_OT_BOOL
,
.
flags
=
0
,
.
help
=
N_
(
"show free memory for all NUMA cells"
)
},
{.
name
=
NULL
}
};
static
bool
...
...
@@ -318,9 +333,17 @@ static const vshCmdInfo info_nodecpustats[] = {
};
static
const
vshCmdOptDef
opts_node_cpustats
[]
=
{
{
"cpu"
,
VSH_OT_INT
,
0
,
N_
(
"prints specified cpu statistics only."
)},
{
"percent"
,
VSH_OT_BOOL
,
0
,
N_
(
"prints by percentage during 1 second."
)},
{
NULL
,
0
,
0
,
NULL
}
{.
name
=
"cpu"
,
.
type
=
VSH_OT_INT
,
.
flags
=
0
,
.
help
=
N_
(
"prints specified cpu statistics only."
)
},
{.
name
=
"percent"
,
.
type
=
VSH_OT_BOOL
,
.
flags
=
0
,
.
help
=
N_
(
"prints by percentage during 1 second."
)
},
{.
name
=
NULL
}
};
static
bool
...
...
@@ -443,8 +466,12 @@ static const vshCmdInfo info_nodememstats[] = {
};
static
const
vshCmdOptDef
opts_node_memstats
[]
=
{
{
"cell"
,
VSH_OT_INT
,
0
,
N_
(
"prints specified cell statistics only."
)},
{
NULL
,
0
,
0
,
NULL
}
{.
name
=
"cell"
,
.
type
=
VSH_OT_INT
,
.
flags
=
0
,
.
help
=
N_
(
"prints specified cell statistics only."
)
},
{.
name
=
NULL
}
};
static
bool
...
...
@@ -502,10 +529,18 @@ static const vshCmdInfo info_nodesuspend[] = {
};
static
const
vshCmdOptDef
opts_node_suspend
[]
=
{
{
"target"
,
VSH_OT_DATA
,
VSH_OFLAG_REQ
,
N_
(
"mem(Suspend-to-RAM), "
"disk(Suspend-to-Disk), hybrid(Hybrid-Suspend)"
)},
{
"duration"
,
VSH_OT_INT
,
VSH_OFLAG_REQ
,
N_
(
"Suspend duration in seconds, at least 60"
)},
{
NULL
,
0
,
0
,
NULL
}
{.
name
=
"target"
,
.
type
=
VSH_OT_DATA
,
.
flags
=
VSH_OFLAG_REQ
,
.
help
=
N_
(
"mem(Suspend-to-RAM), "
"disk(Suspend-to-Disk), hybrid(Hybrid-Suspend)"
)
},
{.
name
=
"duration"
,
.
type
=
VSH_OT_INT
,
.
flags
=
VSH_OFLAG_REQ
,
.
help
=
N_
(
"Suspend duration in seconds, at least 60"
)
},
{.
name
=
NULL
}
};
static
bool
...
...
@@ -637,8 +672,12 @@ static const vshCmdInfo info_version[] = {
};
static
const
vshCmdOptDef
opts_version
[]
=
{
{
"daemon"
,
VSH_OT_BOOL
,
VSH_OFLAG_NONE
,
N_
(
"report daemon version too"
)},
{
NULL
,
0
,
0
,
NULL
}
{.
name
=
"daemon"
,
.
type
=
VSH_OT_BOOL
,
.
flags
=
VSH_OFLAG_NONE
,
.
help
=
N_
(
"report daemon version too"
)
},
{.
name
=
NULL
}
};
static
bool
...
...
@@ -732,15 +771,24 @@ static const vshCmdInfo info_node_memory_tune[] = {
};
static
const
vshCmdOptDef
opts_node_memory_tune
[]
=
{
{
"shm-pages-to-scan"
,
VSH_OT_INT
,
VSH_OFLAG_NONE
,
N_
(
"number of pages to scan before the shared memory service "
"goes to sleep"
)},
{
"shm-sleep-millisecs"
,
VSH_OT_INT
,
VSH_OFLAG_NONE
,
N_
(
"number of millisecs the shared memory service should "
"sleep before next scan"
)},
{
"shm-merge-across-nodes"
,
VSH_OT_INT
,
VSH_OFLAG_NONE
,
N_
(
"Specifies if pages from different numa nodes can be merged"
)},
{
NULL
,
0
,
0
,
NULL
}
{.
name
=
"shm-pages-to-scan"
,
.
type
=
VSH_OT_INT
,
.
flags
=
VSH_OFLAG_NONE
,
.
help
=
N_
(
"number of pages to scan before the shared memory service "
"goes to sleep"
)
},
{.
name
=
"shm-sleep-millisecs"
,
.
type
=
VSH_OT_INT
,
.
flags
=
VSH_OFLAG_NONE
,
.
help
=
N_
(
"number of millisecs the shared memory service should "
"sleep before next scan"
)
},
{.
name
=
"shm-merge-across-nodes"
,
.
type
=
VSH_OT_INT
,
.
flags
=
VSH_OFLAG_NONE
,
.
help
=
N_
(
"Specifies if pages from different numa nodes can be merged"
)
},
{.
name
=
NULL
}
};
static
bool
...
...
This diff is collapsed.
Click to expand it.
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录
反馈
建议
客服
返回
顶部