MCPcopy Create free account
hub / github.com/F-Stack/f-stack / trace_uuid_generate

Function trace_uuid_generate

dpdk/lib/eal/common/eal_common_trace_utils.c:70–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68}
69
70void
71trace_uuid_generate(void)
72{
73 struct trace_point_head *tp_list = trace_list_head_get();
74 struct trace *trace = trace_obj_get();
75 struct trace_point *tp;
76 uint64_t sz_total = 0;
77
78 /* Go over the registered trace points to get total size of events */
79 STAILQ_FOREACH(tp, tp_list, next) {
80 const uint16_t sz = *tp->handle & __RTE_TRACE_FIELD_SIZE_MASK;
81 sz_total += sz;
82 }
83
84 rte_uuid_t uuid = RTE_UUID_INIT(sz_total, trace->nb_trace_points,
85 0x4370, 0x8f50, 0x222ddd514176ULL);
86 rte_uuid_copy(trace->uuid, uuid);
87}
88
89static int
90trace_session_name_generate(char **trace_dir)

Callers 1

eal_trace_initFunction · 0.85

Calls 3

trace_list_head_getFunction · 0.85
trace_obj_getFunction · 0.85
rte_uuid_copyFunction · 0.85

Tested by

no test coverage detected