Changes in uspace/app/top/top.h [dec16a2:172aad6] in mainline
- File:
-
- 1 edited
-
uspace/app/top/top.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/top/top.h
rdec16a2 r172aad6 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 do { \ 43 if ((b) != 0) { \ 44 (float).upper = (a); \ 45 (float).lower = (b); \ 46 } else { \ 47 (float).upper = 0; \ 48 (float).lower = 1; \ 49 } \ 50 } while (0) 45 51 46 #define OP_TASKS 1 47 #define OP_IPC 2 52 typedef enum { 53 OP_TASKS, 54 OP_IPC, 55 OP_EXCS, 56 OP_HELP 57 } op_mode_t; 48 58 49 extern int operation_type; 59 typedef enum { 60 SORT_TASK_CYCLES 61 } sort_mode_t; 62 63 extern op_mode_t op_mode; 64 extern sort_mode_t sort_mode; 65 extern bool excs_all; 50 66 51 67 typedef struct { … … 60 76 61 77 typedef struct { 78 fixed_float virtmem; 62 79 fixed_float ucycles; 63 80 fixed_float kcycles; 64 fixed_float virtmem;65 81 } perc_task_t; 82 83 typedef struct { 84 fixed_float cycles; 85 fixed_float count; 86 } perc_exc_t; 66 87 67 88 typedef struct { … … 85 106 stats_task_t *tasks; 86 107 perc_task_t *tasks_perc; 108 size_t *tasks_map; 87 109 88 110 size_t threads_count; 89 111 stats_thread_t *threads; 90 112 113 size_t exceptions_count; 114 stats_exc_t *exceptions; 115 perc_exc_t *exceptions_perc; 116 91 117 stats_physmem_t *physmem; 118 119 uint64_t *ucycles_diff; 120 uint64_t *kcycles_diff; 121 uint64_t *ecycles_diff; 122 uint64_t *ecount_diff; 92 123 } data_t; 93 124
Note:
See TracChangeset
for help on using the changeset viewer.
