diff options
author | Alex Bennée <alex.bennee@linaro.org> | 2024-07-05 09:40:10 +0100 |
---|---|---|
committer | Alex Bennée <alex.bennee@linaro.org> | 2024-07-05 12:33:37 +0100 |
commit | d44fe13b2b8631956b4e4ea72c5b39d8c9f194e2 (patch) | |
tree | c27cf427d9fafb5f2f66f2bdd8cddbe8e6e2f6d4 /system/physmem.c | |
parent | 4d17cc5a7811316d5c6ff09a33af0f1dd6a16d10 (diff) |
tracepoints: move physmem trace points
They don't need to be in the global trace-events file and can have a
local trace header. Also add address_space_map tracepoint for tracking
mapping behaviour.
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20240705084047.857176-4-alex.bennee@linaro.org>
Diffstat (limited to 'system/physmem.c')
-rw-r--r-- | system/physmem.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/system/physmem.c b/system/physmem.c index 261196cde0..14aa025d41 100644 --- a/system/physmem.c +++ b/system/physmem.c @@ -53,7 +53,7 @@ #include "sysemu/hostmem.h" #include "sysemu/hw_accel.h" #include "sysemu/xen-mapcache.h" -#include "trace/trace-root.h" +#include "trace.h" #ifdef CONFIG_FALLOCATE_PUNCH_HOLE #include <linux/falloc.h> @@ -3193,6 +3193,8 @@ void *address_space_map(AddressSpace *as, MemoryRegion *mr; FlatView *fv; + trace_address_space_map(as, addr, len, is_write, *(uint32_t *) &attrs); + if (len == 0) { return NULL; } |