trace: Allow event name pattern in "info trace-events"

Homogenizes the command capabilities with QMP.

Signed-off-by: Lluís Vilanova <vilanova@ac.upc.edu>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
This commit is contained in:
Lluís Vilanova
2016-07-11 12:53:51 +02:00
committed by Stefan Hajnoczi
parent 40b9cd25f7
commit bd71211d55
3 changed files with 36 additions and 4 deletions

View File

@ -646,10 +646,12 @@ ETEXI
{
.name = "trace-events",
.args_type = "",
.params = "",
.help = "show available trace-events & their state",
.args_type = "name:s?",
.params = "[name]",
.help = "show available trace-events & their state "
"(name: event name pattern)",
.mhandler.cmd = hmp_info_trace_events,
.command_completion = info_trace_events_completion,
},
STEXI