Re: [hwloc-users] hwloc 1.11 in Android

2016-10-25 Thread Marc Marí
I hacked together a lstopo APK, and the patch I sent earlier makes a difference, although lstopo still doesn't fully work on Android. The statically linked binary you sent earlier, run directly on the shell (as root in an emulator): Machine (1499MB total) + NUMANode L#0 (P#0 1499MB) +

Re: [hwloc-users] hwloc 1.11 in Android

2016-10-25 Thread Samuel Thibault
Hello, Brice Goglin, on Tue 25 Oct 2016 10:56:30 +0200, wrote: > It's not running as an > APK, but it's running inside a shell that was launched by an APK > (sshdroid, a ssh server shell). Not sure why this would be different? IIRC such shells have to circumvent some OS protections to run. So

Re: [hwloc-users] hwloc 1.11 in Android

2016-10-25 Thread Marc Marí
Thanks. I have not tested master because the library I'm using is not prepared for hwloc 2. I'll try to prepare a "quick and dirty" lstopo APK to check my permission management assumptions, and also to check master. Marc >On Tue, 25 Oct 2016 10:56:30 +0200 >Brice Goglin

Re: [hwloc-users] hwloc 1.11 in Android

2016-10-25 Thread Brice Goglin
Thanks. I am applying the patch to git master and v1.11 branches. I tested my static build of lstopo-no-graphics on Android 6 on aarch64 [1], it still works without disabling openat. It's not running as an APK, but it's running inside a shell that was launched by an APK (sshdroid, a ssh server

Re: [hwloc-users] hwloc 1.11 in Android

2016-10-24 Thread Brice Goglin
Hello I am interested in seeing the patch, at least. If it isn't too intrusive, we could easily apply it. I am surprised to hear that openat fails on Android. I don't remember having to disable it last time I tried (on Android 4.0 or 4.1 iirc). But I was building natively (basically just

[hwloc-users] hwloc 1.11 in Android

2016-10-24 Thread Marc Marí
I was porting a library to Android, and this library uses hwloc v1.11 in the background. I managed to make it work. Are you interested in adding Android support for hwloc version 1.11? Should I send a patch? The only change necessary is to disable "openat" (HAVE_OPENAT) when compiling for