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