* [Qemu-devel] [PULL 0/2] Tracing patches @ 2015-10-09 9:15 Stefan Hajnoczi 2015-10-09 9:15 ` [Qemu-devel] [PULL 1/2] docs: update the usage example of "dtrace" backend in tracing.txt Stefan Hajnoczi ` (2 more replies) 0 siblings, 3 replies; 4+ messages in thread From: Stefan Hajnoczi @ 2015-10-09 9:15 UTC (permalink / raw) To: qemu-devel; +Cc: Peter Maydell, Stefan Hajnoczi The following changes since commit 1d27b91723c252d9a97151dc1959cfd89c5816cb: Merge remote-tracking branch 'remotes/awilliam/tags/vfio-update-20151007.0' into staging (2015-10-08 16:50:34 +0100) are available in the git repository at: git://github.com/stefanha/qemu.git tags/tracing-pull-request for you to fetch changes up to 98cf48f60aa4999f5b2808569a193a401a390e6a: trace: remove malloc tracing (2015-10-09 10:14:05 +0100) ---------------------------------------------------------------- ---------------------------------------------------------------- Lin Ma (1): docs: update the usage example of "dtrace" backend in tracing.txt Paolo Bonzini (1): trace: remove malloc tracing docs/tracing.txt | 10 +++++----- trace-events | 3 --- vl.c | 27 --------------------------- 3 files changed, 5 insertions(+), 35 deletions(-) -- 2.4.3 ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Qemu-devel] [PULL 1/2] docs: update the usage example of "dtrace" backend in tracing.txt 2015-10-09 9:15 [Qemu-devel] [PULL 0/2] Tracing patches Stefan Hajnoczi @ 2015-10-09 9:15 ` Stefan Hajnoczi 2015-10-09 9:15 ` [Qemu-devel] [PULL 2/2] trace: remove malloc tracing Stefan Hajnoczi 2015-10-09 12:19 ` [Qemu-devel] [PULL 0/2] Tracing patches Peter Maydell 2 siblings, 0 replies; 4+ messages in thread From: Stefan Hajnoczi @ 2015-10-09 9:15 UTC (permalink / raw) To: qemu-devel; +Cc: Peter Maydell, Stefan Hajnoczi, Lin Ma From: Lin Ma <lma@suse.com> The usage example of dtrace is quite ancient, We have tracetool.py with different parameters instead of the original tracetool shell script for a long time, So update the old information. Signed-off-by: Lin Ma <lma@suse.com> Message-id: 1441954730-17341-1-git-send-email-lma@suse.com Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> --- docs/tracing.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/tracing.txt b/docs/tracing.txt index 7117c5e..3853a6a 100644 --- a/docs/tracing.txt +++ b/docs/tracing.txt @@ -258,11 +258,11 @@ is generated to make use in scripts more convenient. This step can also be performed manually after a build in order to change the binary name in the .stp probes: - scripts/tracetool --dtrace --stap \ - --binary path/to/qemu-binary \ - --target-type system \ - --target-name x86_64 \ - <trace-events >qemu.stp + scripts/tracetool.py --backends=dtrace --format=stap \ + --binary path/to/qemu-binary \ + --target-type system \ + --target-name x86_64 \ + <trace-events >qemu.stp == Trace event properties == -- 2.4.3 ^ permalink raw reply related [flat|nested] 4+ messages in thread
* [Qemu-devel] [PULL 2/2] trace: remove malloc tracing 2015-10-09 9:15 [Qemu-devel] [PULL 0/2] Tracing patches Stefan Hajnoczi 2015-10-09 9:15 ` [Qemu-devel] [PULL 1/2] docs: update the usage example of "dtrace" backend in tracing.txt Stefan Hajnoczi @ 2015-10-09 9:15 ` Stefan Hajnoczi 2015-10-09 12:19 ` [Qemu-devel] [PULL 0/2] Tracing patches Peter Maydell 2 siblings, 0 replies; 4+ messages in thread From: Stefan Hajnoczi @ 2015-10-09 9:15 UTC (permalink / raw) To: qemu-devel; +Cc: Peter Maydell, Stefan Hajnoczi, Paolo Bonzini From: Paolo Bonzini <pbonzini@redhat.com> The malloc vtable is not supported anymore in glib, because it broke when constructors called g_malloc. Remove tracing of g_malloc, g_realloc and g_free calls. Note that, for systemtap users, glib also provides tracepoints glib.mem_alloc, glib.mem_free, glib.mem_realloc, glib.slice_alloc and glib.slice_free. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Reviewed-by: Alberto Garcia <berto@igalia.com> Message-id: 1442417924-25831-1-git-send-email-pbonzini@redhat.com Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> --- trace-events | 3 --- vl.c | 27 --------------------------- 2 files changed, 30 deletions(-) diff --git a/trace-events b/trace-events index 6790292..b813ae4 100644 --- a/trace-events +++ b/trace-events @@ -603,9 +603,6 @@ scsi_request_sense(int target, int lun, int tag) "target %d lun %d tag %d" vm_state_notify(int running, int reason) "running %d reason %d" load_file(const char *name, const char *path) "name %s location %s" runstate_set(int new_state) "new state %d" -g_malloc(size_t size, void *ptr) "size %zu ptr %p" -g_realloc(void *ptr, size_t size, void *newptr) "ptr %p size %zu newptr %p" -g_free(void *ptr) "ptr %p" system_wakeup_request(int reason) "reason=%d" qemu_system_shutdown_request(void) "" qemu_system_powerdown_request(void) "" diff --git a/vl.c b/vl.c index f2bd8d2..ea9e0e6 100644 --- a/vl.c +++ b/vl.c @@ -2703,26 +2703,6 @@ static const QEMUOption *lookup_opt(int argc, char **argv, return popt; } -static gpointer malloc_and_trace(gsize n_bytes) -{ - void *ptr = malloc(n_bytes); - trace_g_malloc(n_bytes, ptr); - return ptr; -} - -static gpointer realloc_and_trace(gpointer mem, gsize n_bytes) -{ - void *ptr = realloc(mem, n_bytes); - trace_g_realloc(mem, n_bytes, ptr); - return ptr; -} - -static void free_and_trace(gpointer mem) -{ - trace_g_free(mem); - free(mem); -} - static int machine_set_property(void *opaque, const char *name, const char *value, Error **errp) @@ -2950,11 +2930,6 @@ int main(int argc, char **argv, char **envp) bool userconfig = true; const char *log_mask = NULL; const char *log_file = NULL; - GMemVTable mem_trace = { - .malloc = malloc_and_trace, - .realloc = realloc_and_trace, - .free = free_and_trace, - }; const char *trace_events = NULL; const char *trace_file = NULL; ram_addr_t maxram_size; @@ -2970,8 +2945,6 @@ int main(int argc, char **argv, char **envp) error_set_progname(argv[0]); qemu_init_exec_dir(argv[0]); - g_mem_set_vtable(&mem_trace); - module_call_init(MODULE_INIT_QOM); qemu_add_opts(&qemu_drive_opts); -- 2.4.3 ^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] [PULL 0/2] Tracing patches 2015-10-09 9:15 [Qemu-devel] [PULL 0/2] Tracing patches Stefan Hajnoczi 2015-10-09 9:15 ` [Qemu-devel] [PULL 1/2] docs: update the usage example of "dtrace" backend in tracing.txt Stefan Hajnoczi 2015-10-09 9:15 ` [Qemu-devel] [PULL 2/2] trace: remove malloc tracing Stefan Hajnoczi @ 2015-10-09 12:19 ` Peter Maydell 2 siblings, 0 replies; 4+ messages in thread From: Peter Maydell @ 2015-10-09 12:19 UTC (permalink / raw) To: Stefan Hajnoczi; +Cc: QEMU Developers On 9 October 2015 at 10:15, Stefan Hajnoczi <stefanha@redhat.com> wrote: > The following changes since commit 1d27b91723c252d9a97151dc1959cfd89c5816cb: > > Merge remote-tracking branch 'remotes/awilliam/tags/vfio-update-20151007.0' into staging (2015-10-08 16:50:34 +0100) > > are available in the git repository at: > > git://github.com/stefanha/qemu.git tags/tracing-pull-request > > for you to fetch changes up to 98cf48f60aa4999f5b2808569a193a401a390e6a: > > trace: remove malloc tracing (2015-10-09 10:14:05 +0100) > Applied, thanks. -- PMM ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-10-09 12:19 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2015-10-09 9:15 [Qemu-devel] [PULL 0/2] Tracing patches Stefan Hajnoczi 2015-10-09 9:15 ` [Qemu-devel] [PULL 1/2] docs: update the usage example of "dtrace" backend in tracing.txt Stefan Hajnoczi 2015-10-09 9:15 ` [Qemu-devel] [PULL 2/2] trace: remove malloc tracing Stefan Hajnoczi 2015-10-09 12:19 ` [Qemu-devel] [PULL 0/2] Tracing patches Peter Maydell
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).