Changeset 8e4aa05 for libcfa/src/concurrency/stats.hfa
- Timestamp:
- Mar 4, 2021, 7:40:25 PM (5 years ago)
- 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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/stats.hfa
r342af53 r8e4aa05 2 2 3 3 #include <stdint.h> 4 5 enum { 6 CFA_STATS_READY_Q = 0x01, 7 CFA_STATS_IO = 0x02, 8 }; 4 9 5 10 #if defined(__CFA_NO_STATISTICS__) … … 9 14 static inline void __print_stats( struct __stats_t *, int, const char *, const char *, void * ) {} 10 15 #else 11 enum {12 CFA_STATS_READY_Q = 0x01,13 #if defined(CFA_HAVE_LINUX_IO_URING_H)14 CFA_STATS_IO = 0x02,15 #endif16 };17 16 18 17 struct __attribute__((aligned(64))) __stats_readQ_t { … … 67 66 struct __attribute__((aligned(64))) __stats_io_t{ 68 67 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; 69 86 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; 89 90 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; 96 93 }; 97 94 #endif
Note:
See TracChangeset
for help on using the changeset viewer.