summaryrefslogtreecommitdiffstats
path: root/runtime/alloc.c
diff options
context:
space:
mode:
authorhunt <hunt>2008-01-30 00:43:22 +0000
committerhunt <hunt>2008-01-30 00:43:22 +0000
commit5d03112aaed421893cc08a6112b699995d254506 (patch)
tree5f92267beeb52f680e164e1eaca8c262fe530b86 /runtime/alloc.c
parent4824e60f4784d901856382cc9420b33ee4d7e7bc (diff)
downloadsystemtap-steved-5d03112aaed421893cc08a6112b699995d254506.tar.gz
systemtap-steved-5d03112aaed421893cc08a6112b699995d254506.tar.xz
systemtap-steved-5d03112aaed421893cc08a6112b699995d254506.zip
2008-01-29 Martin Hunt <hunt@redhat.com>
* alloc.c (struct _stp_malloc_type): Remove redundant field.
Diffstat (limited to 'runtime/alloc.c')
-rw-r--r--runtime/alloc.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/runtime/alloc.c b/runtime/alloc.c
index 674a340d..cfdb97bd 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 {