LWN: Comments on "BPFd: Running BCC tools remotely across systems and architectures" https://lwn.net/Articles/744522/ This is a special feed containing comments posted to the individual LWN article titled "BPFd: Running BCC tools remotely across systems and architectures". en-us Wed, 03 Sep 2025 10:19:27 +0000 Wed, 03 Sep 2025 10:19:27 +0000 https://www.rssboard.org/rss-specification lwn@lwn.net BPFd: Running BCC tools remotely across systems and architectures https://lwn.net/Articles/745728/ https://lwn.net/Articles/745728/ _joel_ <div class="FormattedComment"> It seems an extra effort and trying to fit something into LLDB or gdb-server, to do something that isn't supposed to. We're not remotely debugging a target process, not sure how well it really fits into a remote debugger model. Instead of that, you could consider contributing to BPFd and making it better ;D<br> </div> Tue, 30 Jan 2018 02:45:21 +0000 BPFd: Running BCC tools remotely across systems and architectures https://lwn.net/Articles/745725/ https://lwn.net/Articles/745725/ _joel_ <div class="FormattedComment"> BPFd is not restricted to Android though. Further things not in libbpf may need to be performed as well on the remote side. Also its much simpler than LLDB ;-)<br> </div> Tue, 30 Jan 2018 02:42:26 +0000 BPFd: Running BCC tools remotely across systems and architectures https://lwn.net/Articles/745608/ https://lwn.net/Articles/745608/ alison <div class="FormattedComment"> I see that there's an lldb-server: <br> <p> <a href="http://lldb.llvm.org/remote.html">http://lldb.llvm.org/remote.html</a><br> <p> That seem to be the back-end of interest fot those of us not rinning Android on the remote target, but given a well-specofied protocol, perhaps it's just as easy to get gdbserver working? The task is to teach the server how to emit the libbpf commands.<br> </div> Mon, 29 Jan 2018 04:38:50 +0000 BPFd: Running BCC tools remotely across systems and architectures https://lwn.net/Articles/745399/ https://lwn.net/Articles/745399/ leoyan2017 <div class="FormattedComment"> Thanks a lot, @chipb, @Joel. Will use github for later question and discussion.<br> </div> Fri, 26 Jan 2018 02:41:17 +0000 BPFd: Running BCC tools remotely across systems and architectures https://lwn.net/Articles/745395/ https://lwn.net/Articles/745395/ _joel_ <div class="FormattedComment"> Thanks Karim!<br> <p> <font class="QuotedText">&gt; I glanced over the code quickly looking for logging and only found this</font><br> <font class="QuotedText">&gt; "/* TODO: logging disabled for now, add mechanism in future */". </font><br> <font class="QuotedText">&gt; Any plans on leaving traces in /data of the BPF operations conducted remotely?</font><br> <p> Yes, this is something that we should do.<br> <p> <font class="QuotedText">&gt; Also, any chance of having local cache or already compiled scripts that could</font><br> <font class="QuotedText">&gt; be run locally on the target? I can see the value of being able to leverage</font><br> <font class="QuotedText">&gt; existing script sets locally while the device has already shipped and is no</font><br> <font class="QuotedText">&gt; longer connected to a development system.</font><br> <p> Yes, that could be done by enabling debugging (BCC_REMOTE_DEBUG) on the BCC side and getting the commands. Then inputting the commands to BPFd on the target. The issue though then is the presentation layer. Without BCC running on the host side, you can't interpret the maps and output data unless the target was running BCC itself. But yes, one could perform the loader functionality of eBPF just by purely using BPFd without any need for BCC (I mentioned this with an example in the article)<br> </div> Fri, 26 Jan 2018 01:22:29 +0000 BPFd: Running BCC tools remotely across systems and architectures https://lwn.net/Articles/745393/ https://lwn.net/Articles/745393/ _joel_ <div class="FormattedComment"> Yes, its quite extensible so you can absolutely add a new 'ssh' remote to do that. Check how I did it for adb: <a href="https://github.com/joelagnel/bcc/tree/bcc-bpfd/src/python/bcc/remote/adb.py">https://github.com/joelagnel/bcc/tree/bcc-bpfd/src/python...</a><br> <p> I created an issue here for this:<br> <a href="https://github.com/joelagnel/bpfd/issues/11">https://github.com/joelagnel/bpfd/issues/11</a><br> <p> Feel free to send in a patch and let me know if you need any help! thanks!<br> <p> </div> Fri, 26 Jan 2018 01:17:47 +0000 BPFd: Running BCC tools remotely across systems and architectures https://lwn.net/Articles/745309/ https://lwn.net/Articles/745309/ chipb <div class="FormattedComment"> Without having looked at the code yet...<br> <p> <font class="QuotedText">&gt; With the process remote, which is probably just useful for local testing, BPFd is forked on the same machine running BCC and communicates with it over stdin and stdout.</font><br> <p> ...it sounds like this could be done by extending the ‘process’ remote to do something like fork “ssh targethost bpfd” instead. It might be configurable to do that already.<br> </div> Thu, 25 Jan 2018 17:17:13 +0000 BPFd: Running BCC tools remotely across systems and architectures https://lwn.net/Articles/745221/ https://lwn.net/Articles/745221/ karim <div class="FormattedComment"> This is very cool. Happy to see efforts being done to get BPF running cross-platform. Architecture "independence" is one of the features that I liked of the ktap proposal (<a href="https://github.com/ktap/ktap">https://github.com/ktap/ktap</a>).<br> <p> I glanced over the code quickly looking for logging and only found this "/* TODO: logging disabled for now, add mechanism in future */". Any plans on leaving traces in /data of the BPF operations conducted remotely? This might have some value. Also, any chance of having local cache or already compiled scripts that could be run locally on the target? I can see the value of being able to leverage existing script sets locally while the device has already shipped and is no longer connected to a development system.<br> </div> Wed, 24 Jan 2018 17:52:51 +0000 BPFd: Running BCC tools remotely across systems and architectures https://lwn.net/Articles/745206/ https://lwn.net/Articles/745206/ leoyan2017 <div class="FormattedComment"> Great work, Joel!<br> <p> Can BPFd support ssh connection? If it can support ethernet/ssh connection, I'd like give a try with debian on Hikey :)<br> </div> Wed, 24 Jan 2018 14:35:38 +0000 BPFd: Running BCC tools remotely across systems and architectures https://lwn.net/Articles/745171/ https://lwn.net/Articles/745171/ _joel_ <div class="FormattedComment"> Thanks a lot!<br> </div> Wed, 24 Jan 2018 01:42:43 +0000 BPFd: Running BCC tools remotely across systems and architectures https://lwn.net/Articles/745114/ https://lwn.net/Articles/745114/ kugel <div class="FormattedComment"> This is really cool, looks extremely useful for my daily job as well.<br> </div> Tue, 23 Jan 2018 19:36:14 +0000