root/foundation-apps/gmemusage-maxx/process.h
| Revision 1, 1.4 KB (checked in by emasson, 3 years ago) |
|---|
| Line | |
|---|---|
| 1 | /* |
| 2 | gmemusage |
| 3 | |
| 4 | Copyright 1998, Michael Pruett |
| 5 | Copyright 1999, Mark B. Allan |
| 6 | Copyright 2000-2008, Eric Masson |
| 7 | Copyright 2008-2009, Genirix Systems |
| 8 | |
| 9 | This program is free software; you can redistribute it and/or |
| 10 | modify it under the terms of the GNU General Public License |
| 11 | as published by the Free Software Foundation; either version 2 |
| 12 | of the License, or (at your option) any later version. |
| 13 | |
| 14 | This program is distributed in the hope that it will be useful, |
| 15 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 17 | GNU General Public License for more details. |
| 18 | |
| 19 | You should have received a copy of the GNU General Public License |
| 20 | along with this program; if not, write to the Free Software |
| 21 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
| 22 | USA. |
| 23 | */ |
| 24 | |
| 25 | #ifndef PROCESS_H |
| 26 | #define PROCESS_H |
| 27 | |
| 28 | #include <linux/limits.h> |
| 29 | |
| 30 | struct process |
| 31 | { |
| 32 | int pid; /* if PID is < 0, it is the # of duplicate processes*/ |
| 33 | /* char name[PATH_MAX];*/ |
| 34 | char *name; |
| 35 | char state; |
| 36 | int top; /* top of drawn rect */ |
| 37 | |
| 38 | size_t live, vsize, hwm, rss, data, stack, exe, lib; |
| 39 | int ppid, pgid, sid; |
| 40 | int priority, nice; |
| 41 | |
| 42 | int threads; |
| 43 | int cpu; |
| 44 | |
| 45 | }; |
| 46 | |
| 47 | |
| 48 | struct system |
| 49 | { |
| 50 | |
| 51 | size_t system_ram; |
| 52 | size_t video_ram; |
| 53 | |
| 54 | size_t kernel_size; |
| 55 | size_t kernel_code; |
| 56 | size_t kernel_data; |
| 57 | size_t kernel_bss; |
| 58 | |
| 59 | int iomem_present; |
| 60 | |
| 61 | |
| 62 | }; |
| 63 | |
| 64 | #endif |
Note: See TracBrowser
for help on using the browser.
