[patch] fix 'ps' command in ia64 2.6 kdb

Nicholas Wourms nwourms at myrealbox.com
Sun Aug 24 08:18:49 PDT 2003


Martin Pool wrote:

> I've been trying to update kdb for ia64 2.6, based on Xavier Bru's kdb
> 4.3 patches to 2.5.72 at http://www.bullfreeware.com/linux/kdb/.
> 
> One problem I hit was that the 'ps' command would always oops on an
> SMP machine, because of trying to read information about nonexistant
> processors.  This patch fixes that.  
> 
> It may not be an optimal fix; I am going to look a little more at how
> NR_CPUS is used here.
> 
> I can't believe I'm the only person to hit this, so perhaps I started
> from a patch that was too old?

You might also want to check out Jim Huston's patches at:
http://www.ccur.com/rt_oss.asp

I don't think he did the ia64 part, but his base ia32 works very nice on 
2.5.73.  I believe Xavier & Jim had talked at one point about merging 
their effort, but I have no idea how far that got.  Now that 2.6-test is 
out, perhaps some consideration might be given to merging these patches 
back into the kdb sources?

Cheers,
Nicholas





More information about the kdb mailing list