No description
Find a file
Stefan Hajnoczi 913540a376 trace: allow PRI*64 at beginning and ending of format string
The tracetool parser only picks up PRI*64 and other format string macros
when enclosed between double quoted strings.  Lift this restriction by
extracting everything after the closing ')' as the format string:

  cpu_set_apic_base(uint64_t val) "%016"PRIx64
                                  ^^        ^^

One trick here: it turns out that backslashes in the format string like
"\n" were being interpreted by echo(1).  Fix this by using the POSIX
printf(1) command instead.  Although it normally does not make sense to
include backslashes in trace event format strings, an injected newline
causes tracetool to emit a broken header file and I want to eliminate
cases where broken output is emitted, even if the input was bad.

Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
2011-09-17 15:14:05 +00:00
audio
block Remove blanks before \n in output strings 2011-09-16 08:25:56 -05:00
bsd-user
darwin-user Remove blanks before \n in output strings 2011-09-16 08:25:56 -05:00
default-configs target-xtensa: add target to the configure script 2011-09-10 16:57:36 +00:00
docs trace: allow PRI*64 at beginning and ending of format string 2011-09-17 15:14:05 +00:00
fpu softfloat: Use uint32 consistently 2011-09-03 17:47:14 +00:00
fsdev
gdb-xml
hw qdev: print bus properties too 2011-09-16 09:06:28 -05:00
libcacard
linux-headers
linux-user Remove blanks before \n in output strings 2011-09-16 08:25:56 -05:00
net
pc-bios
qapi
qga
QMP
roms
scripts trace: allow PRI*64 at beginning and ending of format string 2011-09-17 15:14:05 +00:00
slirp Remove blanks before \n in output strings 2011-09-16 08:25:56 -05:00
sysconfigs/target
target-alpha
target-arm
target-cris
target-i386 kvm: remove unnecessary assignments 2011-09-10 14:50:00 +00:00
target-lm32
target-m68k
target-microblaze
target-mips mips: Support the MT TCStatus IXMT irq disable flag 2011-09-06 11:09:39 +02:00
target-ppc Remove blanks before \n in output strings 2011-09-16 08:25:56 -05:00
target-s390x
target-sh4
target-sparc Gdbstub: Fix back-trace on SPARC32 2011-09-10 18:12:35 +00:00
target-unicore32 Use hex instead of binary. 2011-09-09 12:58:16 -05:00
target-xtensa target-xtensa: add dc232b core and board 2011-09-10 16:57:40 +00:00
tcg tcg/ppc64: Fix zero extension code generation bug for ppc64 host 2011-09-09 19:07:06 +04:00
tests Remove blanks before \n in output strings 2011-09-16 08:25:56 -05:00
trace
ui vns/tls: don't use depricated gnutls functions 2011-09-09 12:58:17 -05:00
.gitignore
.gitmodules
a.out.h
acl.c
acl.h
aes.c
aes.h
aio.c
alpha-dis.c
alpha.ld
arch_init.c target-xtensa: add target stubs 2011-09-10 16:57:36 +00:00
arch_init.h target-xtensa: add target stubs 2011-09-10 16:57:36 +00:00
arm-dis.c
arm-semi.c
arm.ld
async.c async: Allow nested qemu_bh_poll calls 2011-09-06 11:23:51 +02:00
balloon.c balloon: Disassociate handlers from balloon device on unplug 2011-09-09 12:58:16 -05:00
balloon.h balloon: Disassociate handlers from balloon device on unplug 2011-09-09 12:58:16 -05:00
bitmap.c
bitmap.h
bitops.c
bitops.h
block-migration.c
block-migration.h
block.c block: New change_media_cb() parameter load 2011-09-12 15:17:22 +02:00
block.h block: New change_media_cb() parameter load 2011-09-12 15:17:22 +02:00
block_int.h block: Move BlockConf & friends from block_int.h to block.h 2011-09-12 15:17:21 +02:00
blockdev.c ide/atapi scsi-disk: Make monitor eject -f, then change work 2011-09-12 15:17:22 +02:00
blockdev.h
bswap.h bswap.h: build fix 2011-09-16 08:26:31 -05:00
bt-host.c
bt-host.h
bt-vhci.c
buffered_file.c
buffered_file.h
cache-utils.c
cache-utils.h
Changelog
check-qdict.c
check-qfloat.c
check-qint.c
check-qjson.c Fix qjson test of solidus encoding 2011-09-06 10:15:39 -03:00
check-qlist.c
check-qstring.c
cmd.c
cmd.h
CODING_STYLE
compatfd.c
compatfd.h
compiler.h
config.h
configure build: Move tracing objects into libuser on usermode emulation targets 2011-09-16 08:25:56 -05:00
console.c console: Properly switch consoles for screen dumps 2011-09-16 08:25:57 -05:00
console.h curses: fix garbling when chtype != long 2011-09-09 12:58:16 -05:00
COPYING
COPYING.LIB
coroutine-gthread.c
coroutine-ucontext.c
coroutine-win32.c
cpu-all.h
cpu-common.h
cpu-defs.h
cpu-exec.c target-xtensa: implement exceptions 2011-09-10 16:57:38 +00:00
cpus.c
cpus.h
cris-dis.c
cursor.c
cursor_hidden.xpm
cursor_left_ptr.xpm
cutils.c
def-helper.h
device_tree.c
device_tree.h
dis-asm.h
disas.c
disas.h
dma-helpers.c
dma.h
dyngen-exec.h
elf.h target-xtensa: add target stubs 2011-09-10 16:57:36 +00:00
envlist.c
envlist.h
error.c
error.h
error_int.h
exec-all.h
exec-memory.h
exec.c
gdbstub.c Gdbstub: Fix back-trace on SPARC32 2011-09-10 18:12:35 +00:00
gdbstub.h
gen-icount.h
HACKING
hmp-commands.hx
host-utils.c
host-utils.h
hpet.h
hppa-dis.c
hppa.ld
i386-dis.c
i386.ld
ia64-dis.c
ia64.ld
input.c
iohandler.c iohandlers: fix issue with qemu_set_fd_handler() 2011-09-08 08:06:08 -05:00
ioport-user.c
ioport.c
ioport.h
iorange.h
iov.c
iov.h
json-lexer.c
json-lexer.h
json-parser.c
json-parser.h
json-streamer.c
json-streamer.h
kvm-all.c
kvm-stub.c
kvm.h
libfdt_env.h
LICENSE
linux-aio.c linux aio: some comments 2011-09-06 11:23:51 +02:00
m68k-dis.c
m68k-semi.c
m68k.ld
MAINTAINERS MAINTAINERS: add xtensa maintainer 2011-09-10 16:57:40 +00:00
Makefile Makefile: Fix broken build 2011-09-17 14:37:23 +00:00
Makefile.dis
Makefile.hw Makefile.hw: allow hw/ files to include glib headers 2011-09-04 17:46:51 +03:00
Makefile.objs build: Move tracing objects into libuser on usermode emulation targets 2011-09-16 08:25:56 -05:00
Makefile.target build: Move tracing objects into libuser on usermode emulation targets 2011-09-16 08:25:56 -05:00
Makefile.user build: Move tracing objects into libuser on usermode emulation targets 2011-09-16 08:25:56 -05:00
memory.c Fix subtle integer overflow bug in memory API 2011-09-14 11:21:58 +03:00
memory.h
microblaze-dis.c
migration-exec.c
migration-fd.c
migration-tcp.c
migration-unix.c
migration.c
migration.h
mips-dis.c Remove blanks before \n in output strings 2011-09-16 08:25:56 -05:00
mips.ld
module.c
module.h
monitor.c SPARC: Trivial patch to clean up npc monitor output 2011-09-09 09:50:52 +01:00
monitor.h
nbd.c nbd: Clean up use of block_int.h 2011-09-12 15:17:22 +02:00
nbd.h nbd: Clean up use of block_int.h 2011-09-12 15:17:22 +02:00
net.c
net.h
notify.c
notify.h
os-posix.c
os-win32.c
osdep.c
osdep.h
oslib-posix.c qemu_vmalloc: align properly for transparent hugepages and KVM 2011-09-09 12:58:16 -05:00
oslib-win32.c
path.c
pci-ids.txt
pflib.c
pflib.h
poison.h
posix-aio-compat.c
ppc-dis.c
ppc.ld
ppc64.ld
qapi-schema-guest.json
qapi-schema-test.json
qbool.c
qbool.h
qdict-test-data.txt
qdict.c
qdict.h
qemu-aio.h
qemu-barrier.h
qemu-char.c
qemu-char.h
qemu-common.h
qemu-config.c
qemu-config.h
qemu-coroutine-int.h
qemu-coroutine-lock.c
qemu-coroutine.c
qemu-coroutine.h
qemu-doc.texi
qemu-error.c
qemu-error.h
qemu-ga.c
qemu-img-cmds.hx
qemu-img.c
qemu-img.texi
qemu-io.c Remove blanks before \n in output strings 2011-09-16 08:25:56 -05:00
qemu-lock.h
qemu-log.h
qemu-nbd.c Fix include statements for qemu-common.h 2011-09-09 09:56:12 +01:00
qemu-nbd.texi
qemu-objects.h
qemu-option.c
qemu-option.h
qemu-options.h
qemu-options.hx target-xtensa: implement SIMCALL 2011-09-10 16:57:39 +00:00
qemu-os-posix.h
qemu-os-win32.h
qemu-progress.c
qemu-queue.h
qemu-sockets.c
qemu-tech.texi
qemu-thread-posix.c
qemu-thread-posix.h
qemu-thread-win32.c
qemu-thread-win32.h
qemu-thread.h
qemu-timer-common.c
qemu-timer.c
qemu-timer.h
qemu-tool.c
qemu-x509.h
qemu.sasl
qemu_socket.h
qerror.c
qerror.h
qfloat.c
qfloat.h
qint.c
qint.h
qjson.c
qjson.h
qlist.c
qlist.h
qmp-commands.hx block: Show whether the virtual tray is open in info block 2011-09-12 15:17:21 +02:00
qobject.h
qstring.c
qstring.h
range.h
readline.c
readline.h
README
rules.mak
s390-dis.c
s390.ld
savevm.c savevm: Include writable devices with removable media 2011-09-06 11:24:07 +02:00
sh4-dis.c
softmmu-semi.h
softmmu_defs.h
softmmu_exec.h
softmmu_header.h
softmmu_template.h
sparc-dis.c
sparc.ld
sparc64.ld
spice-qemu-char.c spice-qemu-char.c: Use correct printf format char for ssize_t 2011-09-07 09:20:09 +02:00
sysemu.h
targphys.h
tcg-runtime.c
test-coroutine.c
test-qmp-commands.c
test-visitor.c
thunk.c
thunk.h
TODO
trace-events trace: remove newline from grlib_irqmp_check_irqs format string 2011-09-17 15:13:59 +00:00
translate-all.c
uboot_image.h
usb-bsd.c
usb-linux.c usb-host: tag as unmigratable 2011-09-07 09:58:27 +02:00
usb-redir.c
usb-stub.c
user-exec.c
VERSION
version.rc
vgafont.h
vl.c Fix termination by signal with -no-shutdown 2011-09-16 08:25:56 -05:00
x86_64.ld
xen-all.c xen: use uint64_t instead of target_ulong in cpu_ioreq_move 2011-09-09 13:13:16 +00:00
xen-mapcache.c xen-mapcache: Fix rlimit set size. 2011-09-09 13:13:16 +00:00
xen-mapcache.h
xen-stub.c
xtensa-semi.c target-xtensa: implement SIMCALL 2011-09-10 16:57:39 +00:00

Read the documentation in qemu-doc.html.

Fabrice Bellard.