Comments (4)
One other feature to consider, which doesn't exactly fit in with the API as it is currently implemented in my branch, is supporting plugins to get debug info. I.e., some configuration file that defines some way to get debug info on a particular system/distro.
from drgn.
I've done a little bit of thinking about debuginfo in drgn-tools, and one thing I've found useful is splitting the concept into "finding" and "fetching" debuginfo. For "finding", the assumption is that the files exist on the filesystem if you know where to look. Drgn does this well. But for example on our analysis systems, we have an NFS mount that contains a bunch of vmlinux/ko files. That's a nonstandard location so it's nice to have a "finder" for that.
The "fetching" falls into the same category as debuginfod: the files are either in a remote location, or require a lengthy extraction process to find. For instance, I have two fetcher implementations now: one which can find kernel RPM debuginfo packages, and download and extract them, and another for internal analysis systems which finds the RPM on a (different) NFS share and does the same. The important thing about fetching is to place the newly created files into a location that the finder will find next time :)
I find the separation useful, but it could be a bit tied to our use cases!
from drgn.
I'm working on hammering out the remaining bits of this now.
Re: "finding" vs "fetching", at least for debuginfod, the API is that you call debuginfod_find_executable()
or debuginfod_find_debuginfo()
, which first checks the debuginfod client cache, and if that misses, then it downloads it and stores the result in the cache. I.e., it's a single entrypoint that "finds" locally and "fetches" if that fails, and that's how I've been picturing the drgn equivalents. For your examples, I think a similar approach would work?
from drgn.
I only really meant that it's nice to be able to check whether a request for debuginfo can be satisfied quickly, before committing to doing a long, blocking call. If debuginfod provides a way to check for cached debuginfo only, then it would be nice to have that option. But obviously whatever is easiest to implement, and if there's something I'd like to see, I could probably take a look at adding it too :)
from drgn.
Related Issues (20)
- Support C++ nested classes HOT 1
- Allow overriding / providing vmcoreinfo data HOT 9
- Python API for PRSTATUS HOT 4
- Handle private APIs removed in Python 3.13 HOT 1
- Nearly 3-hour CI runs HOT 26
- Potential adjustments to `helpers/linux/printk.py` HOT 2
- Support searching for kernel modules without modules.dep.bin
- Can't access user address HOT 5
- Smoke testing on other architectures HOT 3
- Unknown DW_AT_const_value form HOT 2
- Stop generating drgn.h HOT 2
- More convenient API for reading an array
- Remove scalar restriction on reinterpret HOT 1
- Unable to debug core dump HOT 4
- Update _PyLong_AsByteArray usage for Python 3.13
- C struct bitfield formatting depends on order of construction HOT 2
- Suggestion: pull extended LTS 4.14 from OpenELA HOT 2
- Throwing generic exceptions HOT 7
- Enable RHEL 9 Packit builds
- Backtrace from wrong CPU in kernel core dump
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 drgn.