From: "Alex Bennée" <alex.bennee@linaro.org>
To: qemu-devel@nongnu.org
Cc: Paolo Bonzini <pbonzini@redhat.com>,
vandersonmr <vandersonmr2@gmail.com>,
Richard Henderson <rth@twiddle.net>
Subject: Re: [Qemu-devel] [PATCH v1 2/2] tb-stats: adding TBStatistics info into perf dump
Date: Thu, 15 Aug 2019 17:19:08 +0100 [thread overview]
Message-ID: <87k1bemmf7.fsf@linaro.org> (raw)
In-Reply-To: <20190815023725.2659-3-vandersonmr2@gmail.com>
vandersonmr <vandersonmr2@gmail.com> writes:
> Adding TBStatistics information to linux perf TB's symbol names.
>
> This commit depends on the following PATCH:
> [PATCH v5 00/10] Measure Tiny Code Generation Quality
>
> Signed-off-by: Vanderson M. do Rosario <vandersonmr2@gmail.com>
> ---
> accel/tcg/perf/jitdump.c | 15 ++++++++++++++-
> 1 file changed, 14 insertions(+), 1 deletion(-)
>
> diff --git a/accel/tcg/perf/jitdump.c b/accel/tcg/perf/jitdump.c
> index 6f4c0911c2..b2334fd601 100644
> --- a/accel/tcg/perf/jitdump.c
> +++ b/accel/tcg/perf/jitdump.c
> @@ -8,6 +8,7 @@
> #include <sys/syscall.h>
> #include <elf.h>
>
> +#include "exec/tb-stats.h"
> #include "jitdump.h"
> #include "qemu-common.h"
>
> @@ -135,7 +136,19 @@ void start_jitdump_file(void)
> void append_load_in_jitdump_file(TranslationBlock *tb)
> {
> GString *func_name = g_string_new(NULL);
> - g_string_printf(func_name, "TB virt:0x"TARGET_FMT_lx"%c", tb->pc, '\0');
> + if (tb->tb_stats) {
> + TBStatistics *tbs = tb->tb_stats;
> + g = stat_per_translation(tbs, code.num_guest_inst);
> + ops = stat_per_translation(tbs, code.num_tcg_ops);
> + ops_opt = stat_per_translation(tbs, code.num_tcg_ops_opt);
> + spills = stat_per_translation(tbs, code.spills);
Where are the declarations for these functions?
--
Alex Bennée
next prev parent reply other threads:[~2019-08-15 16:20 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-08-15 2:37 [Qemu-devel] [PATCH v1 0/2] Integrating qemu to Linux Perf vandersonmr
2019-08-15 2:37 ` [Qemu-devel] [PATCH v1 1/2] accel/tcg: adding integration with linux perf vandersonmr
2019-08-15 14:40 ` Stefan Hajnoczi
2019-08-15 16:17 ` Alex Bennée
2019-08-22 14:41 ` Stefan Hajnoczi
2019-08-21 19:01 ` Vanderson Martins do Rosario
2019-08-22 14:44 ` Stefan Hajnoczi
2019-08-15 2:37 ` [Qemu-devel] [PATCH v1 2/2] tb-stats: adding TBStatistics info into perf dump vandersonmr
2019-08-15 16:19 ` Alex Bennée [this message]
2019-08-15 9:14 ` [Qemu-devel] [PATCH v1 0/2] Integrating qemu to Linux Perf no-reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87k1bemmf7.fsf@linaro.org \
--to=alex.bennee@linaro.org \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=rth@twiddle.net \
--cc=vandersonmr2@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.