lkml.org 
[lkml]   [2019]   [Oct]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRE: [PATCH 3/4] perf inject --jit: Remove //anon mmap events
Date
> anyway, I wonder if you could just use thread::priv flag for that, like:
>
> thread = machine__findnew_thread(machine, pid, pid);
> if (!thread)
> bad
>
> (int) thread->priv = 1;
>
> and check on thread->priv when ruling the pid out, should be faster then maintain rb tree
>
> thanks,
> jirka

I agree reusing the existing data structure is a better approach. I have drafted a change reusing the void* priv field. It seems looks like it is currently safe to use during perf inject.

I will test it tomorrow then send the new patch

\
 
 \ /
  Last update: 2019-10-30 04:10    [W:0.052 / U:0.080 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site