[Crash-utility] [PATCH] Display online cpus value in preference to kt->cpus
Luciano Chavez
lnx1138 at linux.vnet.ibm.com
Mon Mar 8 20:30:46 UTC 2010
On Mon, 2010-03-08 at 14:52 -0500, Dave Anderson wrote:
>
> For now, all I was thinking would be to simply change display_sys_stats()
> to something like:
>
> if (machine_type("PPC64"))
> your_function();
> else
> fprintf(fp, " CPUS: %d\n", kt->cpus);
>
> and since your_function() does not need to be in a machine-specific
> file, just put in kernel.c. And you can also call it from the
> ppc64_display_machine_stats() function.
Hi Dave,
I like this particular solution best! Simple and straightforward. I'll
work on a patch that does exactly as suggested. I'll post it for review
once I have it done this afternoon. Thanks for the help!
regards,
--
Luciano Chavez <lnx1138 at linux.vnet.ibm.com>
IBM Linux Technology Center
More information about the Crash-utility
mailing list