New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make docker-slim arm64 compatible #157
Conversation
@kcq this is as far as I could get, I'm stuck with this error and I have no idea what it could be:
Any ideas? |
We'll figure this out :) This error seems to indicate that the sensor isn't up and running, which is why the IPC fails to initialize. To know what's going on you'll need to look at the logs in the temporary container |
Found the error the way you suggested:
It seems the error happens when this function is called But I can't see anything obvious going wrong with that. |
syscall.PtraceGetRegs uses PTRACE_GETREGS and it looks like it is not defined on arm64. Need to create a replacement for the PtraceGetRegs call using PTRACE_GETREGSET, which should be available. |
I've been investigating a bit more so I've created a monitor_arm64.go file, in such file I've been trying to use this function 'unix.PtraceGetRegsArm64' as there is no such on the syscall package (I had to update the file system_linux_arm64.go to work with that). Unfortunately I'm still getting the same error. As I wasn't 100% whether the right code was being run, I've updated the log string (on monitor.go and monitor_arm64.go) so I could identify if my new code was being used but I'm getting the same original error:
and I don't have this string anywhere in my code (because I've modified both files). Any idea where does this string come from? Thank you for your patience! |
@kcq after some research, I've opted to try using a different function to get the registers for arm64 ->
and I'm calling it with:
And this is the error I get (argument types are correct):
Also I've requested a VM to this guys https://www.linaro.cloud/ for testing this and they seem to be interested on this project (and also this port to work). |
@kcq I think it's working now! |
Fixes slimtoolkit#155 Signed-off-by: Pablo Caderno <kaderno@gmail.com> Added syscall table for ARM64 arch Related to slimtoolkit#155 Signed-off-by: Pablo Caderno <kaderno@gmail.com> Updated machine name for ARM64 architecture Signed-off-by: Pablo Caderno <kaderno@gmail.com> Fixed formatting
@kadern0 awesome! also didn't know about https://www.linaro.cloud ... how easy is it to get a vm? how much does it cost? |
I've requested a small VM and they gave me 4VCPUs 8G RAM and 80G of disc. I think it took me 3 days to have access (but I think it was due to the weekend and then the hour difference). It is free (for developers) to use their cloud. This is what they told me about this project: t seems they are happy to collaborate :) |
Cool! Are you happy with the PR? if so, i'll be happy to merge... |
I think it's good to go, seems to be working. Also, once this is merged, the WISHLIST file could be updated to reflect ARM64 support :) |
Signed-off-by: Pablo Caderno kaderno@gmail.com
Fixes #155