Badari Pulavarty wrote:
Hi Dave,

Here is the patch to fix crash to address "kmem_cache_s"
and "_rss" name changes - in linux git tree.

Thanks,
Badari

Nice.

The only thing I changed was the duplication of the two
STRUCT_SIZE_INIT(kmem_cache_s, "kmem_cache_s") calls, and
the location of the STRUCT_SIZE_INIT(kmem_cache_s, "kmem_cache")
call:

--- memory.c.badari     2005-11-15 15:12:46.000000000 -0500
+++ memory.c    2005-11-15 15:12:58.000000000 -0500
@@ -341,6 +341,7 @@ vm_init(void)
                        MEMBER_OFFSET_INIT(kmem_cache_s_array, "kmem_cache_s", "array");
                        ARRAY_LENGTH_INIT(len, NULL, "kmem_cache_s.array", NULL, 0);
                } else {
+                       STRUCT_SIZE_INIT(kmem_cache_s, "kmem_cache");
                        MEMBER_OFFSET_INIT(kmem_cache_s_num, "kmem_cache", "num");
                        MEMBER_OFFSET_INIT(kmem_cache_s_next, "kmem_cache", "next");
                        MEMBER_OFFSET_INIT(kmem_cache_s_name, "kmem_cache", "name");
@@ -509,9 +510,6 @@ vm_init(void)
        STRUCT_SIZE_INIT(free_area_struct, "free_area_struct");
        STRUCT_SIZE_INIT(zone, "zone");
        STRUCT_SIZE_INIT(zone_struct, "zone_struct");
-       STRUCT_SIZE_INIT(kmem_cache_s, "kmem_cache_s");
-       if (!VALID_STRUCT(kmem_cache_s))
-               STRUCT_SIZE_INIT(kmem_cache_s, "kmem_cache");
        STRUCT_SIZE_INIT(kmem_bufctl_t, "kmem_bufctl_t");
        STRUCT_SIZE_INIT(swap_info_struct, "swap_info_struct");
        STRUCT_SIZE_INIT(mm_struct, "mm_struct");

Once again -- many thanks,
  Dave