Home
last modified time | relevance | path

Searched refs:ctf_header_t (Results 1 – 10 of 10) sorted by relevance

/freebsd/sys/ddb/
H A Ddb_ctf.c40 static const ctf_header_t *
43 return (const ctf_header_t *)lc->ctftab; in db_ctf_fetch_cth()
54 const ctf_header_t *hp = db_ctf_fetch_cth(lc); in sym_to_objtoff()
155 const ctf_header_t *hp = db_ctf_fetch_cth(lc); in db_ctf_typename_to_type()
160 const uint8_t *ctfstart = (const uint8_t *)hp + sizeof(ctf_header_t); in db_ctf_typename_to_type()
165 start = cur = __DECONST(char *, hp) + sizeof(ctf_header_t) + in db_ctf_typename_to_type()
217 const ctf_header_t *hp = db_ctf_fetch_cth(&sd->lc); in db_ctf_typeid_to_type()
218 const uint8_t *ctfstart = (const uint8_t *)hp + sizeof(ctf_header_t); in db_ctf_typeid_to_type()
252 const ctf_header_t *hp = db_ctf_fetch_cth(&sd->lc); in db_ctf_stroff_to_str()
259 ret = ((const char *)hp + sizeof(ctf_header_t)) + stroff; in db_ctf_stroff_to_str()
[all …]
/freebsd/sys/cddl/dev/fbt/
H A Dfbt.c367 const ctf_header_t *hp = (const ctf_header_t *) lc->ctftab; in fbt_ctfoff_init()
368 const uint8_t *ctfdata = lc->ctftab + sizeof(ctf_header_t); in fbt_ctfoff_init()
545 const ctf_header_t *hp = (const ctf_header_t *) lc->ctftab; in fbt_typoff_init()
547 const uint8_t *ctfdata = lc->ctftab + sizeof(ctf_header_t); in fbt_typoff_init()
872 tp = (const void *) (lc->ctftab + offset + sizeof(ctf_header_t)); in ctf_lookup_by_id()
880 const ctf_header_t *hp = (const ctf_header_t *) lc->ctftab; in fbt_array_info()
916 const ctf_header_t *hp = (const ctf_header_t *) lc->ctftab; in ctf_strptr()
922 strp = (const char *)(lc->ctftab + hp->cth_stroff + name + sizeof(ctf_header_t)); in ctf_strptr()
930 const ctf_header_t *hp = (const ctf_header_t *) lc->ctftab; in ctf_type_rname()
949 const ctf_header_t *hp = (const ctf_header_t *) lc->ctftab; in ctf_decl_push()
[all …]
/freebsd/cddl/contrib/opensolaris/tools/ctf/cvt/
H A Dctf.c639 write_buffer(ctf_header_t *h, ctf_buf_t *buf, size_t *resszp) in write_buffer()
644 outbuf = xmalloc(sizeof (ctf_header_t) + (buf->ctb_ptr - buf->ctb_base) in write_buffer()
648 (void) bcopy_data(h, sizeof (ctf_header_t), &bufpos); in write_buffer()
663 write_compressed_buffer(ctf_header_t *h, ctf_buf_t *buf, size_t *resszp) in write_compressed_buffer()
668 bcopy(h, resbuf.rb_base, sizeof (ctf_header_t)); in write_compressed_buffer()
669 resbuf.rb_ptr = resbuf.rb_base + sizeof (ctf_header_t); in write_compressed_buffer()
686 ctf_header_t h; in ctf_gen()
757 get_ctt_info(ctf_header_t *h, void *v, uint_t *kind, uint_t *vlen, int *isroot) in get_ctt_info()
775 get_ctt_size(ctf_header_t *h, void *v, size_t *sizep, size_t *incrementp) in get_ctt_size()
801 count_types(ctf_header_t *h, caddr_t data) in count_types()
[all …]
/freebsd/cddl/contrib/opensolaris/tools/ctf/dump/
H A Ddump.c112 ref_to_str(uint_t name, const ctf_header_t *hp, const ctf_data_t *cd) in ref_to_str()
183 print_header(const ctf_header_t *hp, const ctf_data_t *cd) in print_header()
205 print_labeltable(const ctf_header_t *hp, const ctf_data_t *cd) in print_labeltable()
268 read_data(const ctf_header_t *hp, const ctf_data_t *cd) in read_data()
314 read_funcs(const ctf_header_t *hp, const ctf_data_t *cd) in read_funcs()
401 read_types(const ctf_header_t *hp, const ctf_data_t *cd) in read_types()
723 read_strtab(const ctf_header_t *hp, const ctf_data_t *cd) in read_strtab()
903 ctf_header_t *hp = NULL; in main()
1030 cd.cd_ctfdata = (caddr_t)cd.cd_ctfdata + sizeof (ctf_header_t); in main()
1034 if (cd.cd_ctflen < sizeof (ctf_header_t)) { in main()
[all …]
/freebsd/cddl/contrib/opensolaris/common/ctf/
H A Dctf_labels.c34 const ctf_header_t *h; in extract_label_info()
42 h = (const ctf_header_t *)fp->ctf_data.cts_data; in extract_label_info()
H A Dctf_open.c249 init_symtab(ctf_file_t *fp, const ctf_header_t *hp, in init_symtab()
340 init_types(ctf_file_t *fp, const ctf_header_t *cth) in init_types()
722 ctf_header_t hp; in ctf_bufopen()
760 if (ctfsect->cts_size < sizeof (ctf_header_t)) in ctf_bufopen()
764 hdrsz = sizeof (ctf_header_t); in ctf_bufopen()
H A Dctf_create.c55 static const ctf_header_t hdr = { { CTF_MAGIC, CTF_VERSION, 0 } }; in ctf_create()
276 ctf_header_t hdr; in ctf_update()
372 size = sizeof (ctf_header_t) + hdr.cth_stroff + hdr.cth_strlen; in ctf_update()
377 bcopy(&hdr, buf, sizeof (ctf_header_t)); in ctf_update()
378 t = (uchar_t *)buf + sizeof (ctf_header_t); in ctf_update()
379 s = s0 = (uchar_t *)buf + sizeof (ctf_header_t) + hdr.cth_stroff; in ctf_update()
/freebsd/contrib/llvm-project/lldb/source/Plugins/SymbolFile/CTF/
H A DSymbolFileCTF.h172 struct ctf_header_t {
242 std::optional<ctf_header_t> m_header;
178 struct ctf_header_t { global() struct
179 preamblectf_header_t global() argument
180 parlabelctf_header_t global() argument
181 parnamectf_header_t global() argument
182 lbloffctf_header_t global() argument
183 objtoffctf_header_t global() argument
184 funcoffctf_header_t global() argument
185 typeoffctf_header_t global() argument
186 stroffctf_header_t global() argument
187 strlenctf_header_t global() argument
H A DSymbolFileCTF.cpp100 constexpr size_t ctf_header_size = sizeof(ctf_header_t); in ParseHeader()
108 ctf_header_t &ctf_header = *m_header; in ParseHeader()
150 sizeof(ctf_header_t)); in ParseHeader()
/freebsd/sys/sys/
H A Dctf.h52 } ctf_header_t; typedef