[Crash-utility] [PATCH] arm32: fix "unknown HZ value" error
Dave Anderson
anderson at redhat.com
Mon Sep 29 15:39:39 UTC 2014
----- Original Message -----
> This patch fix the error info
> "UPTIME: (cannot calculate: unknown HZ value)"
> on arm(32 bit), if the CONFIG_IKCONFIG was not selected.
Besides the initial system banner and the "sys" command error shown above,
the "ps -t" option indicates "RUN TIME: (cannot calculate: unknown HZ value)",
and the "timer -r" option will kill the crash session with a floating point
exception.
Queued for crash-7.0.9:
https://github.com/crash-utility/crash/commit/5da8ffe6051315cb4d18aee44839676e600c1358
Thanks,
Dave
>
> Signed-off-by: Hu Keping <hukeping at huawei.com>
> ---
> arm.c | 15 ++++++++++++---
> 1 file changed, 12 insertions(+), 3 deletions(-)
>
> diff --git a/arm.c b/arm.c
> index 7405583..cfdc5f1 100644
> --- a/arm.c
> +++ b/arm.c
> @@ -315,6 +315,9 @@ arm_init(int when)
> "pr_pid");
> MEMBER_OFFSET_INIT(elf_prstatus_pr_reg, "elf_prstatus",
> "pr_reg");
> +
> + if(!machdep->hz)
> + machdep->hz = 100;
> break;
>
> case POST_VM:
> --
> 1.8.5.5
>
>
More information about the Crash-utility
mailing list