Lines Matching refs:ref
35 struct obj_ref *ref; in add_ref() local
47 tmp = realloc(refs->refs, (refs->ref_cnt + 1) * sizeof(*ref)); in add_ref()
54 ref = &refs->refs[refs->ref_cnt]; in add_ref()
55 ref->pid = e->pid; in add_ref()
56 memcpy(ref->comm, e->comm, sizeof(ref->comm)); in add_ref()
57 ref->comm[sizeof(ref->comm) - 1] = '\0'; in add_ref()
78 ref = &refs->refs[0]; in add_ref()
79 ref->pid = e->pid; in add_ref()
80 memcpy(ref->comm, e->comm, sizeof(ref->comm)); in add_ref()
81 ref->comm[sizeof(ref->comm) - 1] = '\0'; in add_ref()
223 struct obj_ref *ref = &refs->refs[i]; in emit_obj_refs_json() local
226 jsonw_int_field(json_writer, "pid", ref->pid); in emit_obj_refs_json()
227 jsonw_string_field(json_writer, "comm", ref->comm); in emit_obj_refs_json()
254 struct obj_ref *ref = &refs->refs[i]; in emit_obj_refs_plain() local
256 printf("%s%s(%d)", i == 0 ? "" : ", ", ref->comm, ref->pid); in emit_obj_refs_plain()