From: hunt Date: Wed, 30 Jan 2008 00:43:22 +0000 (+0000) Subject: 2008-01-29 Martin Hunt X-Git-Tag: release-0.6.2~89 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=5d03112aaed421893cc08a6112b699995d254506;p=systemtap.git 2008-01-29 Martin Hunt * alloc.c (struct _stp_malloc_type): Remove redundant field. --- diff --git a/runtime/ChangeLog b/runtime/ChangeLog index c793fbd99..b0db7a217 100644 --- a/runtime/ChangeLog +++ b/runtime/ChangeLog @@ -1,3 +1,8 @@ +2008-01-29 Martin Hunt + + * alloc.c (struct _stp_malloc_type): Remove + redundant field. + 2008-01-28 Martin Hunt * alloc.c: Use DEFINE_SPINLOCK. diff --git a/runtime/alloc.c b/runtime/alloc.c index 674a340d7..cfdb97bd4 100644 --- a/runtime/alloc.c +++ b/runtime/alloc.c @@ -41,15 +41,14 @@ static int _stp_allocated_memory = 0; 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 {