]> git.proxmox.com Git - qemu.git/blame - trace-events
Remove unncessary includes
[qemu.git] / trace-events
CommitLineData
94a420b1
SH
1# Trace events for debugging and performance instrumentation
2#
3# This file is processed by the tracetool script during the build.
4#
5# To add a new trace event:
6#
7# 1. Choose a name for the trace event. Declare its arguments and format
8# string.
9#
10# 2. Call the trace event from code using trace_##name, e.g. multiwrite_cb() ->
11# trace_multiwrite_cb(). The source file must #include "trace.h".
12#
13# Format of a trace event:
14#
1e2cf2bc 15# [disable] <name>(<type1> <arg1>[, <type2> <arg2>] ...) "<format-string>"
94a420b1
SH
16#
17# Example: qemu_malloc(size_t size) "size %zu"
18#
1e2cf2bc
SH
19# The "disable" keyword will build without the trace event.
20# In case of 'simple' trace backend, it will allow the trace event to be
21# compiled, but this would be turned off by default. It can be toggled on via
22# the monitor.
23#
94a420b1
SH
24# The <name> must be a valid as a C function name.
25#
26# Types should be standard C types. Use void * for pointers because the trace
27# system may not have the necessary headers included.
28#
29# The <format-string> should be a sprintf()-compatible format string.
cd245a19
SH
30
31# qemu-malloc.c
32disable qemu_malloc(size_t size, void *ptr) "size %zu ptr %p"
33disable qemu_realloc(void *ptr, size_t size, void *newptr) "ptr %p size %zu newptr %p"
34disable qemu_free(void *ptr) "ptr %p"
35
36# osdep.c
37disable qemu_memalign(size_t alignment, size_t size, void *ptr) "alignment %zu size %zu ptr %p"
dda85211 38disable qemu_vmalloc(size_t size, void *ptr) "size %zu ptr %p"
cd245a19 39disable qemu_vfree(void *ptr) "ptr %p"
6d519a5f 40
64979a4d
SH
41# hw/virtio.c
42disable virtqueue_fill(void *vq, const void *elem, unsigned int len, unsigned int idx) "vq %p elem %p len %u idx %u"
43disable virtqueue_flush(void *vq, unsigned int count) "vq %p count %u"
44disable virtqueue_pop(void *vq, void *elem, unsigned int in_num, unsigned int out_num) "vq %p elem %p in_num %u out_num %u"
45disable virtio_queue_notify(void *vdev, int n, void *vq) "vdev %p n %d vq %p"
46disable virtio_irq(void *vq) "vq %p"
47disable virtio_notify(void *vdev, void *vq) "vdev %p vq %p"
48
6d519a5f
SH
49# block.c
50disable multiwrite_cb(void *mcb, int ret) "mcb %p ret %d"
51disable bdrv_aio_multiwrite(void *mcb, int num_callbacks, int num_reqs) "mcb %p num_callbacks %d num_reqs %d"
52disable bdrv_aio_multiwrite_earlyfail(void *mcb) "mcb %p"
53disable bdrv_aio_multiwrite_latefail(void *mcb, int i) "mcb %p i %d"
bbf0a440
SH
54disable bdrv_aio_readv(void *bs, int64_t sector_num, int nb_sectors, void *opaque) "bs %p sector_num %"PRId64" nb_sectors %d opaque %p"
55disable bdrv_aio_writev(void *bs, int64_t sector_num, int nb_sectors, void *opaque) "bs %p sector_num %"PRId64" nb_sectors %d opaque %p"
6d519a5f
SH
56
57# hw/virtio-blk.c
58disable virtio_blk_req_complete(void *req, int status) "req %p status %d"
59disable virtio_blk_rw_complete(void *req, int ret) "req %p ret %d"
9a85d394 60disable virtio_blk_handle_write(void *req, uint64_t sector, size_t nsectors) "req %p sector %"PRIu64" nsectors %zu"
6d519a5f
SH
61
62# posix-aio-compat.c
9a85d394 63disable paio_submit(void *acb, void *opaque, int64_t sector_num, int nb_sectors, int type) "acb %p opaque %p sector_num %"PRId64" nb_sectors %d type %d"
bd3c9aa5
PS
64
65# ioport.c
66disable cpu_in(unsigned int addr, unsigned int val) "addr %#x value %u"
67disable cpu_out(unsigned int addr, unsigned int val) "addr %#x value %u"
62dd89de
PS
68
69# balloon.c
70# Since requests are raised via monitor, not many tracepoints are needed.
71disable balloon_event(void *opaque, unsigned long addr) "opaque %p addr %lu"
d8023f31
BS
72
73# hw/apic.c
74disable apic_local_deliver(int vector, uint32_t lvt) "vector %d delivery mode %d"
75disable apic_deliver_irq(uint8_t dest, uint8_t dest_mode, uint8_t delivery_mode, uint8_t vector_num, uint8_t polarity, uint8_t trigger_mode) "dest %d dest_mode %d delivery_mode %d vector %d polarity %d trigger_mode %d"
76disable cpu_set_apic_base(uint64_t val) "%016"PRIx64""
77disable cpu_get_apic_base(uint64_t val) "%016"PRIx64""
78disable apic_mem_readl(uint64_t addr, uint32_t val) "%"PRIx64" = %08x"
79disable apic_mem_writel(uint64_t addr, uint32_t val) "%"PRIx64" = %08x"
80# coalescing
81disable apic_reset_irq_delivered(int apic_irq_delivered) "old coalescing %d"
82disable apic_get_irq_delivered(int apic_irq_delivered) "returning coalescing %d"
83disable apic_set_irq(int apic_irq_delivered) "coalescing %d"