Changeset be06914 in mainline for uspace/app/top/top.h
- Timestamp:
- 2010-06-11T12:41:35Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- b3b7e14
- Parents:
- 48dcc69
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/top/top.h
r48dcc69 rbe06914 39 39 #include <time.h> 40 40 41 #define FRACTION_TO_FLOAT(float, a, b) { \ 42 (float).upper = (a); \ 43 (float).lower = (b); \ 44 } 41 #define FRACTION_TO_FLOAT(float, a, b) \ 42 { \ 43 if ((b) != 0) { \ 44 (float).upper = (a); \ 45 (float).lower = (b); \ 46 } else { \ 47 (float).upper = 0; \ 48 (float).lower = 1; \ 49 } \ 50 } 45 51 46 52 #define OP_TASKS 1 … … 61 67 62 68 typedef struct { 69 fixed_float virtmem; 63 70 fixed_float ucycles; 64 71 fixed_float kcycles; 65 fixed_float virtmem;66 72 } perc_task_t; 73 74 typedef struct { 75 fixed_float cycles; 76 fixed_float count; 77 } perc_exc_t; 67 78 68 79 typedef struct { … … 92 103 size_t exceptions_count; 93 104 stats_exc_t *exceptions; 105 perc_exc_t *exceptions_perc; 94 106 95 107 stats_physmem_t *physmem;
Note:
See TracChangeset
for help on using the changeset viewer.