|
From: | Paolo Bonzini |
Subject: | Re: [Qemu-devel] [PATCH 2/2] [TEST] Collect TLB and victim TLB hit/miss stats |
Date: | Mon, 10 Jul 2017 14:24:26 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.0 |
On 10/07/2017 12:03, Alex Bennée wrote: >> +extern bool enable_instrumentation; >> + > Is there a better place for this than a static global? I was pondering > tcg_ctx but that's not really visible to the runtime. Making it part of > the TB flags might be useful for only instrumenting certain segments of > the code but I suspect I'm bike-shedding at this point. Why not use tracepoints? This seems to be a natural candidate for systemtap-like tracing scripts. Paolo
[Prev in Thread] | Current Thread | [Next in Thread] |