id: 1 unit: int main() file: ncrx/ncrx.c start line: 29 end line: 161 size: 108 LOC McCabe index: 28 number of parameters: 2 id: 2 unit: int main() file: ncrx/nctx.c start line: 409 end line: 496 size: 75 LOC McCabe index: 16 number of parameters: 2 id: 3 unit: static int parse_packet() file: ncrx/libncrx.c start line: 195 end line: 278 size: 75 LOC McCabe index: 23 number of parameters: 2 id: 4 unit: static void parse_arguments() file: main.c start line: 20 end line: 96 size: 65 LOC McCabe index: 17 number of parameters: 3 id: 5 unit: static void send_kmsg() file: ncrx/nctx.c start line: 203 end line: 279 size: 57 LOC McCabe index: 13 number of parameters: 5 id: 6 unit: static void parse_arguments() file: util/netconsblaster.c start line: 320 end line: 399 size: 56 LOC McCabe index: 12 number of parameters: 3 id: 7 unit: int ncrx_process() file: ncrx/libncrx.c start line: 618 end line: 696 size: 50 LOC McCabe index: 17 number of parameters: 4 id: 8 unit: static int kmsg_ring_process_resps() file: ncrx/nctx.c start line: 282 end line: 342 size: 48 LOC McCabe index: 9 number of parameters: 2 id: 9 unit: static int queue_oos_msg() file: ncrx/libncrx.c start line: 468 end line: 529 size: 42 LOC McCabe index: 9 number of parameters: 2 id: 10 unit: static int ncrx_queue_payload() file: ncrx/libncrx.c start line: 532 end line: 582 size: 41 LOC McCabe index: 13 number of parameters: 3 id: 11 unit: static void() file: output.c start line: 25 end line: 73 size: 41 LOC McCabe index: 6 number of parameters: 1 id: 12 unit: int main() file: util/netconsblaster.c start line: 406 end line: 457 size: 40 LOC McCabe index: 6 number of parameters: 2 id: 13 unit: static int kmsg_ring_emg_tx() file: ncrx/nctx.c start line: 349 end line: 399 size: 37 LOC McCabe index: 10 number of parameters: 2 id: 14 unit: static int kmsg_ring_fill() file: ncrx/nctx.c start line: 99 end line: 143 size: 32 LOC McCabe index: 9 number of parameters: 2 id: 15 unit: static void hdelete() file: worker.c start line: 279 end line: 323 size: 29 LOC McCabe index: 5 number of parameters: 2 id: 16 unit: int main() file: main.c start line: 134 end line: 166 size: 28 LOC McCabe index: 1 number of parameters: 2 id: 17 unit: static void create_listener_threads() file: threads.c start line: 169 end line: 200 size: 26 LOC McCabe index: 5 number of parameters: 2 id: 18 unit: static void create_worker_threads() file: threads.c start line: 137 end line: 167 size: 25 LOC McCabe index: 5 number of parameters: 2 id: 19 unit: static void schedule_ncrx_callback() file: worker.c start line: 365 end line: 408 size: 23 LOC McCabe index: 5 number of parameters: 3 id: 20 unit: static void make_packet() file: util/netconsblaster.c start line: 175 end line: 201 size: 23 LOC McCabe index: 2 number of parameters: 4 id: 21 unit: static inline __attribute__() file: include/jhash.h start line: 85 end line: 114 size: 23 LOC McCabe index: 6 number of parameters: 1 id: 22 unit: static void stop_and_wait_for_workers() file: threads.c start line: 87 end line: 113 size: 23 LOC McCabe index: 2 number of parameters: 1 id: 23 unit: static void ncrx_build_resp() file: ncrx/libncrx.c start line: 588 end line: 616 size: 22 LOC McCabe index: 5 number of parameters: 2 id: 24 unit: static void consume_msgbuf() file: worker.c start line: 479 end line: 502 size: 20 LOC McCabe index: 3 number of parameters: 2 id: 25 unit: static void reinit_mmsghdr_vec() file: listener.c start line: 70 end line: 93 size: 19 LOC McCabe index: 3 number of parameters: 3 id: 26 unit: void destroy_output_modules() file: output.c start line: 75 end line: 96 size: 19 LOC McCabe index: 5 number of parameters: 1 id: 27 unit: static void kmsg_ring_consume() file: ncrx/nctx.c start line: 172 end line: 196 size: 18 LOC McCabe index: 5 number of parameters: 2 id: 28 unit: static int ones_complement_sum() file: util/netconsblaster.c start line: 49 end line: 74 size: 18 LOC McCabe index: 5 number of parameters: 3 id: 29 unit: static void make_room() file: ncrx/libncrx.c start line: 352 end line: 378 size: 17 LOC McCabe index: 3 number of parameters: 2 id: 30 unit: static void try_to_garbage_collect() file: worker.c start line: 330 end line: 349 size: 17 LOC McCabe index: 4 number of parameters: 1 id: 31 unit: static void stop_and_wait_for_listeners() file: threads.c start line: 115 end line: 135 size: 17 LOC McCabe index: 2 number of parameters: 1 id: 32 unit: void netconsd_output_handler() file: modules/printer.c start line: 32 end line: 48 size: 16 LOC McCabe index: 6 number of parameters: 4 id: 33 unit: static void push_prequeue_to_worker() file: threads.c start line: 40 end line: 60 size: 16 LOC McCabe index: 2 number of parameters: 2 id: 34 unit: static void write_log() file: modules/logger.cc start line: 124 end line: 138 size: 15 LOC McCabe index: 6 number of parameters: 3 id: 35 unit: static void do_ncrx_callbacks() file: worker.c start line: 432 end line: 452 size: 14 LOC McCabe index: 2 number of parameters: 2 id: 36 unit: static int get_listen_socket() file: listener.c start line: 120 end line: 137 size: 14 LOC McCabe index: 4 number of parameters: 1 id: 37 unit: static void retire_tail() file: ncrx/libncrx.c start line: 330 end line: 349 size: 13 LOC McCabe index: 2 number of parameters: 1 id: 38 unit: uint64_t ncrx_invoke_process_at() file: ncrx/libncrx.c start line: 730 end line: 753 size: 13 LOC McCabe index: 6 number of parameters: 1 id: 39 unit: void ncrx_destroy() file: ncrx/libncrx.c start line: 797 end line: 813 size: 13 LOC McCabe index: 4 number of parameters: 1 id: 40 unit: static int udp_csum() file: util/netconsblaster.c start line: 92 end line: 112 size: 13 LOC McCabe index: 2 number of parameters: 3 id: 41 unit: static void prequeue_msgbuf() file: listener.c start line: 53 end line: 68 size: 13 LOC McCabe index: 2 number of parameters: 2 id: 42 unit: static void kmsg_ring_advance() file: ncrx/nctx.c start line: 83 end line: 96 size: 12 LOC McCabe index: 2 number of parameters: 1 id: 43 unit: def parse_args() file: ncrx/netcons-gen.py start line: 0 end line: 0 size: 12 LOC McCabe index: 1 number of parameters: 0 id: 44 unit: static void init_sighandlers() file: main.c start line: 120 end line: 132 size: 12 LOC McCabe index: 1 number of parameters: 1 id: 45 unit: static void terminate_msg_and_dict() file: ncrx/libncrx.c start line: 708 end line: 718 size: 11 LOC McCabe index: 2 number of parameters: 1 id: 46 unit: static void maybe_garbage_collect() file: worker.c start line: 351 end line: 363 size: 11 LOC McCabe index: 3 number of parameters: 1 id: 47 unit: static void drain_bucket_ncrx() file: worker.c start line: 414 end line: 426 size: 11 LOC McCabe index: 2 number of parameters: 2 id: 48 unit: static uint64_t run_ncrx_callbacks() file: worker.c start line: 458 end line: 477 size: 11 LOC McCabe index: 3 number of parameters: 2 id: 49 unit: static void handle_listen_error() file: listener.c start line: 24 end line: 39 size: 11 LOC McCabe index: 3 number of parameters: 1 id: 50 unit: static int seq_delta_idx() file: ncrx/libncrx.c start line: 300 end line: 310 size: 10 LOC McCabe index: 3 number of parameters: 2 id: 51 unit: static void free_mmsghdr_vec() file: listener.c start line: 107 end line: 118 size: 10 LOC McCabe index: 2 number of parameters: 2 id: 52 unit: static uint64_t current_msec() file: ncrx/nctx.c start line: 59 end line: 68 size: 9 LOC McCabe index: 2 number of parameters: 1 id: 53 unit: static int kmsg_ring_init() file: ncrx/nctx.c start line: 70 end line: 80 size: 9 LOC McCabe index: 2 number of parameters: 2 id: 54 unit: static void list_append() file: ncrx/libncrx.c start line: 146 end line: 156 size: 9 LOC McCabe index: 2 number of parameters: 2 id: 55 unit: static void timerlist_append() file: worker.c start line: 156 end line: 166 size: 9 LOC McCabe index: 1 number of parameters: 2 id: 56 unit: static int write_packet() file: util/netconsblaster.c start line: 203 end line: 212 size: 9 LOC McCabe index: 1 number of parameters: 2 id: 57 unit: static uint64_t kmsg_ring_tail_seq() file: ncrx/nctx.c start line: 146 end line: 154 size: 8 LOC McCabe index: 2 number of parameters: 1 id: 58 unit: static void list_del() file: ncrx/libncrx.c start line: 136 end line: 144 size: 8 LOC McCabe index: 1 number of parameters: 1 id: 59 unit: static void msg_list_del() file: ncrx/libncrx.c start line: 158 end line: 166 size: 8 LOC McCabe index: 3 number of parameters: 2 id: 60 unit: static void maybe_update_wake() file: worker.c start line: 117 end line: 125 size: 8 LOC McCabe index: 3 number of parameters: 2 id: 61 unit: static void timerlist_del() file: worker.c start line: 168 end line: 176 size: 8 LOC McCabe index: 1 number of parameters: 1 id: 62 unit: static void destroy_hashtable() file: worker.c start line: 253 end line: 262 size: 8 LOC McCabe index: 3 number of parameters: 1 id: 63 unit: static void maybe_resize_hashtable() file: worker.c start line: 264 end line: 277 size: 8 LOC McCabe index: 2 number of parameters: 2 id: 64 unit: static int get_raw_socket() file: util/netconsblaster.c start line: 214 end line: 223 size: 8 LOC McCabe index: 2 number of parameters: 1 id: 65 unit: static uint64_t mask_long() file: util/netconsblaster.c start line: 247 end line: 256 size: 8 LOC McCabe index: 1 number of parameters: 2 id: 66 unit: static uint64_t permute_addr() file: util/netconsblaster.c start line: 258 end line: 266 size: 8 LOC McCabe index: 1 number of parameters: 3 id: 67 unit: static inline uint64_t now_ms() file: include/common.h start line: 52 end line: 61 size: 8 LOC McCabe index: 1 number of parameters: 1 id: 68 unit: static void enqueue_and_wake_worker() file: threads.c start line: 62 end line: 70 size: 8 LOC McCabe index: 1 number of parameters: 2 id: 69 unit: static void usage_err() file: ncrx/nctx.c start line: 401 end line: 407 size: 7 LOC McCabe index: 2 number of parameters: 1 id: 70 unit: def make_netcons_msg() file: ncrx/netcons-gen.py start line: 0 end line: 0 size: 7 LOC McCabe index: 1 number of parameters: 0 id: 71 unit: static unsigned int hweight32() file: ncrx/libncrx.c start line: 117 end line: 123 size: 7 LOC McCabe index: 1 number of parameters: 1 id: 72 unit: static void slot_maybe_complete() file: ncrx/libncrx.c start line: 319 end line: 327 size: 7 LOC McCabe index: 4 number of parameters: 1 id: 73 unit: static void init_sigset() file: main.c start line: 112 end line: 118 size: 7 LOC McCabe index: 1 number of parameters: 1 id: 74 unit: void execute_output_pipeline() file: output.c start line: 98 end line: 105 size: 7 LOC McCabe index: 2 number of parameters: 4 id: 75 unit: static void wake_thread() file: threads.c start line: 30 end line: 38 size: 7 LOC McCabe index: 1 number of parameters: 2 id: 76 unit: void enqueue_and_wake_all() file: threads.c start line: 78 end line: 85 size: 7 LOC McCabe index: 3 number of parameters: 1 id: 77 unit: static void timerlist_init() file: worker.c start line: 144 end line: 149 size: 6 LOC McCabe index: 1 number of parameters: 1 id: 78 unit: static uint64_t timerlist_peek() file: worker.c start line: 181 end line: 187 size: 6 LOC McCabe index: 2 number of parameters: 1 id: 79 unit: static uint64_t rand64() file: util/netconsblaster.c start line: 34 end line: 39 size: 6 LOC McCabe index: 1 number of parameters: 1 id: 80 unit: static uint64_t now_epoch_ms() file: util/netconsblaster.c start line: 41 end line: 47 size: 6 LOC McCabe index: 1 number of parameters: 1 id: 81 unit: void destroy_threads() file: threads.c start line: 202 end line: 207 size: 6 LOC McCabe index: 1 number of parameters: 1 id: 82 unit: static void init_list() file: ncrx/libncrx.c start line: 125 end line: 129 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 83 unit: static void msg_list_append() file: ncrx/libncrx.c start line: 168 end line: 172 size: 5 LOC McCabe index: 1 number of parameters: 2 id: 84 unit: static int slot_dist() file: ncrx/libncrx.c start line: 281 end line: 285 size: 5 LOC McCabe index: 2 number of parameters: 2 id: 85 unit: static unsigned long hash_srcaddr() file: worker.c start line: 55 end line: 60 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 86 unit: static void bump_metadata() file: util/netconsblaster.c start line: 138 end line: 142 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 87 unit: static unsigned long hash_srcaddr() file: listener.c start line: 46 end line: 51 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 88 unit: int netconsd_output_init() file: modules/printer.c start line: 18 end line: 22 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 89 unit: std::size_t operator() file: modules/logger.cc start line: 44 end line: 48 size: 5 LOC McCabe index: 1 number of parameters: 0 id: 90 unit: static int prequeue_is_empty() file: threads.c start line: 72 end line: 76 size: 5 LOC McCabe index: 1 number of parameters: 2 id: 91 unit: def make_ext_header() file: ncrx/netcons-gen.py start line: 0 end line: 0 size: 4 LOC McCabe index: 2 number of parameters: 4 id: 92 unit: static int list_empty() file: ncrx/libncrx.c start line: 131 end line: 134 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 93 unit: static int nr_queued() file: ncrx/libncrx.c start line: 288 end line: 291 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 94 unit: static uint64_t tail_seq() file: ncrx/libncrx.c start line: 294 end line: 297 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 95 unit: static int slot_is_free() file: ncrx/libncrx.c start line: 313 end line: 316 size: 4 LOC McCabe index: 2 number of parameters: 1 id: 96 unit: static unsigned long order_mask() file: worker.c start line: 62 end line: 65 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 97 unit: static unsigned long htable_mask() file: worker.c start line: 67 end line: 70 size: 4 LOC McCabe index: 1 number of parameters: 2 id: 98 unit: static unsigned long htable_hash() file: worker.c start line: 72 end line: 75 size: 4 LOC McCabe index: 1 number of parameters: 2 id: 99 unit: static int srcaddr_compar() file: worker.c start line: 77 end line: 80 size: 4 LOC McCabe index: 1 number of parameters: 2 id: 100 unit: static void reset_waketime() file: worker.c start line: 100 end line: 103 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 101 unit: static uint64_t ms_from_timespec() file: worker.c start line: 105 end line: 108 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 102 unit: static int timerlist_empty() file: worker.c start line: 151 end line: 154 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 103 unit: static void destroy_timerlists() file: worker.c start line: 208 end line: 211 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 104 unit: static void stop_signal() file: util/netconsblaster.c start line: 401 end line: 404 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 105 unit: static inline uint64_t now_mono_ms() file: include/common.h start line: 63 end line: 66 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 106 unit: static inline uint64_t now_real_ms() file: include/common.h start line: 68 end line: 71 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 107 unit: static inline uint32_t rol32() file: include/jhash.h start line: 38 end line: 41 size: 4 LOC McCabe index: 1 number of parameters: 2 id: 108 unit: static void interrupter_handler() file: main.c start line: 104 end line: 107 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 109 unit: void netconsd_output_exit() file: modules/printer.c start line: 24 end line: 27 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 110 unit: def make_dictionary_string() file: ncrx/netcons-gen.py start line: 0 end line: 0 size: 2 LOC McCabe index: 2 number of parameters: 1 id: 111 unit: def _body_escape() file: ncrx/netcons-gen.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 1 id: 112 unit: def make_ext_body() file: ncrx/netcons-gen.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 2