summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/stackdepot.py
diff options
context:
space:
mode:
authorNuno Das Neves <nunodasneves@linux.microsoft.com>2025-03-14 22:28:47 +0300
committerWei Liu <wei.liu@kernel.org>2025-03-21 00:23:03 +0300
commit3817854ba892016ddb03ee31208e9f8e440f5bee (patch)
tree308365b2d660be2bdf451c0f822aed9884c24d76 /scripts/gdb/linux/stackdepot.py
parente792d843aa3c9d039074cdce728d5803262e57a7 (diff)
downloadlinux-3817854ba892016ddb03ee31208e9f8e440f5bee.tar.xz
hyperv: Log hypercall status codes as strings
Introduce hv_status_printk() macros as a convenience to log hypercall errors, formatting them with the status code (HV_STATUS_*) as a raw hex value and also as a string, which saves some time while debugging. Create a table of HV_STATUS_ codes with strings and mapped errnos, and use it for hv_result_to_string() and hv_result_to_errno(). Use the new hv_status_printk()s in hv_proc.c, hyperv-iommu.c, and irqdomain.c hypercalls to aid debugging in the root partition. Signed-off-by: Nuno Das Neves <nunodasneves@linux.microsoft.com> Reviewed-by: Stanislav Kinsburskii <skinsburskii@linux.microsoft.com> Link: https://lore.kernel.org/r/1741980536-3865-2-git-send-email-nunodasneves@linux.microsoft.com Signed-off-by: Wei Liu <wei.liu@kernel.org> Message-ID: <1741980536-3865-2-git-send-email-nunodasneves@linux.microsoft.com>
Diffstat (limited to 'scripts/gdb/linux/stackdepot.py')
0 files changed, 0 insertions, 0 deletions