<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Sharyathi Nagesh wrote:
<blockquote TYPE=CITE>This is a patch to fix incorrect Processor speed
being displayed on
<br>dumps taken over x86_64 machines. Please review and let me know of
your
<br>views...
<p>--- crash-4.0-2.21.old/x86_64.c 2006-02-15 04:10:02.000000000 +0530
<br>+++ crash-4.0-2.21/x86_64.c     2006-03-23 11:22:43.000000000
+0530
<br>@@ -1044,13 +1044,13 @@ x86_64_is_task_addr(ulong task)
<br> static ulong
<br> x86_64_processor_speed(void)
<br> {
<br>-        unsigned long cpu_khz;
<br>+        unsigned long cpu_khz=0;
<p>         if (machdep->mhz)
<br>                
return (machdep->mhz);
<p>         if (symbol_exists("cpu_khz"))
{
<br>-               
get_symbol_data("cpu_khz", sizeof(long), &cpu_khz);
<br>+               
get_symbol_data("cpu_khz", sizeof(int), &cpu_khz);
<br>                
if (cpu_khz)
<br>                        
return(machdep->mhz = cpu_khz/1000);
<br>         }
<p>--
<br>Crash-utility mailing list
<br>Crash-utility@redhat.com
<br><a href="https://www.redhat.com/mailman/listinfo/crash-utility">https://www.redhat.com/mailman/listinfo/crash-utility</a></blockquote>
<tt>It's in there!  I got your initial non-member posting, and put</tt>
<br><tt>it in 4.0-2.22 yesterday.  Here's the changelog from:</tt><tt></tt>
<p><tt> <A HREF="http://people.redhat.com/anderson/crash.changelog.html">http://people.redhat.com/anderson/crash.changelog.html</A></tt><tt></tt>
<p><tt> Incorporated initial patch-set to implement support for kernels
built</tt>
<br><tt> with CONFIG_SPARSEMEM.  (dwilder@us.ibm.com)</tt><tt></tt>
<p><tt> Fix for post-2.6.15 ppc64 kernels to use cpu_online_map when
perusing</tt>
<br><tt> the paca array for the per_cpu_offsets.  (haren@us.ibm.com)</tt><tt></tt>
<p><tt> Fix for ppc64 "bt" command for active tasks that were running
in</tt>
<br><tt> user space at the time of crash.  (haren@us.ibm.com)</tt><tt></tt>
<p><tt> Fix to remove dependencies upon any kernel header files so
as to</tt>
<br><tt> allow crash to build in a Ubuntu environment.  (aquynh@gmail.com)</tt><tt></tt>
<p><b><i><tt> Fix size of x86_64 "cpu_khz" variable to match that
of the kernel.</tt></i></b>
<br><b><i><tt> (sharyath@in.ibm.com)</tt></i></b><tt></tt>
<p><tt> Created framework for support of Xen kernel dumpfiles and
live Xen</tt>
<br><tt> kernels; this is going to be a long-period work-in-progress
affair,</tt>
<br><tt> and the code added in this release is being done now primarily
to aid</tt>
<br><tt> in future patch integration efforts.  (anderson@redhat.com)</tt>
<br><tt> (3/23/06)</tt><tt></tt>
<p><tt>How's that for service?</tt><tt></tt>
<p><tt>Thanks,</tt>
<br><tt>  Dave</tt>
<br><tt></tt> </html>