Lines Matching defs:ofp

107 ctf_diff_name(ctf_file_t *ifp, ctf_id_t iid, ctf_file_t *ofp, ctf_id_t oid)
115 if ((otp = ctf_lookup_by_id(&ofp, oid)) == NULL)
119 oname = ctf_strptr(ofp, otp->ctt_name);
135 ctf_diff_number(ctf_file_t *ifp, ctf_id_t iid, ctf_file_t *ofp, ctf_id_t oid)
142 if (ctf_type_encoding(ofp, oid, &den) != 0)
162 ctf_file_t *ofp, ctf_id_t oid)
173 while (ctf_type_kind(ofp, oid) == CTF_K_TYPEDEF) {
174 oref = ctf_type_reference(ofp, oid);
181 return (ctf_diff_type(cds, ifp, iref, ofp, oref));
189 ctf_file_t *ofp, ctf_id_t oid)
197 oref = ctf_type_reference(ofp, oid);
199 return (ctf_set_errno(ifp, ctf_errno(ofp)));
201 return (ctf_diff_type(cds, ifp, iref, ofp, oref));
209 ctf_diff_array(ctf_diff_t *cds, ctf_file_t *ifp, ctf_id_t iid, ctf_file_t *ofp,
218 if (ctf_array_info(ofp, oid, &oar) == CTF_ERR)
219 return (ctf_set_errno(ifp, ctf_errno(ofp)));
221 ret = ctf_diff_type(cds, ifp, iar.ctr_contents, ofp, oar.ctr_contents);
235 ret = ctf_diff_type(cds, ifp, iar.ctr_index, ofp,
253 ctf_diff_fptr(ctf_diff_t *cds, ctf_file_t *ifp, ctf_id_t iid, ctf_file_t *ofp,
263 if (ctf_func_info_by_id(ofp, oid, &ofunc) == CTF_ERR)
264 return (ctf_set_errno(ifp, ctf_errno(ofp)));
272 ret = ctf_diff_type(cds, ifp, ifunc.ctc_return, ofp, ofunc.ctc_return);
291 if (ctf_func_args_by_id(ofp, oid, ofunc.ctc_argc, oids) == CTF_ERR) {
292 ret = ctf_set_errno(ifp, ctf_errno(ofp));
298 ret = ctf_diff_type(cds, ifp, iids[i], ofp, oids[i]);
316 ctf_diff_struct(ctf_diff_t *cds, ctf_file_t *ifp, ctf_id_t iid, ctf_file_t *ofp,
332 if ((otp = ctf_lookup_by_id(&ofp, oid)) == NULL)
333 return (ctf_set_errno(oifp, ctf_errno(ofp)));
335 if (ctf_type_size(ifp, iid) != ctf_type_size(ofp, oid))
339 LCTF_INFO_VLEN(ofp, otp->ctt_info))
343 (void) ctf_get_ctt_size(ofp, otp, &osize, &oincr);
353 if (ofp->ctf_version == CTF_VERSION_1 || osize < CTF_LSTRUCT_THRESH) {
391 oname = ctf_strptr(ofp, omp->ctm_name);
395 oname = ctf_strptr(ofp, olmp->ctlm_name);
406 ret = ctf_diff_type(cds, ifp, itype, ofp, otype);
508 ctf_diff_union(ctf_diff_t *cds, ctf_file_t *ifp, ctf_id_t iid, ctf_file_t *ofp,
520 if ((otp = ctf_lookup_by_id(&ofp, oid)) == NULL)
521 return (ctf_set_errno(oifp, ctf_errno(ofp)));
524 LCTF_INFO_VLEN(ofp, otp->ctt_info))
539 cduf.cduf_altfp = ofp;
554 ctf_diff_enum(ctf_file_t *ifp, ctf_id_t iid, ctf_file_t *ofp, ctf_id_t oid)
565 if ((otp = ctf_lookup_by_id(&ofp, oid)) == NULL)
566 return (ctf_set_errno(oifp, ctf_errno(ofp)));
569 LCTF_INFO_VLEN(ofp, otp->ctt_info))
573 (void) ctf_get_ctt_size(ofp, otp, NULL, &oincr);
580 ctf_strptr(ofp, oep->cte_name)) != 0)
596 ctf_diff_forward(ctf_file_t *ifp, ctf_id_t iid, ctf_file_t *ofp, ctf_id_t oid)
601 okind = ctf_type_kind(ofp, oid);
617 ctf_diff_type(ctf_diff_t *cds, ctf_file_t *ifp, ctf_id_t iid, ctf_file_t *ofp,
623 if (ifp == ofp && iid == oid)
642 okind = ctf_type_kind(ofp, oid);
649 if ((ret = ctf_diff_name(ifp, iid, ofp, oid)) != B_FALSE) {
656 return (ctf_diff_forward(ifp, iid, ofp, oid));
661 ret = ctf_diff_number(ifp, iid, ofp, oid);
664 ret = ctf_diff_array(cds, ifp, iid, ofp, oid);
667 ret = ctf_diff_fptr(cds, ifp, iid, ofp, oid);
670 ret = ctf_diff_struct(cds, ifp, iid, ofp, oid);
673 ret = ctf_diff_union(cds, ifp, iid, ofp, oid);
676 ret = ctf_diff_enum(ifp, iid, ofp, oid);
679 ret = ctf_diff_forward(ifp, iid, ofp, oid);
682 ret = ctf_diff_typedef(cds, ifp, iid, ofp, oid);
688 ret = ctf_diff_qualifier(cds, ifp, iid, ofp, oid);
819 ctf_diff_init(ctf_file_t *ifp, ctf_file_t *ofp, ctf_diff_t **cdsp)
830 cds->cds_ofp = ofp;
833 rsize = sizeof (ctf_id_t) * ofp->ctf_typemax;
836 if (ofp->ctf_flags & LCTF_CHILD)
963 ctf_file_t *ifp, *ofp;
966 ofp = cds->cds_ofp;
976 if (!(ifp->ctf_flags & LCTF_CHILD) && !(ofp->ctf_flags & LCTF_CHILD)) {
982 return (ctf_diff_type(cds, ifp, iid, ofp, oid));
987 ctf_diff_void_cb(ctf_file_t *ifp, ctf_id_t iid, boolean_t same, ctf_file_t *ofp,