Re: [Qemu-devel] [PATCH] trace: only permit standard C types and fixed size integer types
On Tue, Mar 06, 2018 at 03:46:25PM +, Daniel P. Berrangé wrote: > 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é> --- > scripts/tracetool/__init__.py | 45 > +++ > trace-events | 6 +++--- > 2 files changed, 48 insertions(+), 3 deletions(-) Looks good, thanks! I'll merge the next revision. Stefan signature.asc Description: PGP signature
Re: [Qemu-devel] [PATCH] trace: only permit standard C types and fixed size integer types
On Wed, Mar 07, 2018 at 09:24:30AM +0800, Fam Zheng wrote: > On Tue, 03/06 16:22, Daniel P. Berrangé wrote: > > RFE for patchew... > > > > Now we're sending separate email alerts for each build job, can we > > make patchew include the job name in the subject line, so it is > > immediately obvious which job failed without needing to read the > > body. > > Yes, doable. Do we still want the original subject (The "Re: ..." part)? If > so, > any idea what is a good format for the full subject line? Perhaps take the original Subject, and prefix it. eg something like this: Subject: s390-build failed (Re: [Qemu-devel] [PATCH] trace: only permit standard C types and...) Regards, Daniel -- |: https://berrange.com -o-https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o-https://fstop138.berrange.com :| |: https://entangle-photo.org-o-https://www.instagram.com/dberrange :|
Re: [Qemu-devel] [PATCH] trace: only permit standard C types and fixed size integer types
On Tue, 03/06 16:20, Daniel P. Berrangé wrote: > On Tue, Mar 06, 2018 at 08:05:18AM -0800, no-re...@patchew.org wrote: > > Hi, > > > > This series failed docker-mingw@fedora build test. Please find the testing > > commands and > > their output below. If you have Docker installed, you can probably > > reproduce it > > locally. > > > > Type: series > > Message-id: 20180306154625.23910-1-berra...@redhat.com > > Subject: [Qemu-devel] [PATCH] trace: only permit standard C types and fixed > > size integer types > > > > Traceback (most recent call last): > > File "/tmp/qemu-test/src/scripts/tracetool.py", line 154, in > > main(sys.argv) > > File "/tmp/qemu-test/src/scripts/tracetool.py", line 145, in main > > events.extend(tracetool.read_events(fh)) > > File "/tmp/qemu-test/src/scripts/tracetool/__init__.py", line 358, in > > read_events > > event = Event.build(line) > > File "/tmp/qemu-test/src/scripts/tracetool/__init__.py", line 280, in > > build > > args = Arguments.build(groups["args"]) > > File "/tmp/qemu-test/src/scripts/tracetool/__init__.py", line 134, in > > build > > validate_type(arg_type) > > File "/tmp/qemu-test/src/scripts/tracetool/__init__.py", line 87, in > > validate_type > > "declared as 'void *'" % name) > > ValueError: Error on line 95: Argument type 'hwaddr' is not in whitelist. > > Only standard C types and fixed size integer types should be used. struct, > > union, and other complex pointer types should be declared as 'void *' > > > This nicely illustrates this patch working as documented ! > > The fix for the "hwaddr" mistake was just merged in QEMU git master, so > if patchew can be re-run, applying to latest master it should pass. Manually initiated re-apply and re-run. Fam
Re: [Qemu-devel] [PATCH] trace: only permit standard C types and fixed size integer types
On Tue, 03/06 16:22, Daniel P. Berrangé wrote: > RFE for patchew... > > Now we're sending separate email alerts for each build job, can we > make patchew include the job name in the subject line, so it is > immediately obvious which job failed without needing to read the > body. Yes, doable. Do we still want the original subject (The "Re: ..." part)? If so, any idea what is a good format for the full subject line? Fam
Re: [Qemu-devel] [PATCH] trace: only permit standard C types and fixed size integer types
Hi, This series failed build test on s390x host. Please find the details below. Type: series Message-id: 20180306154625.23910-1-berra...@redhat.com Subject: [Qemu-devel] [PATCH] trace: only permit standard C types and fixed size integer types === TEST SCRIPT BEGIN === #!/bin/bash # Testing script will be invoked under the git checkout with # HEAD pointing to a commit that has the patches applied on top of "base" # branch set -e echo "=== ENV ===" env echo "=== PACKAGES ===" rpm -qa echo "=== TEST BEGIN ===" CC=$HOME/bin/cc INSTALL=$PWD/install BUILD=$PWD/build echo -n "Using CC: " realpath $CC mkdir -p $BUILD $INSTALL SRC=$PWD cd $BUILD $SRC/configure --cc=$CC --prefix=$INSTALL make -j4 # XXX: we need reliable clean up # make check -j4 V=1 make install === TEST SCRIPT END === Updating 3c8cf5a9c21ff8782164d1def7f44bd888713384 From https://github.com/patchew-project/qemu b5fe11a49a..f32408f3b4 master -> master * [new tag] patchew/20180306154625.23910-1-berra...@redhat.com -> patchew/20180306154625.23910-1-berra...@redhat.com * [new tag] patchew/20180306154650.24075-1-berra...@redhat.com -> patchew/20180306154650.24075-1-berra...@redhat.com Switched to a new branch 'test' 0029556152 trace: only permit standard C types and fixed size integer types === OUTPUT BEGIN === === ENV === LANG=en_US.UTF-8 XDG_SESSION_ID=73208 USER=fam PWD=/var/tmp/patchew-tester-tmp-al_786_l/src HOME=/home/fam SHELL=/bin/sh SHLVL=2 PATCHEW=/home/fam/patchew/patchew-cli -s http://patchew.org --nodebug LOGNAME=fam DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1012/bus XDG_RUNTIME_DIR=/run/user/1012 PATH=/usr/bin:/bin _=/usr/bin/env === PACKAGES === gpg-pubkey-873529b8-54e386ff glibc-debuginfo-common-2.24-10.fc25.s390x fedora-release-26-1.noarch dejavu-sans-mono-fonts-2.35-4.fc26.noarch xemacs-filesystem-21.5.34-22.20170124hgf412e9f093d4.fc26.noarch bash-4.4.12-7.fc26.s390x freetype-2.7.1-9.fc26.s390x libSM-1.2.2-5.fc26.s390x libmpc-1.0.2-6.fc26.s390x libaio-0.3.110-7.fc26.s390x libverto-0.2.6-7.fc26.s390x perl-Scalar-List-Utils-1.48-1.fc26.s390x iptables-libs-1.6.1-2.fc26.s390x p11-kit-trust-0.23.9-2.fc26.s390x tcl-8.6.6-2.fc26.s390x libxshmfence-1.2-4.fc26.s390x expect-5.45-23.fc26.s390x perl-Thread-Queue-3.12-1.fc26.noarch perl-encoding-2.19-6.fc26.s390x keyutils-1.5.10-1.fc26.s390x gmp-devel-6.1.2-4.fc26.s390x enchant-1.6.0-16.fc26.s390x net-snmp-libs-5.7.3-17.fc26.s390x python-gobject-base-3.24.1-1.fc26.s390x python3-enchant-1.6.10-1.fc26.noarch python-lockfile-0.11.0-6.fc26.noarch python2-pyparsing-2.1.10-3.fc26.noarch python2-lxml-4.1.1-1.fc26.s390x librados2-10.2.7-2.fc26.s390x trousers-lib-0.3.13-7.fc26.s390x libpaper-1.1.24-14.fc26.s390x libdatrie-0.2.9-4.fc26.s390x libsoup-2.58.2-1.fc26.s390x passwd-0.79-9.fc26.s390x bind99-libs-9.9.10-3.P3.fc26.s390x python3-rpm-4.13.0.2-1.fc26.s390x systemd-233-7.fc26.s390x virglrenderer-0.6.0-1.20170210git76b3da97b.fc26.s390x s390utils-ziomon-1.36.1-3.fc26.s390x s390utils-osasnmpd-1.36.1-3.fc26.s390x libXrandr-1.5.1-2.fc26.s390x libglvnd-glx-1.0.0-1.fc26.s390x texlive-ifxetex-svn19685.0.5-33.fc26.2.noarch texlive-psnfss-svn33946.9.2a-33.fc26.2.noarch texlive-dvipdfmx-def-svn40328-33.fc26.2.noarch texlive-natbib-svn20668.8.31b-33.fc26.2.noarch texlive-xdvi-bin-svn40750-33.20160520.fc26.2.s390x texlive-cm-svn32865.0-33.fc26.2.noarch texlive-beton-svn15878.0-33.fc26.2.noarch texlive-fpl-svn15878.1.002-33.fc26.2.noarch texlive-mflogo-svn38628-33.fc26.2.noarch texlive-texlive-docindex-svn41430-33.fc26.2.noarch texlive-luaotfload-bin-svn34647.0-33.20160520.fc26.2.noarch texlive-koma-script-svn41508-33.fc26.2.noarch texlive-pst-tree-svn24142.1.12-33.fc26.2.noarch texlive-breqn-svn38099.0.98d-33.fc26.2.noarch texlive-xetex-svn41438-33.fc26.2.noarch gstreamer1-plugins-bad-free-1.12.3-1.fc26.s390x xorg-x11-font-utils-7.5-33.fc26.s390x ghostscript-fonts-5.50-36.fc26.noarch libXext-devel-1.3.3-5.fc26.s390x libusbx-devel-1.0.21-2.fc26.s390x libglvnd-devel-1.0.0-1.fc26.s390x emacs-25.3-3.fc26.s390x alsa-lib-devel-1.1.4.1-1.fc26.s390x kbd-2.0.4-2.fc26.s390x dconf-0.26.0-2.fc26.s390x ccache-3.3.4-1.fc26.s390x mc-4.8.19-5.fc26.s390x doxygen-1.8.13-9.fc26.s390x dpkg-1.18.24-1.fc26.s390x libtdb-1.3.13-1.fc26.s390x python2-pynacl-1.1.1-1.fc26.s390x nss-sysinit-3.34.0-1.0.fc26.s390x kernel-4.13.16-202.fc26.s390x perl-Filter-1.58-1.fc26.s390x python2-pip-9.0.1-11.fc26.noarch dnf-2.7.5-2.fc26.noarch sssd-common-1.16.0-4.fc26.s390x python2-sssdconfig-1.16.0-4.fc26.noarch bind-license-9.11.2-1.P1.fc26.noarch libtasn1-4.13-1.fc26.s390x glusterfs-fuse-3.10.10-1.fc26.s390x cpp-7.3.1-2.fc26.s390x pkgconf-1.3.12-2.fc26.s390x python2-fedora-0.10.0-1.fc26.noarch cmake-filesystem-3.10.1-11.fc26.s390x selinux-policy-targeted-3.13.1-260.18.fc26.noarch python3-requests-kerberos-0.12.0-1.fc26.noarch libmicrohttpd-0.9.59-1.fc26.s390x GeoIP-GeoLite-data-2018.01-1.fc26.noarch glibc-debuginfo-2.24-10.fc25.s390x dejavu-font
Re: [Qemu-devel] [PATCH] trace: only permit standard C types and fixed size integer types
On 03/06/2018 12:46 PM, Daniel P. Berrangé wrote: > 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. Exactly what I was thinking of! > > Signed-off-by: Daniel P. Berrangé> --- > scripts/tracetool/__init__.py | 45 > +++ > trace-events | 6 +++--- Maybe split in 2 different patches? > 2 files changed, 48 insertions(+), 3 deletions(-) > > diff --git a/scripts/tracetool/__init__.py b/scripts/tracetool/__init__.py > index 3646c2b9fc..52cc687ae3 100644 > --- a/scripts/tracetool/__init__.py > +++ b/scripts/tracetool/__init__.py > @@ -41,6 +41,50 @@ def out(*lines, **kwargs): > lines = [ l % kwargs for l in lines ] > sys.stdout.writelines("\n".join(lines) + "\n") > > +# 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 > +ALLOWED_TYPES = [ > +"int", > +"long", > +"short", > +"char", > +"bool", > +"unsigned", > +"signed", > +"float", > +"double", > +"int8_t", > +"uint8_t", > +"int16_t", > +"uint16_t", > +"int32_t", > +"uint32_t", > +"int64_t", > +"uint64_t", > +"void", > +"size_t", > +"ssize_t", > +"uintptr_t", ptrdiff_t? Reviewed-by: Philippe Mathieu-Daudé > +# Magic substitution is done by tracetool > +"TCGv", > +] > + > +def validate_type(name): > +bits = name.split(" ") > +for bit in bits: > +bit = re.sub("\*", "", bit) > +if bit == "": > +continue > +if bit == "const": > +continue > +if bit not in ALLOWED_TYPES: > +raise ValueError("Argument type '%s' is not in whitelist. " > + "Only standard C types and fixed size integer " > + "types should be used. struct, union, and " > + "other complex pointer types should be " > + "declared as 'void *'" % name) > > class Arguments: > """Event arguments description.""" > @@ -87,6 +131,7 @@ class Arguments: > else: > arg_type, identifier = arg.rsplit(None, 1) > > +validate_type(arg_type) > res.append((arg_type, identifier)) > return Arguments(res) > > diff --git a/trace-events b/trace-events > index 89fcad0fd1..855b0ab240 100644 > --- a/trace-events > +++ b/trace-events > @@ -68,9 +68,9 @@ memory_region_tb_read(int cpu_index, uint64_t addr, > uint64_t value, unsigned siz > memory_region_tb_write(int cpu_index, uint64_t addr, uint64_t value, > unsigned size) "cpu %d addr 0x%"PRIx64" value 0x%"PRIx64" size %u" > memory_region_ram_device_read(int cpu_index, void *mr, uint64_t addr, > uint64_t value, unsigned size) "cpu %d mr %p addr 0x%"PRIx64" value > 0x%"PRIx64" size %u" > memory_region_ram_device_write(int cpu_index, void *mr, uint64_t addr, > uint64_t value, unsigned size) "cpu %d mr %p addr 0x%"PRIx64" value > 0x%"PRIx64" size %u" > -flatview_new(FlatView *view, MemoryRegion *root) "%p (root %p)" > -flatview_destroy(FlatView *view, MemoryRegion *root) "%p (root %p)" > -flatview_destroy_rcu(FlatView *view, MemoryRegion *root) "%p (root %p)" > +flatview_new(void *view, void *root) "%p (root %p)" > +flatview_destroy(void *view, void *root) "%p (root %p)" > +flatview_destroy_rcu(void *view, void *root) "%p (root %p)" > > # gdbstub.c > gdbstub_op_start(const char *device) "Starting gdbstub using device %s" >
Re: [Qemu-devel] [PATCH] trace: only permit standard C types and fixed size integer types
Hi, This series failed build test on ppcbe host. Please find the details below. Type: series Message-id: 20180306154625.23910-1-berra...@redhat.com Subject: [Qemu-devel] [PATCH] trace: only permit standard C types and fixed size integer types === TEST SCRIPT BEGIN === #!/bin/bash # Testing script will be invoked under the git checkout with # HEAD pointing to a commit that has the patches applied on top of "base" # branch set -e echo "=== ENV ===" env echo "=== PACKAGES ===" rpm -qa echo "=== TEST BEGIN ===" INSTALL=$PWD/install BUILD=$PWD/build mkdir -p $BUILD $INSTALL SRC=$PWD cd $BUILD $SRC/configure --prefix=$INSTALL make -j100 # XXX: we need reliable clean up # make check -j100 V=1 make install === TEST SCRIPT END === Updating 3c8cf5a9c21ff8782164d1def7f44bd888713384 From https://github.com/patchew-project/qemu * [new tag] patchew/20180306164504.9138-1-be...@igalia.com -> patchew/20180306164504.9138-1-be...@igalia.com * [new tag] patchew/20180306164957.24275-1-pbonz...@redhat.com -> patchew/20180306164957.24275-1-pbonz...@redhat.com - [tag update] patchew/cover.1520352600.git.be...@igalia.com -> patchew/cover.1520352600.git.be...@igalia.com Submodule 'capstone' (git://git.qemu.org/capstone.git) registered for path 'capstone' Submodule 'dtc' (git://git.qemu-project.org/dtc.git) registered for path 'dtc' Submodule 'roms/QemuMacDrivers' (git://git.qemu.org/QemuMacDrivers.git) registered for path 'roms/QemuMacDrivers' Submodule 'roms/SLOF' (git://git.qemu-project.org/SLOF.git) registered for path 'roms/SLOF' Submodule 'roms/ipxe' (git://git.qemu-project.org/ipxe.git) registered for path 'roms/ipxe' Submodule 'roms/openbios' (git://git.qemu-project.org/openbios.git) registered for path 'roms/openbios' Submodule 'roms/openhackware' (git://git.qemu-project.org/openhackware.git) registered for path 'roms/openhackware' Submodule 'roms/qemu-palcode' (git://github.com/rth7680/qemu-palcode.git) registered for path 'roms/qemu-palcode' Submodule 'roms/seabios' (git://git.qemu-project.org/seabios.git/) registered for path 'roms/seabios' Submodule 'roms/seabios-hppa' (git://github.com/hdeller/seabios-hppa.git) registered for path 'roms/seabios-hppa' Submodule 'roms/sgabios' (git://git.qemu-project.org/sgabios.git) registered for path 'roms/sgabios' Submodule 'roms/skiboot' (git://git.qemu.org/skiboot.git) registered for path 'roms/skiboot' Submodule 'roms/u-boot' (git://git.qemu-project.org/u-boot.git) registered for path 'roms/u-boot' Submodule 'roms/u-boot-sam460ex' (git://github.com/zbalaton/u-boot-sam460ex) registered for path 'roms/u-boot-sam460ex' Submodule 'roms/vgabios' (git://git.qemu-project.org/vgabios.git/) registered for path 'roms/vgabios' Submodule 'ui/keycodemapdb' (git://git.qemu.org/keycodemapdb.git) registered for path 'ui/keycodemapdb' Cloning into 'capstone'... Submodule path 'capstone': checked out '22ead3e0bfdb87516656453336160e0a37b066bf' Cloning into 'dtc'... Submodule path 'dtc': checked out 'e54388015af1fb4bf04d0bca99caba1074d9cc42' Cloning into 'roms/QemuMacDrivers'... Submodule path 'roms/QemuMacDrivers': checked out 'd4e7d7ac663fcb55f1b93575445fcbca372f17a7' Cloning into 'roms/SLOF'... Submodule path 'roms/SLOF': checked out 'fa981320a1e0968d6fc1b8de319723ff8212b337' Cloning into 'roms/ipxe'... Submodule path 'roms/ipxe': checked out '0600d3ae94f93efd10fc6b3c7420a9557a3a1670' Cloning into 'roms/openbios'... Submodule path 'roms/openbios': checked out '54d959d97fb331708767b2fd4a878efd2bbc41bb' Cloning into 'roms/openhackware'... Submodule path 'roms/openhackware': checked out 'c559da7c8eec5e45ef1f67978827af6f0b9546f5' Cloning into 'roms/qemu-palcode'... Submodule path 'roms/qemu-palcode': checked out 'f3c7e44c70254975df2a00af39701eafbac4d471' Cloning into 'roms/seabios'... Submodule path 'roms/seabios': checked out '63451fca13c75870e1703eb3e20584d91179aebc' Cloning into 'roms/seabios-hppa'... Submodule path 'roms/seabios-hppa': checked out '649e6202b8d65d46c69f542b1380f840fbe8ab13' Cloning into 'roms/sgabios'... Submodule path 'roms/sgabios': checked out 'cbaee52287e5f32373181cff50a00b6c4ac9015a' Cloning into 'roms/skiboot'... Submodule path 'roms/skiboot': checked out 'e0ee24c27a172bcf482f6f2bc905e6211c134bcc' Cloning into 'roms/u-boot'... Submodule path 'roms/u-boot': checked out 'd85ca029f257b53a96da6c2fb421e78a003a9943' Cloning into 'roms/u-boot-sam460ex'... Submodule path 'roms/u-boot-sam460ex': checked out '119aa277f74a4a2d3f7ab6c9471292308eba14e4' Cloning into 'roms/vgabios'... Submodule path 'roms/vgabios': checked out '19ea12c230ded95928ecaef0db47a82231c2e485' Cloning into 'ui/keycodemapdb'... Submodule path 'ui/keycodemapdb': checked out '6b3d716e2b6472eb7189d3220552280ef3d832ce' Switched to a new branch 'test' 0029556 trace: only permit standard C types and fixed size integer types === OUTPUT BEGIN === === ENV === XDG_SESSION_ID=29961 SHELL=/bin/sh USER=patchew PATCH
Re: [Qemu-devel] [PATCH] trace: only permit standard C types and fixed size integer types
Hi, This series failed docker-build@min-glib build test. Please find the testing commands and their output below. If you have Docker installed, you can probably reproduce it locally. Type: series Message-id: 20180306154625.23910-1-berra...@redhat.com Subject: [Qemu-devel] [PATCH] trace: only permit standard C types and fixed size integer types === TEST SCRIPT BEGIN === #!/bin/bash set -e git submodule update --init dtc # Let docker tests dump environment info export SHOW_ENV=1 export J=8 time make docker-test-build@min-glib === TEST SCRIPT END === Updating 3c8cf5a9c21ff8782164d1def7f44bd888713384 Switched to a new branch 'test' 0029556152 trace: only permit standard C types and fixed size integer types === OUTPUT BEGIN === Submodule 'dtc' (git://git.qemu-project.org/dtc.git) registered for path 'dtc' Cloning into '/var/tmp/patchew-tester-tmp-xejdhb5w/src/dtc'... Submodule path 'dtc': checked out 'e54388015af1fb4bf04d0bca99caba1074d9cc42' BUILD min-glib make[1]: Entering directory '/var/tmp/patchew-tester-tmp-xejdhb5w/src' GEN /var/tmp/patchew-tester-tmp-xejdhb5w/src/docker-src.2018-03-06-11.18.58.10021/qemu.tar Cloning into '/var/tmp/patchew-tester-tmp-xejdhb5w/src/docker-src.2018-03-06-11.18.58.10021/qemu.tar.vroot'... done. Your branch is up-to-date with 'origin/test'. Submodule 'dtc' (git://git.qemu-project.org/dtc.git) registered for path 'dtc' Cloning into '/var/tmp/patchew-tester-tmp-xejdhb5w/src/docker-src.2018-03-06-11.18.58.10021/qemu.tar.vroot/dtc'... Submodule path 'dtc': checked out 'e54388015af1fb4bf04d0bca99caba1074d9cc42' Submodule 'ui/keycodemapdb' (git://git.qemu.org/keycodemapdb.git) registered for path 'ui/keycodemapdb' Cloning into '/var/tmp/patchew-tester-tmp-xejdhb5w/src/docker-src.2018-03-06-11.18.58.10021/qemu.tar.vroot/ui/keycodemapdb'... Submodule path 'ui/keycodemapdb': checked out '6b3d716e2b6472eb7189d3220552280ef3d832ce' COPYRUNNER RUN test-build in qemu:min-glib Environment variables: HOSTNAME=e40f427922d2 MAKEFLAGS= -j8 J=8 CCACHE_DIR=/var/tmp/ccache EXTRA_CONFIGURE_OPTS= V= SHOW_ENV=1 PATH=/usr/lib/ccache:/usr/lib64/ccache:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin PWD=/ TARGET_LIST= SHLVL=1 HOME=/root TEST_DIR=/tmp/qemu-test FEATURES= dtc DEBUG= _=/usr/bin/env Configure options: --enable-werror --target-list=x86_64-softmmu,aarch64-softmmu --prefix=/tmp/qemu-test/install No C++ compiler available; disabling C++ specific optional code Install prefix/tmp/qemu-test/install BIOS directory/tmp/qemu-test/install/share/qemu firmware path /tmp/qemu-test/install/share/qemu-firmware binary directory /tmp/qemu-test/install/bin library directory /tmp/qemu-test/install/lib module directory /tmp/qemu-test/install/lib/qemu libexec directory /tmp/qemu-test/install/libexec include directory /tmp/qemu-test/install/include config directory /tmp/qemu-test/install/etc local state directory /tmp/qemu-test/install/var Manual directory /tmp/qemu-test/install/share/man ELF interp prefix /usr/gnemul/qemu-%M Source path /tmp/qemu-test/src GIT binarygit GIT submodules C compilercc Host C compiler cc C++ compiler Objective-C compiler cc ARFLAGS rv CFLAGS-O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -g QEMU_CFLAGS -I/usr/include/pixman-1 -I$(SRC_PATH)/dtc/libfdt -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -fPIE -DPIE -m64 -mcx16 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wall -Wundef -Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing -fno-common -fwrapv -Wendif-labels -Wno-missing-include-dirs -Wempty-body -Wnested-externs -Wformat-security -Wformat-y2k -Winit-self -Wignored-qualifiers -Wold-style-declaration -Wold-style-definition -Wtype-limits -fstack-protector-all -Wno-missing-braces LDFLAGS -Wl,--warn-common -Wl,-z,relro -Wl,-z,now -pie -m64 -g make make install install pythonpython -B smbd /usr/sbin/smbd module supportno host CPU x86_64 host big endian no target list x86_64-softmmu aarch64-softmmu gprof enabled no sparse enabledno strip binariesyes profiler no static build no SDL support yes (1.2.14) GTK support no GTK GL supportno VTE support no TLS priority NORMAL GNUTLS supportno GNUTLS rndno libgcrypt no libgcrypt kdf no nettleno nettle kdfno libtasn1 no curses supportno virgl support no curl support no mingw32 support no Audio drivers oss Block whitelist (rw) Block whitelist (ro) VirtFS supportno Multipath support no VNC support yes VNC SASL support no VNC JPEG support no VNC PNG support no xen support no brlapi supportno bluez supportno Documentation no PIE yes vde support no netmap supportno Linux AIO support
Re: [Qemu-devel] [PATCH] trace: only permit standard C types and fixed size integer types
On Tue, Mar 06, 2018 at 08:05:18AM -0800, no-re...@patchew.org wrote: > Hi, > > This series failed docker-mingw@fedora build test. Please find the testing > commands and > their output below. If you have Docker installed, you can probably reproduce > it > locally. > > Type: series > Message-id: 20180306154625.23910-1-berra...@redhat.com > Subject: [Qemu-devel] [PATCH] trace: only permit standard C types and fixed > size integer types > > Traceback (most recent call last): > File "/tmp/qemu-test/src/scripts/tracetool.py", line 154, in > main(sys.argv) > File "/tmp/qemu-test/src/scripts/tracetool.py", line 145, in main > events.extend(tracetool.read_events(fh)) > File "/tmp/qemu-test/src/scripts/tracetool/__init__.py", line 358, in > read_events > event = Event.build(line) > File "/tmp/qemu-test/src/scripts/tracetool/__init__.py", line 280, in build > args = Arguments.build(groups["args"]) > File "/tmp/qemu-test/src/scripts/tracetool/__init__.py", line 134, in build > validate_type(arg_type) > File "/tmp/qemu-test/src/scripts/tracetool/__init__.py", line 87, in > validate_type > "declared as 'void *'" % name) > ValueError: Error on line 95: Argument type 'hwaddr' is not in whitelist. > Only standard C types and fixed size integer types should be used. struct, > union, and other complex pointer types should be declared as 'void *' This nicely illustrates this patch working as documented ! The fix for the "hwaddr" mistake was just merged in QEMU git master, so if patchew can be re-run, applying to latest master it should pass. Regards, Daniel -- |: https://berrange.com -o-https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o-https://fstop138.berrange.com :| |: https://entangle-photo.org-o-https://www.instagram.com/dberrange :|
Re: [Qemu-devel] [PATCH] trace: only permit standard C types and fixed size integer types
RFE for patchew... Now we're sending separate email alerts for each build job, can we make patchew include the job name in the subject line, so it is immediately obvious which job failed without needing to read the body. Regards, Daniel On Tue, Mar 06, 2018 at 08:12:27AM -0800, no-re...@patchew.org wrote: > Hi, > > This series failed build test on s390x host. Please find the details below. > > Type: series > Message-id: 20180306154625.23910-1-berra...@redhat.com > Subject: [Qemu-devel] [PATCH] trace: only permit standard C types and fixed > size integer types > > === TEST SCRIPT BEGIN === > #!/bin/bash > # Testing script will be invoked under the git checkout with > # HEAD pointing to a commit that has the patches applied on top of "base" > # branch > set -e > echo "=== ENV ===" > env > echo "=== PACKAGES ===" > rpm -qa > echo "=== TEST BEGIN ===" > CC=$HOME/bin/cc > INSTALL=$PWD/install > BUILD=$PWD/build > echo -n "Using CC: " > realpath $CC > mkdir -p $BUILD $INSTALL > SRC=$PWD > cd $BUILD > $SRC/configure --cc=$CC --prefix=$INSTALL > make -j4 > # XXX: we need reliable clean up > # make check -j4 V=1 > make install > === TEST SCRIPT END === > > Updating 3c8cf5a9c21ff8782164d1def7f44bd888713384 > From https://github.com/patchew-project/qemu >b5fe11a49a..f32408f3b4 master -> master > * [new tag] patchew/20180306154625.23910-1-berra...@redhat.com > -> patchew/20180306154625.23910-1-berra...@redhat.com > * [new tag] patchew/20180306154650.24075-1-berra...@redhat.com > -> patchew/20180306154650.24075-1-berra...@redhat.com > Switched to a new branch 'test' > 0029556152 trace: only permit standard C types and fixed size integer types > > === OUTPUT BEGIN === > === ENV === > LANG=en_US.UTF-8 > XDG_SESSION_ID=73208 > USER=fam > PWD=/var/tmp/patchew-tester-tmp-al_786_l/src > HOME=/home/fam > SHELL=/bin/sh > SHLVL=2 > PATCHEW=/home/fam/patchew/patchew-cli -s http://patchew.org --nodebug > LOGNAME=fam > DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1012/bus > XDG_RUNTIME_DIR=/run/user/1012 > PATH=/usr/bin:/bin > _=/usr/bin/env > === PACKAGES === > gpg-pubkey-873529b8-54e386ff > glibc-debuginfo-common-2.24-10.fc25.s390x > fedora-release-26-1.noarch > dejavu-sans-mono-fonts-2.35-4.fc26.noarch > xemacs-filesystem-21.5.34-22.20170124hgf412e9f093d4.fc26.noarch > bash-4.4.12-7.fc26.s390x > freetype-2.7.1-9.fc26.s390x > libSM-1.2.2-5.fc26.s390x > libmpc-1.0.2-6.fc26.s390x > libaio-0.3.110-7.fc26.s390x > libverto-0.2.6-7.fc26.s390x > perl-Scalar-List-Utils-1.48-1.fc26.s390x > iptables-libs-1.6.1-2.fc26.s390x > p11-kit-trust-0.23.9-2.fc26.s390x > tcl-8.6.6-2.fc26.s390x > libxshmfence-1.2-4.fc26.s390x > expect-5.45-23.fc26.s390x > perl-Thread-Queue-3.12-1.fc26.noarch > perl-encoding-2.19-6.fc26.s390x > keyutils-1.5.10-1.fc26.s390x > gmp-devel-6.1.2-4.fc26.s390x > enchant-1.6.0-16.fc26.s390x > net-snmp-libs-5.7.3-17.fc26.s390x > python-gobject-base-3.24.1-1.fc26.s390x > python3-enchant-1.6.10-1.fc26.noarch > python-lockfile-0.11.0-6.fc26.noarch > python2-pyparsing-2.1.10-3.fc26.noarch > python2-lxml-4.1.1-1.fc26.s390x > librados2-10.2.7-2.fc26.s390x > trousers-lib-0.3.13-7.fc26.s390x > libpaper-1.1.24-14.fc26.s390x > libdatrie-0.2.9-4.fc26.s390x > libsoup-2.58.2-1.fc26.s390x > passwd-0.79-9.fc26.s390x > bind99-libs-9.9.10-3.P3.fc26.s390x > python3-rpm-4.13.0.2-1.fc26.s390x > systemd-233-7.fc26.s390x > virglrenderer-0.6.0-1.20170210git76b3da97b.fc26.s390x > s390utils-ziomon-1.36.1-3.fc26.s390x > s390utils-osasnmpd-1.36.1-3.fc26.s390x > libXrandr-1.5.1-2.fc26.s390x > libglvnd-glx-1.0.0-1.fc26.s390x > texlive-ifxetex-svn19685.0.5-33.fc26.2.noarch > texlive-psnfss-svn33946.9.2a-33.fc26.2.noarch > texlive-dvipdfmx-def-svn40328-33.fc26.2.noarch > texlive-natbib-svn20668.8.31b-33.fc26.2.noarch > texlive-xdvi-bin-svn40750-33.20160520.fc26.2.s390x > texlive-cm-svn32865.0-33.fc26.2.noarch > texlive-beton-svn15878.0-33.fc26.2.noarch > texlive-fpl-svn15878.1.002-33.fc26.2.noarch > texlive-mflogo-svn38628-33.fc26.2.noarch > texlive-texlive-docindex-svn41430-33.fc26.2.noarch > texlive-luaotfload-bin-svn34647.0-33.20160520.fc26.2.noarch > texlive-koma-script-svn41508-33.fc26.2.noarch > texlive-pst-tree-svn24142.1.12-33.fc26.2.noarch > texlive-breqn-svn38099.0.98d-33.fc26.2.noarch > texlive-xetex-svn41438-33.fc26.2.noarch > gstreamer1-plugins-bad-free-1.12.3-1.fc26.s390x > xorg-x11-font-utils-7.5-33.fc26.s390x > ghostscript-fonts-5.50-36.fc26.noarch > libXext-devel-1.3.3-5.fc26.s390x > libusbx-devel-1.0.21-2.fc26.s390x > libglvnd-devel-1.0.0-1.fc26.s390x > emacs-25.3
Re: [Qemu-devel] [PATCH] trace: only permit standard C types and fixed size integer types
Hi, This series failed docker-quick@centos6 build test. Please find the testing commands and their output below. If you have Docker installed, you can probably reproduce it locally. Type: series Message-id: 20180306154625.23910-1-berra...@redhat.com Subject: [Qemu-devel] [PATCH] trace: only permit standard C types and fixed size integer types === TEST SCRIPT BEGIN === #!/bin/bash set -e git submodule update --init dtc # Let docker tests dump environment info export SHOW_ENV=1 export J=8 time make docker-test-quick@centos6 === TEST SCRIPT END === Updating 3c8cf5a9c21ff8782164d1def7f44bd888713384 Switched to a new branch 'test' 0029556152 trace: only permit standard C types and fixed size integer types === OUTPUT BEGIN === Submodule 'dtc' (git://git.qemu-project.org/dtc.git) registered for path 'dtc' Cloning into '/var/tmp/patchew-tester-tmp-kqwomn5e/src/dtc'... Submodule path 'dtc': checked out 'e54388015af1fb4bf04d0bca99caba1074d9cc42' BUILD centos6 make[1]: Entering directory '/var/tmp/patchew-tester-tmp-kqwomn5e/src' GEN /var/tmp/patchew-tester-tmp-kqwomn5e/src/docker-src.2018-03-06-11.15.52.32631/qemu.tar Cloning into '/var/tmp/patchew-tester-tmp-kqwomn5e/src/docker-src.2018-03-06-11.15.52.32631/qemu.tar.vroot'... done. Your branch is up-to-date with 'origin/test'. Submodule 'dtc' (git://git.qemu-project.org/dtc.git) registered for path 'dtc' Cloning into '/var/tmp/patchew-tester-tmp-kqwomn5e/src/docker-src.2018-03-06-11.15.52.32631/qemu.tar.vroot/dtc'... Submodule path 'dtc': checked out 'e54388015af1fb4bf04d0bca99caba1074d9cc42' Submodule 'ui/keycodemapdb' (git://git.qemu.org/keycodemapdb.git) registered for path 'ui/keycodemapdb' Cloning into '/var/tmp/patchew-tester-tmp-kqwomn5e/src/docker-src.2018-03-06-11.15.52.32631/qemu.tar.vroot/ui/keycodemapdb'... Submodule path 'ui/keycodemapdb': checked out '6b3d716e2b6472eb7189d3220552280ef3d832ce' COPYRUNNER RUN test-quick in qemu:centos6 Packages installed: SDL-devel-1.2.14-7.el6_7.1.x86_64 bison-2.4.1-5.el6.x86_64 bzip2-devel-1.0.5-7.el6_0.x86_64 ccache-3.1.6-2.el6.x86_64 csnappy-devel-0-6.20150729gitd7bc683.el6.x86_64 flex-2.5.35-9.el6.x86_64 gcc-4.4.7-18.el6.x86_64 gettext-0.17-18.el6.x86_64 git-1.7.1-9.el6_9.x86_64 glib2-devel-2.28.8-9.el6.x86_64 libepoxy-devel-1.2-3.el6.x86_64 libfdt-devel-1.4.0-1.el6.x86_64 librdmacm-devel-1.0.21-0.el6.x86_64 lzo-devel-2.03-3.1.el6_5.1.x86_64 make-3.81-23.el6.x86_64 mesa-libEGL-devel-11.0.7-4.el6.x86_64 mesa-libgbm-devel-11.0.7-4.el6.x86_64 package g++ is not installed pixman-devel-0.32.8-1.el6.x86_64 spice-glib-devel-0.26-8.el6.x86_64 spice-server-devel-0.12.4-16.el6.x86_64 tar-1.23-15.el6_8.x86_64 vte-devel-0.25.1-9.el6.x86_64 xen-devel-4.6.6-2.el6.x86_64 zlib-devel-1.2.3-29.el6.x86_64 Environment variables: PACKAGES=bison bzip2-devel ccache csnappy-devel flex g++ gcc gettext git glib2-devel libepoxy-devel libfdt-devel librdmacm-devel lzo-devel make mesa-libEGL-devel mesa-libgbm-devel pixman-devel SDL-devel spice-glib-devel spice-server-devel tar vte-devel xen-devel zlib-devel HOSTNAME=eeb5319ac36c MAKEFLAGS= -j8 J=8 CCACHE_DIR=/var/tmp/ccache EXTRA_CONFIGURE_OPTS= V= SHOW_ENV=1 PATH=/usr/lib/ccache:/usr/lib64/ccache:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin PWD=/ TARGET_LIST= SHLVL=1 HOME=/root TEST_DIR=/tmp/qemu-test FEATURES= dtc DEBUG= _=/usr/bin/env Configure options: --enable-werror --target-list=x86_64-softmmu,aarch64-softmmu --prefix=/tmp/qemu-test/install No C++ compiler available; disabling C++ specific optional code Install prefix/tmp/qemu-test/install BIOS directory/tmp/qemu-test/install/share/qemu firmware path /tmp/qemu-test/install/share/qemu-firmware binary directory /tmp/qemu-test/install/bin library directory /tmp/qemu-test/install/lib module directory /tmp/qemu-test/install/lib/qemu libexec directory /tmp/qemu-test/install/libexec include directory /tmp/qemu-test/install/include config directory /tmp/qemu-test/install/etc local state directory /tmp/qemu-test/install/var Manual directory /tmp/qemu-test/install/share/man ELF interp prefix /usr/gnemul/qemu-%M Source path /tmp/qemu-test/src GIT binarygit GIT submodules C compilercc Host C compiler cc C++ compiler Objective-C compiler cc ARFLAGS rv CFLAGS-O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -g QEMU_CFLAGS -I/usr/include/pixman-1 -I$(SRC_PATH)/dtc/libfdt -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -fPIE -DPIE -m64 -mcx16 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wall -Wundef -Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing -fno-common -fwrapv -Wendif-labels -Wno-missing-include-dirs -Wempty-body -Wnested-externs -Wformat-security -Wformat-y2k -Winit-self -Wignored-qualifiers -Wold-style-declaration -Wold-style-definition
Re: [Qemu-devel] [PATCH] trace: only permit standard C types and fixed size integer types
Hi, This series failed docker-mingw@fedora build test. Please find the testing commands and their output below. If you have Docker installed, you can probably reproduce it locally. Type: series Message-id: 20180306154625.23910-1-berra...@redhat.com Subject: [Qemu-devel] [PATCH] trace: only permit standard C types and fixed size integer types === TEST SCRIPT BEGIN === #!/bin/bash set -e git submodule update --init dtc # Let docker tests dump environment info export SHOW_ENV=1 export J=8 time make docker-test-mingw@fedora === TEST SCRIPT END === Updating 3c8cf5a9c21ff8782164d1def7f44bd888713384 Switched to a new branch 'test' 0029556152 trace: only permit standard C types and fixed size integer types === OUTPUT BEGIN === Submodule 'dtc' (git://git.qemu-project.org/dtc.git) registered for path 'dtc' Cloning into '/var/tmp/patchew-tester-tmp-6_ow2jky/src/dtc'... Submodule path 'dtc': checked out 'e54388015af1fb4bf04d0bca99caba1074d9cc42' BUILD fedora make[1]: Entering directory '/var/tmp/patchew-tester-tmp-6_ow2jky/src' GEN /var/tmp/patchew-tester-tmp-6_ow2jky/src/docker-src.2018-03-06-11.04.12.9933/qemu.tar Cloning into '/var/tmp/patchew-tester-tmp-6_ow2jky/src/docker-src.2018-03-06-11.04.12.9933/qemu.tar.vroot'... done. Checking out files: 46% (2786/5941) Checking out files: 47% (2793/5941) Checking out files: 48% (2852/5941) Checking out files: 49% (2912/5941) Checking out files: 50% (2971/5941) Checking out files: 51% (3030/5941) Checking out files: 52% (3090/5941) Checking out files: 53% (3149/5941) Checking out files: 54% (3209/5941) Checking out files: 55% (3268/5941) Checking out files: 56% (3327/5941) Checking out files: 57% (3387/5941) Checking out files: 58% (3446/5941) Checking out files: 59% (3506/5941) Checking out files: 60% (3565/5941) Checking out files: 61% (3625/5941) Checking out files: 62% (3684/5941) Checking out files: 63% (3743/5941) Checking out files: 64% (3803/5941) Checking out files: 65% (3862/5941) Checking out files: 66% (3922/5941) Checking out files: 67% (3981/5941) Checking out files: 68% (4040/5941) Checking out files: 69% (4100/5941) Checking out files: 70% (4159/5941) Checking out files: 71% (4219/5941) Checking out files: 72% (4278/5941) Checking out files: 73% (4337/5941) Checking out files: 74% (4397/5941) Checking out files: 75% (4456/5941) Checking out files: 76% (4516/5941) Checking out files: 77% (4575/5941) Checking out files: 78% (4634/5941) Checking out files: 79% (4694/5941) Checking out files: 80% (4753/5941) Checking out files: 81% (4813/5941) Checking out files: 82% (4872/5941) Checking out files: 83% (4932/5941) Checking out files: 84% (4991/5941) Checking out files: 85% (5050/5941) Checking out files: 86% (5110/5941) Checking out files: 87% (5169/5941) Checking out files: 88% (5229/5941) Checking out files: 89% (5288/5941) Checking out files: 90% (5347/5941) Checking out files: 91% (5407/5941) Checking out files: 92% (5466/5941) Checking out files: 93% (5526/5941) Checking out files: 94% (5585/5941) Checking out files: 95% (5644/5941) Checking out files: 96% (5704/5941) Checking out files: 97% (5763/5941) Checking out files: 98% (5823/5941) Checking out files: 99% (5882/5941) Checking out files: 99% (5933/5941) Checking out files: 100% (5941/5941) Checking out files: 100% (5941/5941), done. Your branch is up-to-date with 'origin/test'. Submodule 'dtc' (git://git.qemu-project.org/dtc.git) registered for path 'dtc' Cloning into '/var/tmp/patchew-tester-tmp-6_ow2jky/src/docker-src.2018-03-06-11.04.12.9933/qemu.tar.vroot/dtc'... Submodule path 'dtc': checked out 'e54388015af1fb4bf04d0bca99caba1074d9cc42' Submodule 'ui/keycodemapdb' (git://git.qemu.org/keycodemapdb.git) registered for path 'ui/keycodemapdb' Cloning into '/var/tmp/patchew-tester-tmp-6_ow2jky/src/docker-src.2018-03-06-11.04.12.9933/qemu.tar.vroot/ui/keycodemapdb'... Submodule path 'ui/keycodemapdb': checked out '6b3d716e2b6472eb7189d3220552280ef3d832ce' COPYRUNNER RUN test-mingw in qemu:fedora Packages installed: PyYAML-3.12-5.fc27.x86_64 SDL-devel-1.2.15-29.fc27.x86_64 bc-1.07.1-3.fc27.x86_64 bison-3.0.4-8.fc27.x86_64 bzip2-1.0.6-24.fc27.x86_64 ccache-3.3.5-1.fc27.x86_64 clang-5.0.1-1.fc27.x86_64 findutils-4.6.0-14.fc27.x86_64 flex-2.6.1-5.fc27.x86_64 gcc-7.3.1-2.fc27.x86_64 gcc-c++-7.3.1-2.fc27.x86_64 gettext-0.19.8.1-12.fc27.x86_64 git-2.14.3-2.fc27.x86_64 glib2-devel-2.54.3-2.fc27.x86_64 hostname-3.18-4.fc27.x86_64 libaio-devel-0.3.110-9.fc27.x86_64 libasan-7.3.1-2.fc27.x86_64 libfdt-devel-1.4.6-1.fc27.x86_64 libubsan-7.3.1-2.fc27.x86_64 make-4.2.1-4.fc27.x86_64 mingw32-SDL-1.2.15-9.fc27.noarch mingw32-bzip2-1.0.6-9.fc27.noarch mingw32-curl-7.54.1-2.fc27.noarch mingw32-glib2-2.54.1-1.fc27.noarch mingw32-gmp-6.1.2-2.fc27.noarch mingw32-gnutls
[Qemu-devel] [PATCH] 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é--- scripts/tracetool/__init__.py | 45 +++ trace-events | 6 +++--- 2 files changed, 48 insertions(+), 3 deletions(-) diff --git a/scripts/tracetool/__init__.py b/scripts/tracetool/__init__.py index 3646c2b9fc..52cc687ae3 100644 --- a/scripts/tracetool/__init__.py +++ b/scripts/tracetool/__init__.py @@ -41,6 +41,50 @@ def out(*lines, **kwargs): lines = [ l % kwargs for l in lines ] sys.stdout.writelines("\n".join(lines) + "\n") +# 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 +ALLOWED_TYPES = [ +"int", +"long", +"short", +"char", +"bool", +"unsigned", +"signed", +"float", +"double", +"int8_t", +"uint8_t", +"int16_t", +"uint16_t", +"int32_t", +"uint32_t", +"int64_t", +"uint64_t", +"void", +"size_t", +"ssize_t", +"uintptr_t", +# Magic substitution is done by tracetool +"TCGv", +] + +def validate_type(name): +bits = name.split(" ") +for bit in bits: +bit = re.sub("\*", "", bit) +if bit == "": +continue +if bit == "const": +continue +if bit not in ALLOWED_TYPES: +raise ValueError("Argument type '%s' is not in whitelist. " + "Only standard C types and fixed size integer " + "types should be used. struct, union, and " + "other complex pointer types should be " + "declared as 'void *'" % name) class Arguments: """Event arguments description.""" @@ -87,6 +131,7 @@ class Arguments: else: arg_type, identifier = arg.rsplit(None, 1) +validate_type(arg_type) res.append((arg_type, identifier)) return Arguments(res) diff --git a/trace-events b/trace-events index 89fcad0fd1..855b0ab240 100644 --- a/trace-events +++ b/trace-events @@ -68,9 +68,9 @@ memory_region_tb_read(int cpu_index, uint64_t addr, uint64_t value, unsigned siz memory_region_tb_write(int cpu_index, uint64_t addr, uint64_t value, unsigned size) "cpu %d addr 0x%"PRIx64" value 0x%"PRIx64" size %u" memory_region_ram_device_read(int cpu_index, void *mr, uint64_t addr, uint64_t value, unsigned size) "cpu %d mr %p addr 0x%"PRIx64" value 0x%"PRIx64" size %u" memory_region_ram_device_write(int cpu_index, void *mr, uint64_t addr, uint64_t value, unsigned size) "cpu %d mr %p addr 0x%"PRIx64" value 0x%"PRIx64" size %u" -flatview_new(FlatView *view, MemoryRegion *root) "%p (root %p)" -flatview_destroy(FlatView *view, MemoryRegion *root) "%p (root %p)" -flatview_destroy_rcu(FlatView *view, MemoryRegion *root) "%p (root %p)" +flatview_new(void *view, void *root) "%p (root %p)" +flatview_destroy(void *view, void *root) "%p (root %p)" +flatview_destroy_rcu(void *view, void *root) "%p (root %p)" # gdbstub.c gdbstub_op_start(const char *device) "Starting gdbstub using device %s" -- 2.14.3