Is it possible to install libbpf on kernel 3.19.8?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.




[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux