xref: /openbmc/qemu/system/trace-events (revision 7d87775f)
1# See docs/devel/tracing.rst for syntax documentation.
2
3# balloon.c
4# Since requests are raised via monitor, not many tracepoints are needed.
5balloon_event(void *opaque, unsigned long addr) "opaque %p addr %lu"
6
7# dma-helpers.c
8dma_blk_io(void *dbs, void *bs, int64_t offset, bool to_dev) "dbs=%p bs=%p offset=%" PRId64 " to_dev=%d"
9dma_aio_cancel(void *dbs) "dbs=%p"
10dma_complete(void *dbs, int ret, void *cb) "dbs=%p ret=%d cb=%p"
11dma_blk_cb(void *dbs, int ret) "dbs=%p ret=%d"
12dma_map_wait(void *dbs) "dbs=%p"
13
14# ioport.c
15cpu_in(unsigned int addr, char size, unsigned int val) "addr 0x%x(%c) value %u"
16cpu_out(unsigned int addr, char size, unsigned int val) "addr 0x%x(%c) value %u"
17
18# memory.c
19memory_region_ops_read(int cpu_index, void *mr, uint64_t addr, uint64_t value, unsigned size, const char *name) "cpu %d mr %p addr 0x%"PRIx64" value 0x%"PRIx64" size %u name '%s'"
20memory_region_ops_write(int cpu_index, void *mr, uint64_t addr, uint64_t value, unsigned size, const char *name) "cpu %d mr %p addr 0x%"PRIx64" value 0x%"PRIx64" size %u name '%s'"
21memory_region_subpage_read(int cpu_index, void *mr, uint64_t offset, uint64_t value, unsigned size) "cpu %d mr %p offset 0x%"PRIx64" value 0x%"PRIx64" size %u"
22memory_region_subpage_write(int cpu_index, void *mr, uint64_t offset, uint64_t value, unsigned size) "cpu %d mr %p offset 0x%"PRIx64" value 0x%"PRIx64" size %u"
23memory_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"
24memory_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"
25memory_region_sync_dirty(const char *mr, const char *listener, int global) "mr '%s' listener '%s' synced (global=%d)"
26flatview_new(void *view, void *root) "%p (root %p)"
27flatview_destroy(void *view, void *root) "%p (root %p)"
28flatview_destroy_rcu(void *view, void *root) "%p (root %p)"
29global_dirty_changed(unsigned int bitmask) "bitmask 0x%"PRIx32
30
31# physmem.c
32address_space_map(void *as, uint64_t addr, uint64_t len, bool is_write, uint32_t attrs) "as:%p addr 0x%"PRIx64":%"PRIx64" write:%d attrs:0x%x"
33find_ram_offset(uint64_t size, uint64_t offset) "size: 0x%" PRIx64 " @ 0x%" PRIx64
34find_ram_offset_loop(uint64_t size, uint64_t candidate, uint64_t offset, uint64_t next, uint64_t mingap) "trying size: 0x%" PRIx64 " @ 0x%" PRIx64 ", offset: 0x%" PRIx64" next: 0x%" PRIx64 " mingap: 0x%" PRIx64
35ram_block_discard_range(const char *rbname, void *hva, size_t length, bool need_madvise, bool need_fallocate, int ret) "%s@%p + 0x%zx: madvise: %d fallocate: %d ret: %d"
36
37# cpus.c
38vm_stop_flush_all(int ret) "ret %d"
39
40# vl.c
41vm_state_notify(int running, int reason, const char *reason_str) "running %d reason %d (%s)"
42load_file(const char *name, const char *path) "name %s location %s"
43runstate_set(int current_state, const char *current_state_str, int new_state, const char *new_state_str) "current_run_state %d (%s) new_state %d (%s)"
44system_wakeup_request(int reason) "reason=%d"
45qemu_system_shutdown_request(int reason) "reason=%d"
46qemu_system_powerdown_request(void) ""
47
48#dirtylimit.c
49dirtylimit_state_initialize(int max_cpus) "dirtylimit state initialize: max cpus %d"
50dirtylimit_state_finalize(void)
51dirtylimit_throttle_pct(int cpu_index, uint64_t pct, int64_t time_us) "CPU[%d] throttle percent: %" PRIu64 ", throttle adjust time %"PRIi64 " us"
52dirtylimit_set_vcpu(int cpu_index, uint64_t quota) "CPU[%d] set dirty page rate limit %"PRIu64
53dirtylimit_vcpu_execute(int cpu_index, int64_t sleep_time_us) "CPU[%d] sleep %"PRIi64 " us"
54