Re: [PATCH 00/13] Porting perf to Android

From: Irina Tirdea
Date: Sun Sep 02 2012 - 17:22:18 EST


On Thu, Aug 30, 2012 at 8:19 PM, Namhyung Kim <namhyung@xxxxxxxxx> wrote:
> Irina Tirdea <irina.tirdea@xxxxxxxxx> writes:
>
>> Hi,
>>
>> This is a set of patches to port perf to Android.
>> My approach is to include missing functions in Android (like getline,
>> getsid, etc). I am currently working on upstreaming these to Google.
>> With the missing functionality added to bionic, this compiles on latest
>> Android tree (JellyBean). This will make perf compile, but there are still
>> fixes needed at runtime which I am currently working on.
>
> Yeah, I guess the callchain part which uses TLS is the one of them. Do
> you have an idea how to deal with it?

Yes, TLS defined through __thread is not supported by bionic. I was
thinking of using pthread_getspecific/pthread_setspecific API instead.

Thanks,
Irina
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/