| 68 | } |
| 69 | |
| 70 | void |
| 71 | trace_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 | |
| 89 | static int |
| 90 | trace_session_name_generate(char **trace_dir) |
no test coverage detected