* [PATCH-for-8.0 v3 0/2] physmem: Remove trace events from trace-root.h
@ 2022-12-09 11:06 Philippe Mathieu-Daudé
2022-12-09 11:06 ` [PATCH-for-8.0 v3 1/2] physmem: Remove unused "exec/translate-all.h" Philippe Mathieu-Daudé
2022-12-09 11:06 ` [PATCH-for-8.0 v3 2/2] physmem: Remove trace events from trace-root.h Philippe Mathieu-Daudé
0 siblings, 2 replies; 5+ messages in thread
From: Philippe Mathieu-Daudé @ 2022-12-09 11:06 UTC (permalink / raw)
To: qemu-devel
Cc: Stefan Hajnoczi, Peter Xu, David Hildenbrand, Paolo Bonzini,
Philippe Mathieu-Daudé
Trivial housekeeping patches.
Philippe Mathieu-Daudé (2):
physmem: Remove unused "exec/translate-all.h"
physmem: Remove trace events from trace-root.h
softmmu/physmem.c | 3 +--
softmmu/trace-events | 5 +++++
trace-events | 5 -----
3 files changed, 6 insertions(+), 7 deletions(-)
--
2.38.1
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH-for-8.0 v3 1/2] physmem: Remove unused "exec/translate-all.h"
2022-12-09 11:06 [PATCH-for-8.0 v3 0/2] physmem: Remove trace events from trace-root.h Philippe Mathieu-Daudé
@ 2022-12-09 11:06 ` Philippe Mathieu-Daudé
2022-12-09 11:43 ` Peter Maydell
2022-12-09 11:06 ` [PATCH-for-8.0 v3 2/2] physmem: Remove trace events from trace-root.h Philippe Mathieu-Daudé
1 sibling, 1 reply; 5+ messages in thread
From: Philippe Mathieu-Daudé @ 2022-12-09 11:06 UTC (permalink / raw)
To: qemu-devel
Cc: Stefan Hajnoczi, Peter Xu, David Hildenbrand, Paolo Bonzini,
Philippe Mathieu-Daudé
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
softmmu/physmem.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/softmmu/physmem.c b/softmmu/physmem.c
index 1b606a3002..d562c0bb93 100644
--- a/softmmu/physmem.c
+++ b/softmmu/physmem.c
@@ -58,7 +58,6 @@
#include "qemu/rcu_queue.h"
#include "qemu/main-loop.h"
-#include "exec/translate-all.h"
#include "sysemu/replay.h"
#include "exec/memory-internal.h"
--
2.38.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH-for-8.0 v3 2/2] physmem: Remove trace events from trace-root.h
2022-12-09 11:06 [PATCH-for-8.0 v3 0/2] physmem: Remove trace events from trace-root.h Philippe Mathieu-Daudé
2022-12-09 11:06 ` [PATCH-for-8.0 v3 1/2] physmem: Remove unused "exec/translate-all.h" Philippe Mathieu-Daudé
@ 2022-12-09 11:06 ` Philippe Mathieu-Daudé
1 sibling, 0 replies; 5+ messages in thread
From: Philippe Mathieu-Daudé @ 2022-12-09 11:06 UTC (permalink / raw)
To: qemu-devel
Cc: Stefan Hajnoczi, Peter Xu, David Hildenbrand, Paolo Bonzini,
Philippe Mathieu-Daudé
Missed in d9f24bf572 ("exec: split out non-softmmu-specific parts").
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
softmmu/physmem.c | 2 +-
softmmu/trace-events | 5 +++++
trace-events | 5 -----
3 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/softmmu/physmem.c b/softmmu/physmem.c
index d562c0bb93..94ee981917 100644
--- a/softmmu/physmem.c
+++ b/softmmu/physmem.c
@@ -50,7 +50,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>
diff --git a/softmmu/trace-events b/softmmu/trace-events
index 22606dc27b..c7d709151d 100644
--- a/softmmu/trace-events
+++ b/softmmu/trace-events
@@ -21,6 +21,11 @@ flatview_destroy(void *view, void *root) "%p (root %p)"
flatview_destroy_rcu(void *view, void *root) "%p (root %p)"
global_dirty_changed(unsigned int bitmask) "bitmask 0x%"PRIx32
+# physmem.c
+find_ram_offset(uint64_t size, uint64_t offset) "size: 0x%" PRIx64 " @ 0x%" PRIx64
+find_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
+ram_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"
+
# softmmu.c
vm_stop_flush_all(int ret) "ret %d"
diff --git a/trace-events b/trace-events
index b6b84b175e..6e67dfe91b 100644
--- a/trace-events
+++ b/trace-events
@@ -37,11 +37,6 @@ dma_complete(void *dbs, int ret, void *cb) "dbs=%p ret=%d cb=%p"
dma_blk_cb(void *dbs, int ret) "dbs=%p ret=%d"
dma_map_wait(void *dbs) "dbs=%p"
-# exec.c
-find_ram_offset(uint64_t size, uint64_t offset) "size: 0x%" PRIx64 " @ 0x%" PRIx64
-find_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
-ram_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"
-
# job.c
job_state_transition(void *job, int ret, const char *legal, const char *s0, const char *s1) "job %p (ret: %d) attempting %s transition (%s-->%s)"
job_apply_verb(void *job, const char *state, const char *verb, const char *legal) "job %p in state %s; applying verb %s (%s)"
--
2.38.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH-for-8.0 v3 1/2] physmem: Remove unused "exec/translate-all.h"
2022-12-09 11:06 ` [PATCH-for-8.0 v3 1/2] physmem: Remove unused "exec/translate-all.h" Philippe Mathieu-Daudé
@ 2022-12-09 11:43 ` Peter Maydell
2022-12-09 14:10 ` Philippe Mathieu-Daudé
0 siblings, 1 reply; 5+ messages in thread
From: Peter Maydell @ 2022-12-09 11:43 UTC (permalink / raw)
To: Philippe Mathieu-Daudé
Cc: qemu-devel, Stefan Hajnoczi, Peter Xu, David Hildenbrand,
Paolo Bonzini
On Fri, 9 Dec 2022 at 11:07, Philippe Mathieu-Daudé <philmd@linaro.org> wrote:
>
> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
> ---
> softmmu/physmem.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/softmmu/physmem.c b/softmmu/physmem.c
> index 1b606a3002..d562c0bb93 100644
> --- a/softmmu/physmem.c
> +++ b/softmmu/physmem.c
> @@ -58,7 +58,6 @@
>
> #include "qemu/rcu_queue.h"
> #include "qemu/main-loop.h"
> -#include "exec/translate-all.h"
> #include "sysemu/replay.h"
>
> #include "exec/memory-internal.h"
> --
physmem.c has a call to tb_check_watchpoint(), which is declared
in translate-all.h -- where does it get the prototype from if
the header isn't included any more ?
thanks
-- PMM
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH-for-8.0 v3 1/2] physmem: Remove unused "exec/translate-all.h"
2022-12-09 11:43 ` Peter Maydell
@ 2022-12-09 14:10 ` Philippe Mathieu-Daudé
0 siblings, 0 replies; 5+ messages in thread
From: Philippe Mathieu-Daudé @ 2022-12-09 14:10 UTC (permalink / raw)
To: Peter Maydell
Cc: qemu-devel, Stefan Hajnoczi, Peter Xu, David Hildenbrand,
Paolo Bonzini
On 9/12/22 12:43, Peter Maydell wrote:
> On Fri, 9 Dec 2022 at 11:07, Philippe Mathieu-Daudé <philmd@linaro.org> wrote:
>>
>> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
>> ---
>> softmmu/physmem.c | 1 -
>> 1 file changed, 1 deletion(-)
>>
>> diff --git a/softmmu/physmem.c b/softmmu/physmem.c
>> index 1b606a3002..d562c0bb93 100644
>> --- a/softmmu/physmem.c
>> +++ b/softmmu/physmem.c
>> @@ -58,7 +58,6 @@
>>
>> #include "qemu/rcu_queue.h"
>> #include "qemu/main-loop.h"
>> -#include "exec/translate-all.h"
>> #include "sysemu/replay.h"
>>
>> #include "exec/memory-internal.h"
>> --
>
> physmem.c has a call to tb_check_watchpoint(), which is declared
> in translate-all.h -- where does it get the prototype from if
> the header isn't included any more ?
Oops indeed, sorry.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2022-12-09 14:11 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-09 11:06 [PATCH-for-8.0 v3 0/2] physmem: Remove trace events from trace-root.h Philippe Mathieu-Daudé
2022-12-09 11:06 ` [PATCH-for-8.0 v3 1/2] physmem: Remove unused "exec/translate-all.h" Philippe Mathieu-Daudé
2022-12-09 11:43 ` Peter Maydell
2022-12-09 14:10 ` Philippe Mathieu-Daudé
2022-12-09 11:06 ` [PATCH-for-8.0 v3 2/2] physmem: Remove trace events from trace-root.h Philippe Mathieu-Daudé
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).