Comments (3)
OK I can see that you use BCC_KERNEL_SOURCE to avoid creating /lib/modules/$(uname -r)/build. Nice
from adeb.
Yes, you are welcomed to send patches for building BCC within the image. That would be quite useful. Thanks. About compiling on the target, that is needed if the target is of a different architecture than the host.
Also about kernel headers, moving forward I want to get this working so we can just use kernel headers from the kernel itself which will eliminate the extra step we do (for BCC_KERNEL_SOURCE)
https://lore.kernel.org/patchwork/patch/1040685/
If you want, I can CC you on those kernel patches as well (just let me know your email address) and your review/contributions there are also welcomed.
from adeb.
About compiling on the target, that is needed if the target is of a different architecture than the host.
Oh yes. But there's a nice trick that I accidentally discovered. When you chroot to a debian image that was created for a different arch it'll recognize that and assume the right arch, ie: arm64 and you won't appear to be cross compiling anymore.
Also I was caught more than once when cross compiling a binary and trying to execute it on x86 expecting a wrong arch error but instead it magically ran; only to discover thatt the system is smart to know it's for a different arch and transparently uses qemu-$(arch). Neat!
Will send a PR for that soon.
If you want, I can CC you on those kernel patches as well (just let me know your email address) and your review/contributions there are also welcomed.
Yes please. I can probably give you my tested-by. [email protected]
from adeb.
Related Issues (20)
- Tracing user space functions outside the chroot
- eBPF C: cannot use strcmp and strncmp HOT 2
- `adeb prepare` or `adeb prepare --full` download failed HOT 1
- can not find /data/androdeb/run
- Got failed for building arm32 arch bcc HOT 3
- What is the "supported" Android kernel with `CONFIG_IKHEADERS`? HOT 1
- Exception: Failed to compile BPF module <text> HOT 1
- Failed to run some commands HOT 2
- why have aosp removed adeb?
- bpftrace uprobe pthread_create on android adeb env HOT 1
- suggestion for supporting bpftrace HOT 2
- Question: Should I be able to execute AOSP binaries via the adeb shell? HOT 3
- Have this supported Android11 with kernel-5.4? HOT 1
- `/apex` isn't mounted HOT 1
- Why are there so many '[unknown]' address info while using uprobe?
- adeb prepare advertises --distro flag but doesn't accept it HOT 7
- Support Debian Bullseye HOT 3
- how to build with su environment? HOT 1
- /data/androdeb/run: can't execute: Permission denied
- i used ./adeb prepare --archive '/home/android/Downloads/androdeb-fs.tgz.zip' and run adeb shell error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from adeb.