|
|
Subscribe / Log in / New account

Some advanced BCC topics

Some advanced BCC topics

Posted Feb 22, 2018 22:35 UTC (Thu) by Cyberax (✭ supporter ✭, #52523)
Parent article: Some advanced BCC topics

Are there any smaller (and more feature-limited) BPS languages that don't require full LLVM+Clang to compile?


to post comments

Some advanced BCC topics

Posted Feb 23, 2018 2:47 UTC (Fri) by unixbhaskar (guest, #44758) [Link]

Yup, that's a good point.

Some advanced BCC topics

Posted Feb 23, 2018 15:57 UTC (Fri) by danielthompson (subscriber, #97243) [Link] (2 responses)

There's ply: https://github.com/iovisor/ply . Is that the sort of thing you have in mind?

Some advanced BCC topics

Posted Feb 23, 2018 22:17 UTC (Fri) by Cyberax (✭ supporter ✭, #52523) [Link]

Yes, something like this. Would be nice to have it in Python completely to avoid having to compile it on Android.

Some advanced BCC topics

Posted Feb 24, 2018 20:04 UTC (Sat) by justincormack (subscriber, #70439) [Link]

Some advanced BCC topics

Posted Feb 23, 2018 22:12 UTC (Fri) by blubber (guest, #84003) [Link] (1 responses)

In terms of language (although that's probably not your question), there's bpftrace which is dtrace style syntax, but it also uses LLVM in the background though
(https://github.com/ajor/bpftrace).

Another project that allows for making it easier to run bcc on remote systems is bpfd which seems to be used by Android folks. It allows to run bcc on a remotely connected system without the need to have the entire LLVM infrastructure there. The announcement of the project was here https://lkml.org/lkml/2017/12/29/137 (https://github.com/joelagnel/bpfd). Perhaps this might rather be what you could be looking for wrt remote system.

Some advanced BCC topics

Posted Feb 23, 2018 22:18 UTC (Fri) by Cyberax (✭ supporter ✭, #52523) [Link]

bpfd is a horrible hack.

It just seems a waste to require the full LLVM machinery when the target is so simple and most scripts are trivial. A good old one-pass translator will probably be more than sufficient for most of users.


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds