summaryrefslogtreecommitdiffstats
path: root/src/vnet/session
ModeNameSize
-rw-r--r--FEATURE.yaml1526logstatsplain
-rw-r--r--application.c46517logstatsplain
-rw-r--r--application.h11097logstatsplain
-rw-r--r--application_interface.c4928logstatsplain
-rw-r--r--application_interface.h19801logstatsplain
-rw-r--r--application_local.c16173logstatsplain
-rw-r--r--application_local.h1474logstatsplain
-rw-r--r--application_namespace.c8207logstatsplain
-rw-r--r--application_namespace.h2570logstatsplain
-rw-r--r--application_worker.c19342logstatsplain
-rw-r--r--mma_16.h984logstatsplain
-rw-r--r--mma_40.h985logstatsplain
-rw-r--r--mma_template.c7000logstatsplain
-rw-r--r--mma_template.h2505logstatsplain
-rw-r--r--segment_manager.c27549logstatsplain
-rw-r--r--segment_manager.h5662logstatsplain
-rw-r--r--session.api10267logstatsplain
-rw-r--r--session.c51330logstatsplain
-rw-r--r--session.h19938logstatsplain
-rw-r--r--session_api.c34471logstatsplain
-rw-r--r--session_cli.c22544logstatsplain
-rw-r--r--session_debug.h6141logstatsplain
-rw-r--r--session_lookup.c48260logstatsplain
-rw-r--r--session_lookup.h5202logstatsplain
-rw-r--r--session_node.c47537logstatsplain
-rw-r--r--session_rules_table.c19328logstatsplain
-rw-r--r--session_rules_table.h3397logstatsplain
-rw-r--r--session_table.c4917logstatsplain
-rw-r--r--session_table.h2601logstatsplain
-rw-r--r--session_types.h12461logstatsplain
-rw-r--r--transport.c20196logstatsplain
-rw-r--r--transport.h10086logstatsplain
-rw-r--r--transport_types.h7425logstatsplain
="p">(tm->trace_buffer_pool[b->trace_index], h, 1 + n_data_words, sizeof (h[0])); h->time = vm->cpu_time_last_node_dispatch; h->n_data = n_data_words; h->node_index = r->node_index; return h->data; } always_inline vlib_trace_header_t * vlib_trace_header_next (vlib_trace_header_t * h) { return h + 1 + h->n_data; } always_inline void vlib_free_trace (vlib_main_t * vm, vlib_buffer_t * b) { vlib_trace_main_t *tm = &vm->trace_main; vlib_validate_trace (tm, b); _vec_len (tm->trace_buffer_pool[b->trace_index]) = 0; pool_put_index (tm->trace_buffer_pool, b->trace_index); } always_inline void vlib_trace_next_frame (vlib_main_t * vm, vlib_node_runtime_t * r, u32 next_index) { vlib_next_frame_t *nf; nf = vlib_node_runtime_get_next_frame (vm, r, next_index); nf->flags |= VLIB_FRAME_TRACE; } void trace_apply_filter (vlib_main_t * vm); /* Mark buffer as traced and allocate trace buffer. */ always_inline void vlib_trace_buffer (vlib_main_t * vm, vlib_node_runtime_t * r, u32 next_index, vlib_buffer_t * b, int follow_chain) { vlib_trace_main_t *tm = &vm->trace_main; vlib_trace_header_t **h; /* * Apply filter to existing traces to keep number of allocated traces low. * Performed each time around the main loop. */ if (tm->last_main_loop_count != vm->main_loop_count) { tm->last_main_loop_count = vm->main_loop_count; trace_apply_filter (vm); } vlib_trace_next_frame (vm, r, next_index); pool_get (tm->trace_buffer_pool, h); do { b->flags |= VLIB_BUFFER_IS_TRACED; b->trace_index = h - tm->trace_buffer_pool; } while (follow_chain && (b = vlib_get_next_buffer (vm, b))); } always_inline void vlib_buffer_copy_trace_flag (vlib_main_t * vm, vlib_buffer_t * b, u32 bi_target) { vlib_buffer_t *b_target = vlib_get_buffer (vm, bi_target); b_target->flags |= b->flags & VLIB_BUFFER_IS_TRACED; b_target->trace_index = b->trace_index; } always_inline u32 vlib_get_trace_count (vlib_main_t * vm, vlib_node_runtime_t * rt) { vlib_trace_main_t *tm = &vm->trace_main; vlib_trace_node_t *tn; int n; if (rt->node_index >= vec_len (tm->nodes)) return 0; tn = tm->nodes + rt->node_index; n = tn->limit - tn->count; ASSERT (n >= 0); return n; } always_inline void vlib_set_trace_count (vlib_main_t * vm, vlib_node_runtime_t * rt, u32 count) { vlib_trace_main_t *tm = &vm->trace_main; vlib_trace_node_t *tn = vec_elt_at_index (tm->nodes, rt->node_index); ASSERT (count <= tn->limit); tn->count = tn->limit - count; } /* Helper function for nodes which only trace buffer data. */ void vlib_trace_frame_buffers_only (vlib_main_t * vm, vlib_node_runtime_t * node, u32 * buffers, uword n_buffers, uword next_buffer_stride, uword n_buffer_data_bytes_in_trace); #endif /* included_vlib_trace_funcs_h */ /* * fd.io coding-style-patch-verification: ON * * Local Variables: * eval: (c-set-style "gnu") * End: */