Lines Matching refs:guest_id
53 struct guest_id { struct
942 struct guest_id *guest_id = zalloc(sizeof(*guest_id)); in guest_session__map_id() local
945 if (!guest_id) in guest_session__map_id()
948 guest_id->id = id; in guest_session__map_id()
949 guest_id->host_id = host_id; in guest_session__map_id()
950 guest_id->vcpu = vcpu; in guest_session__map_id()
951 hash = hash_64(guest_id->id, PERF_EVLIST__HLIST_BITS); in guest_session__map_id()
952 hlist_add_head(&guest_id->node, &gs->heads[hash]); in guest_session__map_id()
1004 static struct guest_id *guest_session__lookup_id(struct guest_session *gs, u64 id) in guest_session__lookup_id()
1007 struct guest_id *guest_id; in guest_session__lookup_id() local
1013 hlist_for_each_entry(guest_id, head, node) in guest_session__lookup_id()
1014 if (guest_id->id == id) in guest_session__lookup_id()
1015 return guest_id; in guest_session__lookup_id()
1048 struct guest_id *guest_id = guest_session__lookup_id(gs, id); in guest_session__add_attr() local
1050 if (!guest_id) { in guest_session__add_attr()
1055 id_array[i] = guest_id->host_id; in guest_session__add_attr()
1056 vcpu_array[i] = guest_id->vcpu; in guest_session__add_attr()
1446 struct guest_id *guest_id; in guest_session__inject_events() local
1505 guest_id = guest_session__lookup_id(gs, id); in guest_session__inject_events()
1506 if (!guest_id) { in guest_session__inject_events()
1513 sample->id = guest_id->host_id; in guest_session__inject_events()
1514 sample->stream_id = guest_id->host_id; in guest_session__inject_events()