]> sourceware.org Git - systemtap.git/commitdiff
2008-01-29 Martin Hunt <hunt@redhat.com>
authorhunt <hunt>
Wed, 30 Jan 2008 00:43:22 +0000 (00:43 +0000)
committerhunt <hunt>
Wed, 30 Jan 2008 00:43:22 +0000 (00:43 +0000)
* alloc.c (struct _stp_malloc_type): Remove
redundant field.

runtime/ChangeLog
runtime/alloc.c

index c793fbd99127aee2e624a575b286517799221954..b0db7a217f5b17221e20facbca9804ee6a2f8810 100644 (file)
@@ -1,3 +1,8 @@
+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.
index 674a340d7ea27d3e86c018a7c41fe6d9ccc3fd45..cfdb97bd40b238637214f74dbdeca7f7827f6aba 100644 (file)
@@ -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 {
This page took 0.029889 seconds and 5 git commands to generate.