[lttng-dev] LTTng on Android

Charles Brière charles.briere at polymtl.ca
Tue Jul 1 13:35:51 EDT 2014


Hi Jan,

Even when disabling ust while configuring, there is still some "shm_open"
(need to be replaced by ashmem) and "pthread_cancel" calls within the tools
code. But I don't understand what you mean by using static linking. How
would that help in the case where you are missing headers?

Cheers,
Charles


On Tue, Jul 1, 2014 at 2:55 AM, Jan Glauber <jan.glauber at gmail.com> wrote:

> Hi Charles,
>
> thanks for your answer. So the main problem seems to be bionic and missing
> headers of the NDK. How about compiling LTTng user-space as static to avoid
> these issues?
>
> Cheers,
> Jan
>
>
> 2014-06-30 19:47 GMT+02:00 Charles Brière <charles.briere at polymtl.ca>:
>
> Hi Jan,
>>
>> I was part of the students working on it a year ago. We had kernel
>> tracing working at the time, though we had some trouble as bionic doesn't
>> have pthread_cancel. I think we had replaced that by a dummy pthread_kill
>> at the time and that is part of the reason our patches were not accepted.
>>
>> I recently resent some patches for libURCU so this should not be a
>> problem to compile for android out of master branch, even with NDK.
>>
>> I have been trying lately to get lttng-tools compiling out of NDK (faster
>> than checking out the whole Android tree) but there is a lot of headers
>> missing, most important are related to shared memory. I was about to
>> continue working on it, this time with the whole Android tree, but ran out
>> of disk space so had to postpone until I receive some more storage. I hope
>> I'll be able to release patches within the next month.
>>
>> Cheers,
>> Charles
>>
>>
>> On Mon, Jun 30, 2014 at 7:03 AM, Jan Glauber <jan.glauber at gmail.com>
>> wrote:
>>
>>> Hi LTTngers,
>>>
>>> I want to ask about the status of LTTng on Android. Is anyone using it
>>> already? I remember there was some student project to get LTTng running
>>> with bionic but I don't know how far they got.
>>>
>>> thanks, Jan
>>>
>>> _______________________________________________
>>> lttng-dev mailing list
>>> lttng-dev at lists.lttng.org
>>> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lttng.org/pipermail/lttng-dev/attachments/20140701/a324d2e5/attachment-0001.html>


More information about the lttng-dev mailing list