hwt_thread_insert
hwt_thread_insert(ctx, thr, entry);
void hwt_thread_insert(struct hwt_context *ctx, struct hwt_thread *thr, struct hwt_record_entry *entry);