[Crash-utility] [PATCH] xen: Handle rename of dom0 symbol in Xen 4.5.0
Dave Anderson
anderson at redhat.com
Tue Apr 28 14:39:48 UTC 2015
----- Original Message -----
> Has been replaced by hardware_domain.
>
> Xen tracking:
>
> commit c86ccbf0b7976ac0093bef4e4e43005771c0f829
> Author: Daniel De Graaf <dgdegra at tycho.nsa.gov>
> Date: Fri Apr 11 11:20:55 2014 +0200
>
> rename dom0 to hardware_domain
>
> Signed-off-by: Don Slutz <dslutz at verizon.com>
Queued for crash-7.1.1:
https://github.com/crash-utility/crash/commit/4e1dca2133f0b804260d164b15b9b1eeae053659
Thanks,
Dave
> ---
> I do have a big (32G sized file, that gzipped is 357M).
> let me know if you want it.
>
> xen_hyper.c | 8 ++++++--
> 1 file changed, 6 insertions(+), 2 deletions(-)
>
> diff --git a/xen_hyper.c b/xen_hyper.c
> index db297ff..c02842b 100644
> --- a/xen_hyper.c
> +++ b/xen_hyper.c
> @@ -1036,7 +1036,9 @@ xen_hyper_get_domains(void)
> long domain_next_in_list;
> int i, j;
>
> - get_symbol_data("dom0", sizeof(void *), &domain);
> + i = try_get_symbol_data("dom0", sizeof(void *), &domain);
> + if (!i)
> + get_symbol_data("hardware_domain", sizeof(void *), &domain);
> domain_next_in_list = MEMBER_OFFSET("domain", "next_in_list");
> i = 0;
> while (domain != 0) {
> @@ -1077,7 +1079,9 @@ xen_hyper_get_domain_next(int mod, ulong *next)
> if (xhdt->dom0) {
> *next = xhdt->dom0->domain;
> } else {
> - get_symbol_data("dom0", sizeof(void *), next);
> + int ok = try_get_symbol_data("dom0", sizeof(void *), next);
> + if (!ok)
> + get_symbol_data("hardware_domain", sizeof(void *), next);
> }
> return xhdt->domain_struct;
> break;
> --
> 1.8.4
>
>
More information about the Crash-utility
mailing list