Change-Id: Ib463525ae36cd1db3910748e3246e327dc13533f
return map;
}
-int print_proc_maps(int pid)
-{
- char cmd[32];
- snprintf(cmd, sizeof(cmd), "cat /proc/%d/maps 1>&2", pid);
- return system(cmd);
-}
-
char *get_thread_states(const int *tids, int n)
{
int i;
struct mem_map *create_maps(int pid);
/*
- * simple routine to print process maps for
- * debugging or advanced error reporting
- */
-int print_proc_maps(int pid);
-
-/*
* returns a pointer to dynamically allocated array of characters representing
* thread states as found in /proc/<pid>/status
*/