Lines Matching refs:guest_tid
61 struct guest_tid { struct
882 struct guest_tid *guest_tid = zalloc(sizeof(*guest_tid)); in guest_session__map_tid() local
885 if (!guest_tid) in guest_session__map_tid()
888 guest_tid->tid = tid; in guest_session__map_tid()
889 guest_tid->vcpu = vcpu; in guest_session__map_tid()
890 hash = hash_32(guest_tid->tid, PERF_EVLIST__HLIST_BITS); in guest_session__map_tid()
891 hlist_add_head(&guest_tid->node, &gs->tids[hash]); in guest_session__map_tid()
1127 static struct guest_tid *guest_session__lookup_tid(struct guest_session *gs, u32 tid) in guest_session__lookup_tid()
1130 struct guest_tid *guest_tid; in guest_session__lookup_tid() local
1136 hlist_for_each_entry(guest_tid, head, node) in guest_session__lookup_tid()
1137 if (guest_tid->tid == tid) in guest_session__lookup_tid()
1138 return guest_tid; in guest_session__lookup_tid()
1674 struct guest_tid *guest_tid; in host__context_switch() local
1680 guest_tid = guest_session__lookup_tid(gs, tid); in host__context_switch()
1681 if (!guest_tid) in host__context_switch()
1689 vcpu = guest_tid->vcpu; in host__context_switch()