7 Using the drgn Library With Python
Debug live kernels and vmcore crash dumps in a Python shell, and
Python scripts, by importing the drgn library.
Before you can start using drgn with Python scripts, ensure that Python is correctly installed on the system. For more information, see Oracle Linux 10: Installing and Managing Python.
If the script runs on Python 3.12,
also install the drgn package. For more information, see Installing drgn.
Unlike the crash utility, Drgn wasn't originally designed to be a standalone
kernel debugging tool. Drgn is a Python programming library that exposes debugging information
for scripting and review purposes.
The Python script loaded an array of kernel debugging information and crash data.