Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Orangef: remove overlooked old-style userspace debug parts

Signed-off-by: Mike Marshall <hubcap@omnibond.com>

+1 -201
+1 -201
fs/orangefs/orangefs-debug.h
··· 18 18 #include <stdint.h> 19 19 #endif 20 20 21 - #define GOSSIP_NO_DEBUG (__u64)0 22 - #define GOSSIP_BMI_DEBUG_TCP ((__u64)1 << 0) 23 - #define GOSSIP_BMI_DEBUG_CONTROL ((__u64)1 << 1) 24 - #define GOSSIP_BMI_DEBUG_OFFSETS ((__u64)1 << 2) 25 - #define GOSSIP_BMI_DEBUG_GM ((__u64)1 << 3) 26 - #define GOSSIP_JOB_DEBUG ((__u64)1 << 4) 27 - #define GOSSIP_SERVER_DEBUG ((__u64)1 << 5) 28 - #define GOSSIP_STO_DEBUG_CTRL ((__u64)1 << 6) 29 - #define GOSSIP_STO_DEBUG_DEFAULT ((__u64)1 << 7) 30 - #define GOSSIP_FLOW_DEBUG ((__u64)1 << 8) 31 - #define GOSSIP_BMI_DEBUG_GM_MEM ((__u64)1 << 9) 32 - #define GOSSIP_REQUEST_DEBUG ((__u64)1 << 10) 33 - #define GOSSIP_FLOW_PROTO_DEBUG ((__u64)1 << 11) 34 - #define GOSSIP_NCACHE_DEBUG ((__u64)1 << 12) 35 - #define GOSSIP_CLIENT_DEBUG ((__u64)1 << 13) 36 - #define GOSSIP_REQ_SCHED_DEBUG ((__u64)1 << 14) 37 - #define GOSSIP_ACACHE_DEBUG ((__u64)1 << 15) 38 - #define GOSSIP_TROVE_DEBUG ((__u64)1 << 16) 39 - #define GOSSIP_TROVE_OP_DEBUG ((__u64)1 << 17) 40 - #define GOSSIP_DIST_DEBUG ((__u64)1 << 18) 41 - #define GOSSIP_BMI_DEBUG_IB ((__u64)1 << 19) 42 - #define GOSSIP_DBPF_ATTRCACHE_DEBUG ((__u64)1 << 20) 43 - #define GOSSIP_MMAP_RCACHE_DEBUG ((__u64)1 << 21) 44 - #define GOSSIP_LOOKUP_DEBUG ((__u64)1 << 22) 45 - #define GOSSIP_REMOVE_DEBUG ((__u64)1 << 23) 46 - #define GOSSIP_GETATTR_DEBUG ((__u64)1 << 24) 47 - #define GOSSIP_READDIR_DEBUG ((__u64)1 << 25) 48 - #define GOSSIP_IO_DEBUG ((__u64)1 << 26) 49 - #define GOSSIP_DBPF_OPEN_CACHE_DEBUG ((__u64)1 << 27) 50 - #define GOSSIP_PERMISSIONS_DEBUG ((__u64)1 << 28) 51 - #define GOSSIP_CANCEL_DEBUG ((__u64)1 << 29) 52 - #define GOSSIP_MSGPAIR_DEBUG ((__u64)1 << 30) 53 - #define GOSSIP_CLIENTCORE_DEBUG ((__u64)1 << 31) 54 - #define GOSSIP_CLIENTCORE_TIMING_DEBUG ((__u64)1 << 32) 55 - #define GOSSIP_SETATTR_DEBUG ((__u64)1 << 33) 56 - #define GOSSIP_MKDIR_DEBUG ((__u64)1 << 34) 57 - #define GOSSIP_VARSTRIP_DEBUG ((__u64)1 << 35) 58 - #define GOSSIP_GETEATTR_DEBUG ((__u64)1 << 36) 59 - #define GOSSIP_SETEATTR_DEBUG ((__u64)1 << 37) 60 - #define GOSSIP_ENDECODE_DEBUG ((__u64)1 << 38) 61 - #define GOSSIP_DELEATTR_DEBUG ((__u64)1 << 39) 62 - #define GOSSIP_ACCESS_DEBUG ((__u64)1 << 40) 63 - #define GOSSIP_ACCESS_DETAIL_DEBUG ((__u64)1 << 41) 64 - #define GOSSIP_LISTEATTR_DEBUG ((__u64)1 << 42) 65 - #define GOSSIP_PERFCOUNTER_DEBUG ((__u64)1 << 43) 66 - #define GOSSIP_STATE_MACHINE_DEBUG ((__u64)1 << 44) 67 - #define GOSSIP_DBPF_KEYVAL_DEBUG ((__u64)1 << 45) 68 - #define GOSSIP_LISTATTR_DEBUG ((__u64)1 << 46) 69 - #define GOSSIP_DBPF_COALESCE_DEBUG ((__u64)1 << 47) 70 - #define GOSSIP_ACCESS_HOSTNAMES ((__u64)1 << 48) 71 - #define GOSSIP_FSCK_DEBUG ((__u64)1 << 49) 72 - #define GOSSIP_BMI_DEBUG_MX ((__u64)1 << 50) 73 - #define GOSSIP_BSTREAM_DEBUG ((__u64)1 << 51) 74 - #define GOSSIP_BMI_DEBUG_PORTALS ((__u64)1 << 52) 75 - #define GOSSIP_USER_DEV_DEBUG ((__u64)1 << 53) 76 - #define GOSSIP_DIRECTIO_DEBUG ((__u64)1 << 54) 77 - #define GOSSIP_MGMT_DEBUG ((__u64)1 << 55) 78 - #define GOSSIP_MIRROR_DEBUG ((__u64)1 << 56) 79 - #define GOSSIP_WIN_CLIENT_DEBUG ((__u64)1 << 57) 80 - #define GOSSIP_SECURITY_DEBUG ((__u64)1 << 58) 81 - #define GOSSIP_USRINT_DEBUG ((__u64)1 << 59) 82 - #define GOSSIP_RCACHE_DEBUG ((__u64)1 << 60) 83 - #define GOSSIP_SECCACHE_DEBUG ((__u64)1 << 61) 84 - 85 - #define GOSSIP_BMI_DEBUG_ALL ((__u64) (GOSSIP_BMI_DEBUG_TCP + \ 86 - GOSSIP_BMI_DEBUG_CONTROL + \ 87 - GOSSIP_BMI_DEBUG_GM + \ 88 - GOSSIP_BMI_DEBUG_OFFSETS + \ 89 - GOSSIP_BMI_DEBUG_IB + \ 90 - GOSSIP_BMI_DEBUG_MX + \ 91 - GOSSIP_BMI_DEBUG_PORTALS)) 92 - 93 - const char *ORANGEFS_debug_get_next_debug_keyword(int position); 21 + #define GOSSIP_NO_DEBUG (__u64)0 94 22 95 23 #define GOSSIP_SUPER_DEBUG ((__u64)1 << 0) 96 24 #define GOSSIP_INODE_DEBUG ((__u64)1 << 1) ··· 51 123 const char *keyword; 52 124 __u64 mask_val; 53 125 }; 54 - 55 - #define __DEBUG_ALL ((__u64) -1) 56 - 57 - /* map all config keywords to pvfs2 debug masks here */ 58 - static struct __keyword_mask_s s_keyword_mask_map[] = { 59 - /* Log trove debugging info. Same as 'trove'. */ 60 - {"storage", GOSSIP_TROVE_DEBUG}, 61 - /* Log trove debugging info. Same as 'storage'. */ 62 - {"trove", GOSSIP_TROVE_DEBUG}, 63 - /* Log trove operations. */ 64 - {"trove_op", GOSSIP_TROVE_OP_DEBUG}, 65 - /* Log network debug info. */ 66 - {"network", GOSSIP_BMI_DEBUG_ALL}, 67 - /* Log server info, including new operations. */ 68 - {"server", GOSSIP_SERVER_DEBUG}, 69 - /* Log client sysint info. This is only useful for the client. */ 70 - {"client", GOSSIP_CLIENT_DEBUG}, 71 - /* Debug the varstrip distribution */ 72 - {"varstrip", GOSSIP_VARSTRIP_DEBUG}, 73 - /* Log job info */ 74 - {"job", GOSSIP_JOB_DEBUG}, 75 - /* Debug PINT_process_request calls. EXTREMELY verbose! */ 76 - {"request", GOSSIP_REQUEST_DEBUG}, 77 - /* Log request scheduler events */ 78 - {"reqsched", GOSSIP_REQ_SCHED_DEBUG}, 79 - /* Log the flow protocol events, including flowproto_multiqueue */ 80 - {"flowproto", GOSSIP_FLOW_PROTO_DEBUG}, 81 - /* Log flow calls */ 82 - {"flow", GOSSIP_FLOW_DEBUG}, 83 - /* Debug the client name cache. Only useful on the client. */ 84 - {"ncache", GOSSIP_NCACHE_DEBUG}, 85 - /* Debug read-ahead cache events. Only useful on the client. */ 86 - {"mmaprcache", GOSSIP_MMAP_RCACHE_DEBUG}, 87 - /* Debug the attribute cache. Only useful on the client. */ 88 - {"acache", GOSSIP_ACACHE_DEBUG}, 89 - /* Log/Debug distribution calls */ 90 - {"distribution", GOSSIP_DIST_DEBUG}, 91 - /* Debug the server-side dbpf attribute cache */ 92 - {"dbpfattrcache", GOSSIP_DBPF_ATTRCACHE_DEBUG}, 93 - /* Debug the client lookup state machine. */ 94 - {"lookup", GOSSIP_LOOKUP_DEBUG}, 95 - /* Debug the client remove state macine. */ 96 - {"remove", GOSSIP_REMOVE_DEBUG}, 97 - /* Debug the server getattr state machine. */ 98 - {"getattr", GOSSIP_GETATTR_DEBUG}, 99 - /* Debug the server setattr state machine. */ 100 - {"setattr", GOSSIP_SETATTR_DEBUG}, 101 - /* vectored getattr server state machine */ 102 - {"listattr", GOSSIP_LISTATTR_DEBUG}, 103 - /* Debug the client and server get ext attributes SM. */ 104 - {"geteattr", GOSSIP_GETEATTR_DEBUG}, 105 - /* Debug the client and server set ext attributes SM. */ 106 - {"seteattr", GOSSIP_SETEATTR_DEBUG}, 107 - /* Debug the readdir operation (client and server) */ 108 - {"readdir", GOSSIP_READDIR_DEBUG}, 109 - /* Debug the mkdir operation (server only) */ 110 - {"mkdir", GOSSIP_MKDIR_DEBUG}, 111 - /* 112 - * Debug the io operation (reads and writes) 113 - * for both the client and server. 114 - */ 115 - {"io", GOSSIP_IO_DEBUG}, 116 - /* Debug the server's open file descriptor cache */ 117 - {"open_cache", GOSSIP_DBPF_OPEN_CACHE_DEBUG}, 118 - /* Debug permissions checking on the server */ 119 - {"permissions", GOSSIP_PERMISSIONS_DEBUG}, 120 - /* Debug the cancel operation */ 121 - {"cancel", GOSSIP_CANCEL_DEBUG}, 122 - /* Debug the msgpair state machine */ 123 - {"msgpair", GOSSIP_MSGPAIR_DEBUG}, 124 - /* Debug the client core app */ 125 - {"clientcore", GOSSIP_CLIENTCORE_DEBUG}, 126 - /* Debug the client timing state machines (job timeout, etc.) */ 127 - {"clientcore_timing", GOSSIP_CLIENTCORE_TIMING_DEBUG}, 128 - /* network encoding */ 129 - {"endecode", GOSSIP_ENDECODE_DEBUG}, 130 - /* Show server file (metadata) accesses (both modify and read-only). */ 131 - {"access", GOSSIP_ACCESS_DEBUG}, 132 - /* Show more detailed server file accesses */ 133 - {"access_detail", GOSSIP_ACCESS_DETAIL_DEBUG}, 134 - /* Debug the listeattr operation */ 135 - {"listeattr", GOSSIP_LISTEATTR_DEBUG}, 136 - /* Debug the state machine management code */ 137 - {"sm", GOSSIP_STATE_MACHINE_DEBUG}, 138 - /* Debug the metadata dbpf keyval functions */ 139 - {"keyval", GOSSIP_DBPF_KEYVAL_DEBUG}, 140 - /* Debug the metadata sync coalescing code */ 141 - {"coalesce", GOSSIP_DBPF_COALESCE_DEBUG}, 142 - /* Display the hostnames instead of IP addrs in debug output */ 143 - {"access_hostnames", GOSSIP_ACCESS_HOSTNAMES}, 144 - /* Show the client device events */ 145 - {"user_dev", GOSSIP_USER_DEV_DEBUG}, 146 - /* Debug the fsck tool */ 147 - {"fsck", GOSSIP_FSCK_DEBUG}, 148 - /* Debug the bstream code */ 149 - {"bstream", GOSSIP_BSTREAM_DEBUG}, 150 - /* Debug trove in direct io mode */ 151 - {"directio", GOSSIP_DIRECTIO_DEBUG}, 152 - /* Debug direct io thread management */ 153 - {"mgmt", GOSSIP_MGMT_DEBUG}, 154 - /* Debug mirroring process */ 155 - {"mirror", GOSSIP_MIRROR_DEBUG}, 156 - /* Windows client */ 157 - {"win_client", GOSSIP_WIN_CLIENT_DEBUG}, 158 - /* Debug robust security code */ 159 - {"security", GOSSIP_SECURITY_DEBUG}, 160 - /* Capability Cache */ 161 - {"seccache", GOSSIP_SECCACHE_DEBUG}, 162 - /* Client User Interface */ 163 - {"usrint", GOSSIP_USRINT_DEBUG}, 164 - /* rcache */ 165 - {"rcache", GOSSIP_RCACHE_DEBUG}, 166 - /* Everything except the periodic events. Useful for debugging */ 167 - {"verbose", 168 - (__DEBUG_ALL & 169 - ~(GOSSIP_PERFCOUNTER_DEBUG | GOSSIP_STATE_MACHINE_DEBUG | 170 - GOSSIP_ENDECODE_DEBUG | GOSSIP_USER_DEV_DEBUG)) 171 - }, 172 - /* No debug output */ 173 - {"none", GOSSIP_NO_DEBUG}, 174 - /* Everything */ 175 - {"all", __DEBUG_ALL} 176 - }; 177 - 178 - #undef __DEBUG_ALL 179 126 180 127 /* 181 128 * Map all kmod keywords to kmod debug masks here. Keep this ··· 88 285 89 286 static const int num_kmod_keyword_mask_map = (int) 90 287 (sizeof(s_kmod_keyword_mask_map) / sizeof(struct __keyword_mask_s)); 91 - 92 - static const int num_keyword_mask_map = (int) 93 - (sizeof(s_keyword_mask_map) / sizeof(struct __keyword_mask_s)); 94 288 95 289 #endif /* __ORANGEFS_DEBUG_H */