Skip to content
Snippets Groups Projects

Add memory counters and fix makefile

Merged floreal.risso requested to merge pr_final into devel
2 files
+ 66
1
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 12
1
#include "meminfo_option.h"
#include "meminfo_option.h"
#include <bits/stdint-uintn.h>
#include "util.h"
#include <fcntl.h>
#include <fcntl.h>
#include <info_reader.h>
#include <info_reader.h>
#include <inttypes.h>
#include <inttypes.h>
@@ -107,3 +107,14 @@ void clean_memory_counters(void *ptr) {
@@ -107,3 +107,14 @@ void clean_memory_counters(void *ptr) {
free(counters->keys);
free(counters->keys);
free(ptr);
free(ptr);
}
}
 
 
void *show_all_memory_counters(void *none1, size_t none2) {
 
for (unsigned int i = 0; i < NB_COUNTERS; i++) {
 
printf("%s\n", memory_counters[i]);
 
}
 
 
UNUSED(none1);
 
UNUSED(none2);
 
exit(EXIT_SUCCESS);
 
return NULL; /* not reached */
 
}
Loading