From 6ae25220d6fa9b5d6a716b49ca6a0e4828a61043 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Wed, 2 Oct 2019 06:40:30 +0200 Subject: Revert "record: Add wrappers for malloc() functions" It was accidentally committed. This reverts commit a314544a278f1533ae001f742d7fe24fcee253e6. --- testsuites/libtests/record02/init.c | 23 +---------------------- 1 file changed, 1 insertion(+), 22 deletions(-) (limited to 'testsuites/libtests/record02/init.c') diff --git a/testsuites/libtests/record02/init.c b/testsuites/libtests/record02/init.c index 220e240d60..22671a7c0a 100644 --- a/testsuites/libtests/record02/init.c +++ b/testsuites/libtests/record02/init.c @@ -33,7 +33,6 @@ #include #include -#include #include #include "tmacros.h" @@ -95,24 +94,6 @@ static void drain_visitor( rtems_test_assert(cs == RTEMS_RECORD_CLIENT_SUCCESS); } -static void call_malloc_functions(void) -{ - void *p; - int eno; - - p = aligned_alloc(1, 1); - free(p); - p = calloc(1, 1); - free(p); - p = malloc(1); - free(p); - eno = posix_memalign(&p, 32, 32); - rtems_test_assert(eno == 0); - free(p); - p = realloc(NULL, 1); - free(p); -} - static void Init(rtems_task_argument arg) { test_context *ctx; @@ -180,8 +161,6 @@ static void Init(rtems_task_argument arg) level = rtems_record_interrupt_disable(); rtems_record_interrupt_enable(level); - call_malloc_functions(); - rtems_record_client_init(&ctx->client, client_handler, NULL); size = _Record_Stream_header_initialize(&header); cs = rtems_record_client_run(&ctx->client, &header, size); @@ -203,7 +182,7 @@ static void Init(rtems_task_argument arg) #define CONFIGURE_RTEMS_INIT_TASKS_TABLE -#define CONFIGURE_RECORD_PER_PROCESSOR_ITEMS 512 +#define CONFIGURE_RECORD_PER_PROCESSOR_ITEMS 256 #define CONFIGURE_RECORD_EXTENSIONS_ENABLED -- cgit v1.2.3