Lines Matching refs:tname

100 static int get_field_info(char *tname, char *fname, char *dotname,
720 do_start(char *sname, char *tname)
723 do_start_sizeof(tname, NULL);
740 do_start_sizeof(char *tname, char *rtname)
747 rtname = tname;
752 errx(1, "Couldn't resolve type %s", tname);
755 errx(1, "Couldn't get size for type %s", tname);
757 errx(1, "Invalid type size 0 for %s", tname);
760 (void) snprintf(comment, sizeof (comment), "sizeof (%s)", tname);
765 do_scalar_field(char *tname, char *fname, int _sign, char *dotfield)
769 rc = get_field_info(tname, fname, dotfield, &off, &ftype);
771 errx(1, "Can't get field info for %s->%s", tname, fname);
774 errx(1, "Couldn't resolve type of %s->%s", tname, fname);
786 do_array_field(char *tname, char *fname,
794 rc = get_field_info(tname, fname, dotfield, &off, &ftype);
796 errx(1, "Can't get field info for %s->%s", tname, fname);
799 errx(1, "Couldn't resolve type of %s->%s", tname, fname);
803 errx(1, "Wrong type for %s->%s", tname, fname);
807 errx(1, "Can't get array info for %s->%s\n", tname, fname);
810 errx(1, "Can't get element size for %s->%s\n", tname, fname);
817 do_array_type(char *tname, char *fname, int _sign)
823 if ((stype = ctf_lookup_by_name(ctf, tname)) == CTF_ERR)
824 errx(1, "Couldn't find type %s", tname);
826 errx(1, "Couldn't resolve type %s", tname);
830 errx(1, "Wrong type for %s->%s", tname, fname);
834 errx(1, "Can't get array info for %s->%s\n", tname, fname);
837 errx(1, "Can't get element size for %s->%s\n", tname, fname);
844 char *tname; /* top type name, i.e. the struct */
857 * Lookup field "fname" in type "tname". If "dotname" is non-NULL,
862 get_field_info(char *tname, char *fname, char *dotname,
870 if ((stype = ctf_lookup_by_name(ctf, tname)) == CTF_ERR)
871 errx(1, "Couldn't find type %s", tname);
873 errx(1, "Couldn't resolve type %s", tname);
879 gfi.tname = tname;
896 errx(1, "Unexpected top-level type for %s", tname);
903 errx(1, "Did not find %s.%s", tname, fname);