OSDN Git Service

trace: only permit standard C types and fixed size integer types
authorDaniel P. Berrangé <berrange@redhat.com>
Thu, 8 Mar 2018 15:55:24 +0000 (15:55 +0000)
committerStefan Hajnoczi <stefanha@redhat.com>
Mon, 12 Mar 2018 11:10:20 +0000 (11:10 +0000)
commit73ff061032efa0b260bcd1a177ac89b57a1642d3
treec2fbee3d4ae0cc2215ef90f4f49e1bae0fc58c68
parent88584448502b1b1504676566b0d36991583c9ed2
trace: only permit standard C types and fixed size integer types

Some trace backends will compile code based on the declared trace
events. It should not be assumed that the backends can resolve any QEMU
specific typedefs. So trace events should restrict their argument
types to the standard C types and fixed size integer types. Any complex
pointer types can be declared as "void *" for purposes of trace events,
since nothing will be dereferencing these pointer arguments.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Message-id: 20180308155524.5082-3-berrange@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
scripts/tracetool/__init__.py