The implementation in helgrind looks like a good way to go about this. This
is what I'm looking for.
Thanks!
Mike
On Thu, Jun 22, 2017 at 3:49 PM Philippe Waroquiers <
philippe.waroqui...@skynet.be> wrote:
> Helgrind maintains a unique thread nr by intercepting pthread_create,
> as e.g. helgrind
Helgrind maintains a unique thread nr by intercepting pthread_create,
as e.g. helgrind needs to speak about terminated threads
and so, cannot use the tid, as the tid is re-used : a new thread uses
the lowest free tid value.
See hg_main.c evh__pre_thread_ll_create, hooked up with
VG_(track_pre_thr
Hi John, I appreciate you taking the time to comment. I agree with your
assessments and wanted to comment on a few points.
> C'mon. The tools re-use thread IDs because that is the easiest
> and most efficient way to track the running threads.
> If no re-use, then the next easiest way is to increm
On 06/21/2017 Mike Lui wrote:
It appears the thread ids are reused. That is, if thread 2 exits, and another
starts, then thread 2 is reused.
Is there anyway to detect this during instrumentation, or is this a limitation
of the Valgrind tools?
When trying to separate the work of each thread, ha
It appears the thread ids are reused. That is, if thread 2 exits, and
another starts, then thread 2 is reused.
Is there anyway to detect this during instrumentation, or is this a
limitation of the Valgrind tools?
When trying to separate the work of each thread, having
VG_(get_running_tid)() report
On Wed, 2017-06-21 at 19:17 +, Mike Lui wrote:
> I posted this on the valgrind-dev mailing list a while back but didn't
> receive a response. Hopefully some users have some input.
>
>
> I'm working on a project that leverages Callgrind to generate VEX IR
> traces. I'm using Valgrind 3.12.0.
>
I posted this on the valgrind-dev mailing list a while back but didn't
receive a response. Hopefully some users have some input.
I'm working on a project that leverages Callgrind to generate VEX IR
traces. I'm using Valgrind 3.12.0.
I also use Callgrind's infrastructure to detect when Valgrind swi