mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 07:51:19 +02:00
eitd/sectionsd.cpp: fix different uclibc/glibc malloc_stats
This commit is contained in:
@@ -996,7 +996,11 @@ static void commandDumpStatusInformation(int /*connfd*/, char* /*data*/, const u
|
|||||||
// resourceUsage.ru_maxrss, resourceUsage.ru_ixrss, resourceUsage.ru_idrss, resourceUsage.ru_isrss,
|
// resourceUsage.ru_maxrss, resourceUsage.ru_ixrss, resourceUsage.ru_idrss, resourceUsage.ru_isrss,
|
||||||
);
|
);
|
||||||
printf("%s\n", stati);
|
printf("%s\n", stati);
|
||||||
|
#ifdef __UCLIBC__
|
||||||
malloc_stats(NULL);
|
malloc_stats(NULL);
|
||||||
|
#else
|
||||||
|
malloc_stats();
|
||||||
|
#endif
|
||||||
return ;
|
return ;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1122,7 +1126,11 @@ static void FreeMemory()
|
|||||||
|
|
||||||
unlockEvents();
|
unlockEvents();
|
||||||
|
|
||||||
|
#ifdef __UCLIBC__
|
||||||
malloc_stats(NULL);
|
malloc_stats(NULL);
|
||||||
|
#else
|
||||||
|
malloc_stats();
|
||||||
|
#endif
|
||||||
xprintf("[sectionsd] free memory done\n");
|
xprintf("[sectionsd] free memory done\n");
|
||||||
//wakeupAll(); //FIXME should we re-start eit here ?
|
//wakeupAll(); //FIXME should we re-start eit here ?
|
||||||
}
|
}
|
||||||
@@ -1902,7 +1910,11 @@ static void print_meminfo(void)
|
|||||||
if (!sections_debug)
|
if (!sections_debug)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
#ifdef __UCLIBC__
|
||||||
malloc_stats(NULL);
|
malloc_stats(NULL);
|
||||||
|
#else
|
||||||
|
malloc_stats();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
//---------------------------------------------------------------------
|
//---------------------------------------------------------------------
|
||||||
|
Reference in New Issue
Block a user