Re: [PATCH v2 3/3] trace: Forbid dynamic field width in event format

2019-11-18 Thread Eric Blake
On 11/8/19 10:07 AM, Eric Blake wrote: On 11/8/19 8:40 AM, Philippe Mathieu-Daudé wrote: Since not all trace backends support dynamic field width in format (dtrace via stap does not), forbid them. Add a check to refuse field width in new formats: +++ b/scripts/tracetool/__init__.py @@ -206,

Re: [PATCH v2 3/3] trace: Forbid dynamic field width in event format

2019-11-08 Thread Eric Blake
On 11/8/19 8:40 AM, Philippe Mathieu-Daudé wrote: Since not all trace backends support dynamic field width in format (dtrace via stap does not), forbid them. Add a check to refuse field width in new formats: +++ b/scripts/tracetool/__init__.py @@ -206,6 +206,7 @@ class Event(object):

[PATCH v2 3/3] trace: Forbid dynamic field width in event format

2019-11-08 Thread Philippe Mathieu-Daudé
Since not all trace backends support dynamic field width in format (dtrace via stap does not), forbid them. Add a check to refuse field width in new formats: $ make [...] GEN hw/block/trace.h Traceback (most recent call last): File "scripts/tracetool.py", line 152, in mai