+2008-01-29 Martin Hunt <hunt@redhat.com>
+
+ * alloc.c (struct _stp_malloc_type): Remove
+ redundant field.
+
2008-01-28 Martin Hunt <hunt@redhat.com>
* alloc.c: Use DEFINE_SPINLOCK.
enum _stp_memtype { MEM_KMALLOC, MEM_VMALLOC, MEM_PERCPU };
typedef struct {
- enum _stp_memtype type;
char *alloc;
char *free;
} _stp_malloc_type;
static const _stp_malloc_type const _stp_malloc_types[] = {
- {MEM_KMALLOC, "kmalloc", "kfree"},
- {MEM_VMALLOC, "vmalloc", "vfree"},
- {MEM_PERCPU, "alloc_percpu", "free_percpu"}
+ {"kmalloc", "kfree"},
+ {"vmalloc", "vfree"},
+ {"alloc_percpu", "free_percpu"}
};
struct _stp_mem_entry {