* Is it possible to install libbpf on kernel 3.19.8?
@ 2021-10-13 4:49 Pony Sew
2021-10-13 10:48 ` Toke Høiland-Jørgensen
0 siblings, 1 reply; 2+ messages in thread
From: Pony Sew @ 2021-10-13 4:49 UTC (permalink / raw)
To: bpf
Hello.
I compiled kernel 3.19.8 on Debian 8 (amd64) then installed it to
enable more BPF options. With libelfg0-dev (0.8.13-5 amd64) and
pkg-config (0.28-1 amd64). When I compiled libbpf from github, I got
some errors. Here are some system informations:
root@debian# uname -r
3.19.8
root@debian# make --version
GNU Make 4.0
Built for x86_64-pc-linux-gnu
Copyright (C) 1988-2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <f*&$ gmail on this part>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
root@debian# gcc --version
gcc (Debian 4.9.2-10+deb8u2) 4.9.2
Copyright (C) 2014 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
root@debian# grep BPF /boot/config-3.19.8
CONFIG_BPF=y
CONFIG_BPF_SYSCALL=y
CONFIG_NETFILTER_XT_MATCH_BPF=m
CONFIG_NET_CLS_BPF=m
CONFIG_BPF_JIT=y
CONFIG_HAVE_BPF_JIT=y
# CONFIG_TEST_BPF is not set
root@debian# make
MKDIR staticobjs
CC bpf.o
CC btf.o
CC libbpf.o
libbpf.c: In function ‘bpf_program__attach_perf_event_opts’:
libbpf.c:9190:18: error: ‘PERF_EVENT_IOC_SET_BPF’ undeclared (first
use in this function)
if (ioctl(pfd, PERF_EVENT_IOC_SET_BPF, prog_fd) < 0) {
^
libbpf.c:9190:18: note: each undeclared identifier is reported only
once for each function it appears in
libbpf.c: In function ‘perf_buffer__new’:
libbpf.c:10303:16: error: ‘PERF_COUNT_SW_BPF_OUTPUT’ undeclared (first
use in this function)
attr.config = PERF_COUNT_SW_BPF_OUTPUT;
^
Makefile:113: recipe for target 'staticobjs/libbpf.o' failed
make: *** [staticobjs/libbpf.o] Error 1
My future goal is to run a simple BPF CO-RE program on linux kernel
3.19.8. So is it possible to install libbpf on kernel 3.19.8?
Furthermore, is it possible to run BPF CO-RE programs on kernel
3.19.8?
Sincerely,
Poony.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Is it possible to install libbpf on kernel 3.19.8?
2021-10-13 4:49 Is it possible to install libbpf on kernel 3.19.8? Pony Sew
@ 2021-10-13 10:48 ` Toke Høiland-Jørgensen
0 siblings, 0 replies; 2+ messages in thread
From: Toke Høiland-Jørgensen @ 2021-10-13 10:48 UTC (permalink / raw)
To: Pony Sew, bpf
Pony Sew <poony20115@gmail.com> writes:
> Hello.
> I compiled kernel 3.19.8 on Debian 8 (amd64) then installed it to
> enable more BPF options. With libelfg0-dev (0.8.13-5 amd64) and
> pkg-config (0.28-1 amd64). When I compiled libbpf from github, I got
> some errors. Here are some system informations:
Debian 8 went EOL more than a year ago, and that kernel is more than six
years out of date. Please upgrade!
> My future goal is to run a simple BPF CO-RE program on linux kernel
> 3.19.8. So is it possible to install libbpf on kernel 3.19.8?
> Furthermore, is it possible to run BPF CO-RE programs on kernel
> 3.19.8?
CO-RE is certainly not going to work on that kernel even if you do
manage to compile libbpf.
-Toke
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-10-13 10:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-13 4:49 Is it possible to install libbpf on kernel 3.19.8? Pony Sew
2021-10-13 10:48 ` Toke Høiland-Jørgensen
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.