Lines Matching refs:ref
31 struct obj_ref *ref; in add_ref() local
44 tmp = realloc(refs->refs, (refs->ref_cnt + 1) * sizeof(*ref)); in add_ref()
51 ref = &refs->refs[refs->ref_cnt]; in add_ref()
52 ref->pid = e->pid; in add_ref()
53 memcpy(ref->comm, e->comm, sizeof(ref->comm)); in add_ref()
75 ref = &refs->refs[0]; in add_ref()
76 ref->pid = e->pid; in add_ref()
77 memcpy(ref->comm, e->comm, sizeof(ref->comm)); in add_ref()
182 struct obj_ref *ref; in emit_obj_refs_json() local
197 ref = &refs->refs[i]; in emit_obj_refs_json()
199 jsonw_int_field(json_writer, "pid", ref->pid); in emit_obj_refs_json()
200 jsonw_string_field(json_writer, "comm", ref->comm); in emit_obj_refs_json()
211 struct obj_ref *ref; in emit_obj_refs_plain() local
225 ref = &refs->refs[i]; in emit_obj_refs_plain()
226 printf("%s%s(%d)", i == 0 ? "" : ", ", ref->comm, ref->pid); in emit_obj_refs_plain()