bpfd icon indicating copy to clipboard operation
bpfd copied to clipboard

build bpfd failed

Open realmz opened this issue 6 years ago • 5 comments

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?

realmz avatar Jun 12 '18 05:06 realmz

Could you let me know your usecase for bpfd?

On Mon, Jun 11, 2018, 10:31 PM Steven Miao [email protected] 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 .

joelagnel avatar Jun 12 '18 17:06 joelagnel

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’.

realmz avatar Jun 13 '18 08:06 realmz

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 [email protected] 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 .

joelagnel avatar Jun 13 '18 15:06 joelagnel

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.

realmz avatar Jun 15 '18 07:06 realmz

Yes. And patches to androdeb are welcome ofcourse!

On Fri, Jun 15, 2018 at 12:37 AM, Steven Miao [email protected] 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 .

joelagnel avatar Jun 16 '18 00:06 joelagnel