Lines Matching refs:guest_tid
61 struct guest_tid { struct
866 struct guest_tid *guest_tid = zalloc(sizeof(*guest_tid)); in guest_session__map_tid() local
869 if (!guest_tid) in guest_session__map_tid()
872 guest_tid->tid = tid; in guest_session__map_tid()
873 guest_tid->vcpu = vcpu; in guest_session__map_tid()
874 hash = hash_32(guest_tid->tid, PERF_EVLIST__HLIST_BITS); in guest_session__map_tid()
875 hlist_add_head(&guest_tid->node, &gs->tids[hash]); in guest_session__map_tid()
1111 static struct guest_tid *guest_session__lookup_tid(struct guest_session *gs, u32 tid) in guest_session__lookup_tid()
1114 struct guest_tid *guest_tid; in guest_session__lookup_tid() local
1120 hlist_for_each_entry(guest_tid, head, node) in guest_session__lookup_tid()
1121 if (guest_tid->tid == tid) in guest_session__lookup_tid()
1122 return guest_tid; in guest_session__lookup_tid()
1650 struct guest_tid *guest_tid; in host__context_switch() local
1656 guest_tid = guest_session__lookup_tid(gs, tid); in host__context_switch()
1657 if (!guest_tid) in host__context_switch()
1665 vcpu = guest_tid->vcpu; in host__context_switch()