scripts/tracetool: Use void pointer for vcpu
commit5e7477bc8222230d0675e643c9f8e385e1e6b503
authorRoman Bolshakov <r.bolshakov@yadro.com>
Fri, 17 Jul 2020 09:35:15 +0000 (17 12:35 +0300)
committerStefan Hajnoczi <stefanha@redhat.com>
Wed, 9 Sep 2020 16:16:15 +0000 (9 17:16 +0100)
tree75f61e0293ad706c3bd4bae72bc72025fb92b25b
parent0807162e601c655e4f08bc736193255a1189d29d
scripts/tracetool: Use void pointer for vcpu

dtrace on macOS complains that CPUState * is used for a few probes:

  dtrace: failed to compile script trace-dtrace-root.dtrace: line 130: syntax error near "CPUState"

A comment in scripts/tracetool/__init__.py mentions that:

  We only want to allow standard C types or fixed sized
  integer types. We don't want QEMU specific types
  as we can't assume trace backends can resolve all the
  typedefs

Fixes: 3d211d9f4dbee ("trace: Add 'vcpu' event property to trace guest vCPU")
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Roman Bolshakov <r.bolshakov@yadro.com>
Message-id: 20200717093517.73397-3-r.bolshakov@yadro.com
Cc: Cameron Esfahani <dirty@apple.com>
Signed-off-by: Roman Bolshakov <r.bolshakov@yadro.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
scripts/tracetool/vcpu.py