[Crash-utility] Re: when tracking full slabs, check kmem_cache flag
i-kitayama at ap.jp.nec.com
i-kitayama at ap.jp.nec.com
Tue Mar 18 02:01:50 UTC 2008
Hi Dave,
Thanks for reviewing.
> For 2.6.22 only, kmem_cache_node.full is always there, so in that
> case, the SLAB_STORE_USER flag would never get checked above, and
> the full slab would be shown as "(empty)".
>
> And for 2.6.23 kernels and above, the SLAB_STORE_USER flag
> would *only* be checked if CONFIG_SLUB_DEBUG was *not* set.
> And if CONFIG_SLUB_DEBUG is not set, then full slabs would not
> be tracked because add_full() is a no-op -- regardless whether
> the SLAB_STORE_USER flag was set or not.
>
> Shouldn't it be "||" instead of "&&"?
Right. I have attached the modified patch.
Itaru
-------------- next part --------------
A non-text attachment was scrubbed...
Name: store_user-flagcheck.patch
Type: application/octet-stream
Size: 568 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/crash-utility/attachments/20080318/2c12b02a/attachment.obj>
More information about the Crash-utility
mailing list