* [Qemu-devel] [PULL 0/1] Tracing patches @ 2019-08-27 20:33 Stefan Hajnoczi 2019-08-27 20:33 ` [Qemu-devel] [PULL 1/1] trace: Clarify DTrace/SystemTap help message Stefan Hajnoczi 2019-09-03 13:03 ` [Qemu-devel] [PULL 0/1] Tracing patches Peter Maydell 0 siblings, 2 replies; 3+ messages in thread From: Stefan Hajnoczi @ 2019-08-27 20:33 UTC (permalink / raw) To: qemu-devel; +Cc: Peter Maydell, Stefan Hajnoczi The following changes since commit dac03af5d5482ec7ee9c23db467bb7230b33c0d9: Merge remote-tracking branch 'remotes/rth/tags/pull-axp-20190825' into staging (2019-08-27 10:00:51 +0100) are available in the Git repository at: https://github.com/stefanha/qemu.git tags/tracing-pull-request for you to fetch changes up to 9f591a5d95e1969969632ab44cf35e505c8ddc3b: trace: Clarify DTrace/SystemTap help message (2019-08-27 15:12:36 +0100) ---------------------------------------------------------------- Pull request ---------------------------------------------------------------- Philippe Mathieu-Daudé (1): trace: Clarify DTrace/SystemTap help message trace/control.c | 6 ++++++ 1 file changed, 6 insertions(+) -- 2.21.0 ^ permalink raw reply [flat|nested] 3+ messages in thread
* [Qemu-devel] [PULL 1/1] trace: Clarify DTrace/SystemTap help message 2019-08-27 20:33 [Qemu-devel] [PULL 0/1] Tracing patches Stefan Hajnoczi @ 2019-08-27 20:33 ` Stefan Hajnoczi 2019-09-03 13:03 ` [Qemu-devel] [PULL 0/1] Tracing patches Peter Maydell 1 sibling, 0 replies; 3+ messages in thread From: Stefan Hajnoczi @ 2019-08-27 20:33 UTC (permalink / raw) To: qemu-devel; +Cc: Peter Maydell, Philippe Mathieu-Daudé, Stefan Hajnoczi From: Philippe Mathieu-Daudé <philmd@redhat.com> Most tracing backends are implemented within QEMU, except the DTrace/SystemTap backends. One side effect is when running 'qemu -trace help', an incomplete list of trace events is displayed when using the DTrace/SystemTap backends. This is partly due to trace events registered as modules with trace_init(), and since the events are not used within QEMU, the linker optimize and remove the unused modules (which is OK in this particular case). Currently only the events compiled in trace-root.o and in the last trace.o member of libqemuutil.a are linked, resulting in an incomplete list of events. To avoid confusion, improve the help message, recommending to use the proper systemtap script to display the events list. Before: $ lm32-softmmu/qemu-system-lm32 -trace help 2>&1 | wc -l 70 After: $ lm32-softmmu/qemu-system-lm32 -trace help Run 'qemu-trace-stap list qemu-system-lm32' to print a list of names of trace points with the DTrace/SystemTap backends. $ qemu-trace-stap list qemu-system-lm32 | wc -l 1136 Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com> Message-id: 20190823142203.5210-1-philmd@redhat.com Message-Id: <20190823142203.5210-1-philmd@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> --- trace/control.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/trace/control.c b/trace/control.c index 43fb7868db..d9cafc161b 100644 --- a/trace/control.c +++ b/trace/control.c @@ -165,6 +165,12 @@ void trace_list_events(void) while ((ev = trace_event_iter_next(&iter)) != NULL) { fprintf(stderr, "%s\n", trace_event_get_name(ev)); } +#ifdef CONFIG_TRACE_DTRACE + fprintf(stderr, "This list of names of trace points may be incomplete " + "when using the DTrace/SystemTap backends.\n" + "Run 'qemu-trace-stap list %s' to print the full list.\n", + error_get_progname()); +#endif } static void do_trace_enable_events(const char *line_buf) -- 2.21.0 ^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] [PULL 0/1] Tracing patches 2019-08-27 20:33 [Qemu-devel] [PULL 0/1] Tracing patches Stefan Hajnoczi 2019-08-27 20:33 ` [Qemu-devel] [PULL 1/1] trace: Clarify DTrace/SystemTap help message Stefan Hajnoczi @ 2019-09-03 13:03 ` Peter Maydell 1 sibling, 0 replies; 3+ messages in thread From: Peter Maydell @ 2019-09-03 13:03 UTC (permalink / raw) To: Stefan Hajnoczi; +Cc: QEMU Developers On Tue, 27 Aug 2019 at 21:33, Stefan Hajnoczi <stefanha@redhat.com> wrote: > > The following changes since commit dac03af5d5482ec7ee9c23db467bb7230b33c0d9: > > Merge remote-tracking branch 'remotes/rth/tags/pull-axp-20190825' into staging (2019-08-27 10:00:51 +0100) > > are available in the Git repository at: > > https://github.com/stefanha/qemu.git tags/tracing-pull-request > > for you to fetch changes up to 9f591a5d95e1969969632ab44cf35e505c8ddc3b: > > trace: Clarify DTrace/SystemTap help message (2019-08-27 15:12:36 +0100) > > ---------------------------------------------------------------- > Pull request > > ---------------------------------------------------------------- > Applied, thanks. Please update the changelog at https://wiki.qemu.org/ChangeLog/4.2 for any user-visible changes. -- PMM ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-09-03 13:05 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2019-08-27 20:33 [Qemu-devel] [PULL 0/1] Tracing patches Stefan Hajnoczi 2019-08-27 20:33 ` [Qemu-devel] [PULL 1/1] trace: Clarify DTrace/SystemTap help message Stefan Hajnoczi 2019-09-03 13:03 ` [Qemu-devel] [PULL 0/1] 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).