Comments (7)
probably due to a change in libbpf. perhaps you're using a newer one than we are. i see other some commits in libbpf-tools zero-initializing globals.
the fix would be to zero initialize the globals in all of our tools.
from ghost-userspace.
Thanks, I'll take a look tomorrow. If it turns out the zero-initialization isn't guaranteed by the standard, then I'll push a commit to fix this. Otherwise I'll figure out what the real issue is and post here.
from ghost-userspace.
Hello,
me I have meet this error and to solve this problem, I have just initialize some variable in
the following file : third_party/bpf/schedghostidle.bpf.c.
In that file I have just initialize the following variable:
uint64_t nr_latches = 0;
uint64_t nr_bpf_latches = 0;
uint64_t nr_idle_to_bpf_latches = 0;
Try to do it and we will see if it work on your project.
from ghost-userspace.
@NGUETOUM Thanks so much!
It solved the compile problem. Just not sure whether those variables should be initialized to specific values. I am going to try some example benchmark to see what will happen:)
from ghost-userspace.
@john-liu2039 They should be initialized to 0. I need to look into why this is causing compile issues on your end since the global variables should be zero-initialized by default just as they would be in a userspace program. What version of clang are you using?
from ghost-userspace.
Thanks, @jackhumphries :) My clang setup is as follows:
clang version 10.0.0-4ubuntu1
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
BTW, I set up the ghost kernel and userspace with the VMware virtual machine.
Thanks so much for your help!
from ghost-userspace.
Thanks Barret.
I have explicitly initialized the BPF global variables to 0 in our internal Google codebase. This will make its way out to the open source codebase soon.
from ghost-userspace.
Related Issues (20)
- I am getting this error when I run bazel build -c opt fifo_per_cpu_agent HOT 5
- Scheduling other benchmarks like deathstarbench HOT 1
- bazel build error about platforms HOT 1
- When running 'sudo bazel-bin/pushtosched 18', I encountered an error: sched_setscheduler(1) failed: Bad file descriptor'" HOT 3
- I don't know whether it can run normally in wsl, or if anyone has had similar experience HOT 1
- BPF verifier rejects `biff.bpf.c` HOT 3
- how to run rocksdb application by two steps and test it ? HOT 1
- How to add a custom scheduler? Is it possible for me to get some help? HOT 11
- some question about switchTo and Latched HOT 2
- An error when moving thread to agent_shinjuku HOT 1
- The origin of the biff_bpf.skel.h file HOT 1
- Questions about enclave HOT 1
- Fail to run the shinjuku.py for a "IsADirectoryError" HOT 2
- questions about MSG_TASK_ON_CPU HOT 1
- Forcibly closing the agent while program running on enclave HOT 1
- How can i check the application actually run on the ghost? HOT 1
- The ghost is support docker application as well ? HOT 1
- Questions about running multiple concurrent policies on a single machine using multiple enclaves. HOT 3
- How to check the scheduling time slice of the scheduling algorithm in Ghost?
- How to upgrade scheduling policies dynamically
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.
from ghost-userspace.