kernel - Trying to run eBPF BCC Tools offcputime fails with error - Ask Ubuntu


$ /usr/share/bcc/tools/offcputime 

the above command says can't find directory: /lib/modules/4.9.0-040900rc2-generic/kernel/build.

i think has not having linux-tools kernel.

can't install linux tools latest kernel.

 e: unable locate package linux-tools-4.9.0-040900rc2-generic 

or maybe installed wrong dpkg... got .deb files here: http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.9-rc2/

bcc needs kernel headers compile ebpf programs. you'll need download , install .deb files kernel headers.

(i able reproduce bug , fix installing 2 .deb files http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.9-rc2/ kernel headers.)


Comments

Popular posts from this blog

download - Firefox cannot save files (most of the time), how to solve? - Super User

windows - "-2146893807 NTE_NOT_FOUND" when repair certificate store - Super User