joelagnel / bpfd

BPFd (Deprecated, please see README.md) : Berkeley Packet Filter daemon (BPFd). Makes it possible to run BCC tools across systems.
Apache License 2.0
95 stars 23 forks source link

build bpfd failed #51

Open realmz opened 6 years ago

realmz commented 6 years ago

I followed the steps in INSTALL document to build bpfd on ubuntu 16.04 host

[ 80%] Building C object CMakeFiles/bpfd.dir/src/remote_perf_reader.c.o /home/stemia01/temp/bpfd/src/remote_perf_reader.c: In function ‘remote_raw_reader_cb’: /home/stemia01/temp/bpfd/src/remote_perf_reader.c:50:66: error: dereferencing pointer to incomplete type ‘struct perf_reader’ printf("raw_cb: b64 encode failed for reader fd=%d\n", reader->fd); ^ /home/stemia01/temp/bpfd/src/remote_perf_reader.c: In function ‘bpf_remote_open_perf_buffer’: /home/stemia01/temp/bpfd/src/remote_perf_reader.c:68:1: warning: control reaches end of non-void function [-Wreturn-type] }

It seems missing struct perf_reader definition in bcc-deps/perf_reader.h?

joelagnel commented 6 years ago

Could you let me know your usecase for bpfd?

On Mon, Jun 11, 2018, 10:31 PM Steven Miao notifications@github.com wrote:

I followed the steps in INSTALL document to build bpfd on ubuntu 16.04 host

[ 80%] Building C object CMakeFiles/bpfd.dir/src/remote_perf_reader.c.o /home/stemia01/temp/bpfd/src/remote_perf_reader.c: In function ‘remote_raw_reader_cb’: /home/stemia01/temp/bpfd/src/remote_perf_reader.c:50:66: error: dereferencing pointer to incomplete type ‘struct perf_reader’ printf("raw_cb: b64 encode failed for reader fd=%d\n", reader->fd); ^ /home/stemia01/temp/bpfd/src/remote_perf_reader.c: In function ‘bpf_remote_open_perf_buffer’: /home/stemia01/temp/bpfd/src/remote_perf_reader.c:68:1: warning: control reaches end of non-void function [-Wreturn-type] }

It seems missing struct perf_reader definition in bcc-deps/perf_reader.h?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/joelagnel/bpfd/issues/51, or mute the thread https://github.com/notifications/unsubscribe-auth/AACSVIS0_viEerI_IxLRWmR-0UMknxw5ks5t71I1gaJpZM4UjzNv .

realmz commented 6 years ago

Hi Joel,

I'm interested in epbf, and want to try this powerful tool on hikey960 board. Now It can pass the build after tweak the ‘struct perf_reader’.

joelagnel commented 6 years ago

Since hikey runs Android, please check out the androdeb project. It is more suitable than bpfd for running bcc on Android.

On Wed, Jun 13, 2018, 1:56 AM Steven Miao notifications@github.com wrote:

Hi Joel,

I'm interested in epbf, and want to try this powerful tool on hikey960 board. Now It can pass the build after tweak the ‘struct perf_reader’.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/joelagnel/bpfd/issues/51#issuecomment-396865730, or mute the thread https://github.com/notifications/unsubscribe-auth/AACSVLXp45v6i92hfoDwQqLQQkGhWESUks5t8NOsgaJpZM4UjzNv .

realmz commented 6 years ago

Thanks Joel, androdeb chroot run debian is very cool, just several commands to run BCC on android file system. And bpfd can work as well.

joelagnel commented 6 years ago

Yes. And patches to androdeb are welcome ofcourse!

On Fri, Jun 15, 2018 at 12:37 AM, Steven Miao notifications@github.com wrote:

Thanks Joel, androdeb chroot run debian is very cool, just several commands to run BCC on android file system. And bpfd can work as well.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/joelagnel/bpfd/issues/51#issuecomment-397539499, or mute the thread https://github.com/notifications/unsubscribe-auth/AACSVPATdChIje7swLxvSa7z1k3TltAhks5t82Q9gaJpZM4UjzNv .