Commit a81488c0 authored by Lionel Gauthier's avatar Lionel Gauthier

trace malloc

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@5580 818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent 5345032a
......@@ -34,7 +34,7 @@
#include <signal.h>
#include <execinfo.h>
#include <time.h>
#include <mcheck.h>
#include <sys/timerfd.h>
#include "assertions.h"
......@@ -188,6 +188,8 @@ void get_simulation_options(int argc, char *argv[]) {
LONG_OPTION_UE_MIHF_REMOTE_PORT,
LONG_OPTION_UE_MIHF_IP_ADDRESS,
LONG_OPTION_UE_MIHF_ID,
LONG_OPTION_MALLOC_TRACE_ENABLED,
};
static struct option long_options[] = {
......@@ -215,6 +217,7 @@ void get_simulation_options(int argc, char *argv[]) {
{"ue-mihf-ip-address", required_argument, 0, LONG_OPTION_UE_MIHF_IP_ADDRESS},
{"ue-mihf-id", required_argument, 0, LONG_OPTION_UE_MIHF_ID},
{"malloc-trace-enabled", no_argument, 0, LONG_OPTION_MALLOC_TRACE_ENABLED},
{NULL, 0, NULL, 0}
};
......@@ -244,6 +247,11 @@ void get_simulation_options(int argc, char *argv[]) {
case LONG_OPTION_OEH_ENABLED:
oai_emulation.info.oeh_enabled = 1;
break;
case LONG_OPTION_MALLOC_TRACE_ENABLED:
mtrace();
break;
#if defined(ENABLE_RAL)
case LONG_OPTION_ENB_RAL_LISTENING_PORT:
if (optarg) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment