atc's People
atc's Issues
Question: libbpf: failed to find kernel BTF type ID of 'cfs_select_task_rq': -3
hi,rgushchin:
I am interesting in your scheduler path in linux kernel. So I clone the "bpfsched.rfc kernel" in your repository and I finished compiling it. Then I clone "atc" example and make in it's directory, this time I get executable file named atc.
But when I use ./atc -c ls or ./atc -p with number. I get wrong information as following:
"""
libbpf: sec 'sched/cfs_select_task_rq': found 2 CO-RE relocations
libbpf: prog 'select_task_rq': relo #0: kind <byte_off> (0), spec is [6] struct task_struct.se (0:18 @ offset 128)
libbpf: prog 'select_task_rq': relo #0: matching candidate #0 [130] struct task_struct.se (0:20 @ offset 192)
libbpf: prog 'select_task_rq': relo #0: patched insn #21 (ALU/ALU64) imm 128 -> 192
libbpf: prog 'select_task_rq': relo #1: kind <byte_off> (0), spec is [6] struct task_struct.se (0:18 @ offset 128)
libbpf: prog 'select_task_rq': relo #1: matching candidate #0 [130] struct task_struct.se (0:20 @ offset 192)
libbpf: prog 'select_task_rq': relo #1: patched insn #35 (ALU/ALU64) imm 128 -> 192
libbpf: failed to find kernel BTF type ID of 'cfs_select_task_rq': -3
libbpf: failed to load object 'atc_bpf'
libbpf: failed to load BPF skeleton 'atc_bpf': -3
Failed to load and verify BPF skeleton
""""
I don't know why does it and how can I tackle it . Can you give me some suggestion? Thanks very much.
Look forward to your favourable reply,
duihuhu
libbpf: failed to find BTF for extern 'bpf_sched_entity_belongs_to_cgrp'
@rgushchin
When I built this code by running make, I got this error:
"gen skeleton atc.bpf.o > atc.skel.h
libbpf: failed to find BTF for extern 'bpf_sched_entity_belongs_to_cgrp': -2
Error: failed to open BPF object file: No such file or directory"
Any idea how to fix it?
There is my environment:
- I compiled the kernel with your patch " bpf: sched: basic infrastructure for scheduler bpf"
- enabled "CONFIG_DEBUG_INFO_BTF=y CONFIG_PAHOLE_HAS_SPLIT_BTF=y CONFIG_DEBUG_INFO_BTF_MODULES=y"
- rebuilt lib/bpf and bpftool
- generated vmlinux.h using the bpftool
I will debug it on my end. I am looking for if you can give me some input on the issue.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.