[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] trace: Allow events without arguments
From: |
Lluís Vilanova |
Subject: |
[Qemu-devel] [PATCH] trace: Allow events without arguments |
Date: |
Fri, 26 Aug 2016 11:12:47 +0200 |
User-agent: |
StGit/0.17.1-dirty |
Signed-off-by: Lluís Vilanova <address@hidden>
---
scripts/tracetool/__init__.py | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/scripts/tracetool/__init__.py b/scripts/tracetool/__init__.py
index be24039..96657e6 100644
--- a/scripts/tracetool/__init__.py
+++ b/scripts/tracetool/__init__.py
@@ -72,6 +72,11 @@ class Arguments:
arg_str : str
String describing the event arguments.
"""
+ # check for empty argument list
+ arg_str = arg_str.strip()
+ if arg_str == "":
+ return Arguments([])
+
res = []
for arg in arg_str.split(","):
arg = arg.strip()
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-devel] [PATCH] trace: Allow events without arguments,
Lluís Vilanova <=