Comments (6)
For kdump support, you'll need to install libkdumpfile and rebuild drgn. There's a link in the readme, but let me know if you need help.
from drgn.
Actually, come to think of it, that should've reported an error indicating that drgn wasn't built with kdump support. Could you please share the output of xxd vmcore | head
?
from drgn.
$ xxd vmcore | head
00000000: 4b44 554d 5020 2020 0600 0000 4c69 6e75 KDUMP ....Linu
00000010: 7800 0000 0000 0000 0000 0000 0000 0000 x...............
00000020: 0000 0000 0000 0000 0000 0000 0000 0000 ................
00000030: 0000 0000 0000 0000 0000 0000 0000 0000 ................
00000040: 0000 0000 0000 0000 0000 0000 0064 6576 .............dev
00000050: 2d72 3633 302d 3034 2e6d 7462 632e 6c61 -r630-04.mtbc.la
00000060: 6273 2e6d 6c6e 7800 0000 0000 0000 0000 bs.mlnx.........
00000070: 0000 0000 0000 0000 0000 0000 0000 0000 ................
00000080: 0000 0000 0000 0000 0000 0000 0000 342e ..............4.
00000090: 3139 2e33 362b 0000 0000 0000 0000 0000 19.36+..........
from drgn.
That's really strange, it has the kdump signature. I don't see any obvious bugs in the code. I'll try to reproduce this tomorrow, thanks for the report.
from drgn.
Thanks for quick reply.
from drgn.
My drgn source code is a little old. After pulling the latest code and installing libkdumpfile, now it works.
$ drgn -c ./vmcore
drgn 0.0.1 (using Python 3.6.6)
For help, type help(drgn).
import drgn
from drgn import cast, container_of, execscript, NULL, Object, reinterpret
from drgn.helpers.linux import *
dev_base_head = prog['init_net'].dev_base_head.address_of_()
print(dev_base_head)
*(struct list_head *)0xffffffff933e6890 = {
.next = (struct list_head *)0xffff929c19f10050,
.prev = (struct list_head *)0xffff929b87fca050,
}
from drgn.
Related Issues (20)
- 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 HOT 1
- tests: tests are failing on powerpc HOT 2
- Test failure on 6.1.98-vmtest30.0tiny HOT 8
- Crashed thread does not have a stack trace HOT 9
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.