Comments (2)
Are you talking about just the enum cap_tag
part? It's hard because user level isn't supposed to be able to query type information about a cap. Maybe we could look at how seL4_DebugCapIdentify
is defined and change it to return the same information, but not directly tied to the internal seL4 enum values.
from sel4_libs.
Seems to me that is the usual trade off between debug features and release code. In Debug mode you want to be able to have some insights and thus need some headers or definitions that are not meant to be really public. Wouldn't it be possible that things like the enum cap_tag" are simply put into a separate header file that has no includes? Then this header file can be included in debug builds by libsel4debug and thus become available to others indirectly when they include libsel4debug? No other module would then have a direct dependency here, all such "debug hacks" are well constained in libsel4debug.
After all, what is the real point on hiding some technical details that one desperately want for debugging and low level development purposes? If information is duplicated in hard coded magic numbers, I consider it even worse. That tends to end in a pitfall if something changes - because you never really notice this until things start behaving very strangely.
from sel4_libs.
Related Issues (13)
- Crash in sel4utils_elf_get_vsyscall if __vsyscall section is not present HOT 1
- Document if the code is production ready HOT 1
- add events.h for Cortex-A35
- ARMv7 disables cyclec counters while reading HOT 2
- libsel4utils: load_segment memory leak bug HOT 1
- Compile warning HOT 2
- Is there someting wrong with sync_cv_broadcast_release in condition_var.h
- libsel4utils vspace assumes it is managing sel4 userspace but is also used for vm guests
- libsel4utils vspace implementation can only use vspace_new_pages for memory allocation
- allocman: bootstrap_new_2level_simple clobbers the schedule control cap
- Delete attic branch 'spdx' HOT 1
- libsel4muslcsys : Is there a way to do normal read and write like in Linux? HOT 3
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 sel4_libs.