[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 2/3] trace: add tracetool simpletrace_stap forma
From: |
Lluís Vilanova |
Subject: |
Re: [Qemu-devel] [PATCH 2/3] trace: add tracetool simpletrace_stap format |
Date: |
Tue, 27 May 2014 15:10:30 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
Stefan Hajnoczi writes:
> This new tracetool "format" generates a SystemTap .stp file that outputs
> simpletrace binary trace data.
> In contrast to simpletrace or ftrace, SystemTap does not define its own
> trace format. All output from SystemTap is generated by .stp files.
> This patch lets us generate a .stp file that outputs in the simpletrace
> binary format.
> This makes it possible to reuse simpletrace.py to analyze traces
> recorded using SystemTap. The simpletrace binary format is especially
> useful for long-running traces like flight-recorder mode where string
> formatting can be expensive.
> Signed-off-by: Stefan Hajnoczi <address@hidden>
> ---
> scripts/tracetool/format/simpletrace_stap.py | 73
> ++++++++++++++++++++++++++++
> 1 file changed, 73 insertions(+)
> create mode 100644 scripts/tracetool/format/simpletrace_stap.py
> diff --git a/scripts/tracetool/format/simpletrace_stap.py
> b/scripts/tracetool/format/simpletrace_stap.py
> new file mode 100644
> index 0000000..4e7f7e7
> --- /dev/null
> +++ b/scripts/tracetool/format/simpletrace_stap.py
[...]
Should the build automatically generate a file using this format? (just for
convenience)
Also, it might be worth mentioning this file in the "SystemTap" section of
"docs/tracing.txt".
Thanks,
Lluis
--
"And it's much the same thing with knowledge, for whenever you learn
something new, the whole world becomes that much richer."
-- The Princess of Pure Reason, as told by Norton Juster in The Phantom
Tollbooth