Changes in uspace/app/top/top.h [172aad6:dec16a2] in mainline


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/top/top.h

    r172aad6 rdec16a2  
    3939#include <time.h>
    4040
    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}
    5145
    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
    5848
    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;
     49extern int operation_type;
    6650
    6751typedef struct {
     
    7660
    7761typedef struct {
    78         fixed_float virtmem;
    7962        fixed_float ucycles;
    8063        fixed_float kcycles;
     64        fixed_float virtmem;
    8165} perc_task_t;
    82 
    83 typedef struct {
    84         fixed_float cycles;
    85         fixed_float count;
    86 } perc_exc_t;
    8766
    8867typedef struct {
     
    10685        stats_task_t *tasks;
    10786        perc_task_t *tasks_perc;
    108         size_t *tasks_map;
    10987       
    11088        size_t threads_count;
    11189        stats_thread_t *threads;
    11290       
    113         size_t exceptions_count;
    114         stats_exc_t *exceptions;
    115         perc_exc_t *exceptions_perc;
    116        
    11791        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;
    12392} data_t;
    12493
Note: See TracChangeset for help on using the changeset viewer.