Skip to content
This repository has been archived by the owner on Feb 4, 2023. It is now read-only.

build bpfd failed #51

Open
realmz opened this issue Jun 12, 2018 · 5 comments
Open

build bpfd failed #51

realmz opened this issue Jun 12, 2018 · 5 comments

Comments

@realmz
Copy link

realmz commented Jun 12, 2018

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
Copy link
Owner

joelagnel commented Jun 12, 2018 via email

@realmz
Copy link
Author

realmz commented Jun 13, 2018

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
Copy link
Owner

joelagnel commented Jun 13, 2018 via email

@realmz
Copy link
Author

realmz commented Jun 15, 2018

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
Copy link
Owner

joelagnel commented Jun 16, 2018 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants