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 <[email protected]>
IBM Linux Technology Center
--
Crash-utility mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/crash-utility