summaryrefslogtreecommitdiff
path: root/tools/virsh-domain.c
diff options
context:
space:
mode:
authorLin Ma <morecache@gmail.com>2020-09-11 15:13:06 +0800
committerMichal Privoznik <mprivozn@redhat.com>2020-09-14 15:52:40 +0200
commiteddd9932ee89bbc5087b71bf357a8bdcc7c06fc5 (patch)
tree373b2353f3199dba62e0b291f732daa2a11c2d9b /tools/virsh-domain.c
parenta2ab5eb8e1715c862594cf4f608d5b6b275e83d8 (diff)
downloadlibvirt-eddd9932ee89bbc5087b71bf357a8bdcc7c06fc5.tar.gz
virsh: Add event completer to --enable/--disable args of perf command
Signed-off-by: Lin Ma <lma@suse.de> Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Diffstat (limited to 'tools/virsh-domain.c')
-rw-r--r--tools/virsh-domain.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/virsh-domain.c b/tools/virsh-domain.c
index 26d7585855..1b4040080e 100644
--- a/tools/virsh-domain.c
+++ b/tools/virsh-domain.c
@@ -9332,10 +9332,12 @@ static const vshCmdOptDef opts_perf[] = {
VIRSH_COMMON_OPT_DOMAIN_FULL(0),
{.name = "enable",
.type = VSH_OT_STRING,
+ .completer = virshDomainPerfEnableCompleter,
.help = N_("perf events which will be enabled")
},
{.name = "disable",
.type = VSH_OT_STRING,
+ .completer = virshDomainPerfDisableCompleter,
.help = N_("perf events which will be disabled")
},
VIRSH_COMMON_OPT_DOMAIN_CONFIG,