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) +
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
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.
>On Tue, 25 Oct 2016 10:56:30 +0200
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
, 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
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
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