Ignore:
Timestamp:
Mar 4, 2021, 7:40:25 PM (5 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
77d601f
Parents:
342af53 (diff), a5040fe (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' of plg.uwaterloo.ca:software/cfa/cfa-cc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/concurrency/stats.hfa

    r342af53 r8e4aa05  
    22
    33#include <stdint.h>
     4
     5enum {
     6        CFA_STATS_READY_Q  = 0x01,
     7        CFA_STATS_IO = 0x02,
     8};
    49
    510#if defined(__CFA_NO_STATISTICS__)
     
    914        static inline void __print_stats( struct __stats_t *, int, const char *, const char *, void * ) {}
    1015#else
    11         enum {
    12                 CFA_STATS_READY_Q  = 0x01,
    13                 #if defined(CFA_HAVE_LINUX_IO_URING_H)
    14                         CFA_STATS_IO = 0x02,
    15                 #endif
    16         };
    1716
    1817        struct __attribute__((aligned(64))) __stats_readQ_t {
     
    6766                struct __attribute__((aligned(64))) __stats_io_t{
    6867                        struct {
     68                                volatile uint64_t fast;
     69                                volatile uint64_t slow;
     70                                volatile uint64_t fail;
     71                                volatile uint64_t revoke;
     72                                volatile uint64_t block;
     73                        } alloc;
     74                        struct {
     75                                volatile uint64_t fast;
     76                                volatile uint64_t slow;
     77                        } submit;
     78                        struct {
     79                                volatile uint64_t external;
     80                        } flush;
     81                        struct {
     82                                volatile uint64_t drain;
     83                                volatile uint64_t completed;
     84                                volatile uint64_t flush;
     85                                volatile uint64_t submitted;
    6986                                struct {
    70                                         volatile uint64_t rdy;
    71                                         volatile uint64_t csm;
    72                                         volatile uint64_t avl;
    73                                         volatile uint64_t cnt;
    74                                 } submit_avg;
    75                                 struct {
    76                                         volatile uint64_t val;
    77                                         volatile uint64_t cnt;
    78                                         volatile uint64_t block;
    79                                 } look_avg;
    80                                 struct {
    81                                         volatile uint64_t val;
    82                                         volatile uint64_t cnt;
    83                                         volatile uint64_t block;
    84                                 } alloc_avg;
    85                                 volatile uint64_t helped;
    86                                 volatile uint64_t leader;
    87                                 volatile uint64_t busy;
    88                         } submit_q;
     87                                        volatile uint64_t busy;
     88                                } errors;
     89                        } calls;
    8990                        struct {
    90                                 struct {
    91                                         volatile uint64_t val;
    92                                         volatile uint64_t cnt;
    93                                 } completed_avg;
    94                                 volatile uint64_t blocks;
    95                         } complete_q;
     91                                volatile uint64_t sleeps;
     92                        } poller;
    9693                };
    9794        #endif
Note: See TracChangeset for help on using the changeset viewer.