Home
last modified time | relevance | path

Searched refs:cu (Results 1 – 25 of 98) sorted by relevance

1234

/freebsd/lib/libc/rpc/
H A Dclnt_dg.c205 struct cu_data *cu = NULL; /* private data */ in clnt_dg_create() local
239 cu = mem_alloc(sizeof (*cu) + sendsz + recvsz); in clnt_dg_create()
240 if (cu == NULL) in clnt_dg_create()
242 (void) memcpy(&cu->cu_raddr, svcaddr->buf, (size_t)svcaddr->len); in clnt_dg_create()
243 cu->cu_rlen = svcaddr->len; in clnt_dg_create()
244 cu->cu_outbuf = &cu->cu_inbuf[recvsz]; in clnt_dg_create()
246 cu->cu_wait.tv_sec = 15; /* heuristically chosen */ in clnt_dg_create()
247 cu->cu_wait.tv_usec = 0; in clnt_dg_create()
248 cu->cu_total.tv_sec = -1; in clnt_dg_create()
249 cu->cu_total.tv_usec = -1; in clnt_dg_create()
[all …]
/freebsd/contrib/elftoolchain/libdwarf/
H A Dlibdwarf_info.c35 Dwarf_CU cu; in _dwarf_info_first_cu() local
39 cu = STAILQ_FIRST(&dbg->dbg_cu); in _dwarf_info_first_cu()
40 if (cu != NULL) { in _dwarf_info_first_cu()
41 dbg->dbg_cu_current = cu; in _dwarf_info_first_cu()
87 Dwarf_CU cu; in _dwarf_info_next_cu() local
91 cu = STAILQ_NEXT(dbg->dbg_cu_current, cu_next); in _dwarf_info_next_cu()
92 if (cu != NULL) { in _dwarf_info_next_cu()
93 dbg->dbg_cu_current = cu; in _dwarf_info_next_cu()
114 Dwarf_CU cu; in _dwarf_info_next_tu() local
118 cu = STAILQ_NEXT(dbg->dbg_tu_current, cu_next); in _dwarf_info_next_tu()
[all …]
H A Ddwarf_die.c37 Dwarf_CU cu; in dwarf_child() local
51 cu = die->die_cu; in dwarf_child()
52 ds = cu->cu_is_info ? dbg->dbg_info_sec : dbg->dbg_types_sec; in dwarf_child()
53 ret = _dwarf_die_parse(die->die_dbg, ds, cu, cu->cu_dwarf_size, in dwarf_child()
54 die->die_next_off, cu->cu_next_offset, ret_die, 0, error); in dwarf_child()
69 Dwarf_CU cu; in dwarf_siblingof_b() local
81 cu = is_info ? dbg->dbg_cu_current : dbg->dbg_tu_current; in dwarf_siblingof_b()
83 if (cu == NULL) { in dwarf_siblingof_b()
90 return (dwarf_offdie_b(dbg, cu->cu_1st_offset, is_info, in dwarf_siblingof_b()
116 offset = at->u[0].u64 + cu->cu_offset; in dwarf_siblingof_b()
[all …]
H A Dlibdwarf_abbrev.c33 _dwarf_abbrev_add(Dwarf_CU cu, uint64_t entry, uint64_t tag, uint8_t children, in _dwarf_abbrev_add() argument
39 dbg = cu != NULL ? cu->cu_dbg : NULL; in _dwarf_abbrev_add()
58 if (cu != NULL) in _dwarf_abbrev_add()
59 HASH_ADD(ab_hh, cu->cu_abbrev_hash, ab_entry, in _dwarf_abbrev_add()
100 _dwarf_abbrev_parse(Dwarf_Debug dbg, Dwarf_CU cu, Dwarf_Unsigned *offset, in _dwarf_abbrev_parse() argument
124 ret = _dwarf_abbrev_add(cu, entry, 0, 0, aboff, abp, in _dwarf_abbrev_parse()
134 if ((ret = _dwarf_abbrev_add(cu, entry, tag, children, aboff, in _dwarf_abbrev_parse()
155 _dwarf_abbrev_find(Dwarf_CU cu, uint64_t entry, Dwarf_Abbrev *abp, in _dwarf_abbrev_find() argument
167 HASH_FIND(ab_hh, cu->cu_abbrev_hash, &entry, sizeof(entry), ab); in _dwarf_abbrev_find()
173 if (cu->cu_abbrev_loaded) { in _dwarf_abbrev_find()
[all …]
H A Dlibdwarf_die.c52 _dwarf_die_add(Dwarf_CU cu, uint64_t offset, uint64_t abnum, Dwarf_Abbrev ab, in _dwarf_die_add() argument
59 assert(cu != NULL); in _dwarf_die_add()
62 dbg = cu->cu_dbg; in _dwarf_die_add()
70 die->die_cu = cu; in _dwarf_die_add()
71 die->die_dbg = cu->cu_dbg; in _dwarf_die_add()
84 Dwarf_CU cu; in _dwarf_die_find() local
89 cu = die->die_cu; in _dwarf_die_find()
91 ds = cu->cu_is_info ? dbg->dbg_info_sec : dbg->dbg_types_sec; in _dwarf_die_find()
93 ret = _dwarf_die_parse(dbg, ds, cu, cu->cu_dwarf_size, off, in _dwarf_die_find()
94 cu->cu_next_offset, &die1, 0, &de); in _dwarf_die_find()
[all …]
H A Ddwarf_cu.c40 Dwarf_CU cu; in dwarf_next_cu_header_c() local
71 cu = dbg->dbg_cu_current; in dwarf_next_cu_header_c()
77 cu = dbg->dbg_tu_current; in dwarf_next_cu_header_c()
81 *cu_length = cu->cu_length; in dwarf_next_cu_header_c()
83 *cu_version = cu->cu_version; in dwarf_next_cu_header_c()
85 *cu_abbrev_offset = (Dwarf_Off) cu->cu_abbrev_offset; in dwarf_next_cu_header_c()
87 *cu_pointer_size = cu->cu_pointer_size; in dwarf_next_cu_header_c()
89 if (cu->cu_length_size == 4) in dwarf_next_cu_header_c()
95 if (cu->cu_length_size == 4) in dwarf_next_cu_header_c()
101 *cu_next_offset = cu->cu_next_offset; in dwarf_next_cu_header_c()
[all …]
H A Dlibdwarf_loclist.c32 _dwarf_loclist_add_locdesc(Dwarf_Debug dbg, Dwarf_CU cu, Dwarf_Section *ds, in _dwarf_loclist_add_locdesc() argument
43 start = dbg->read(ds->ds_data, off, cu->cu_pointer_size); in _dwarf_loclist_add_locdesc()
44 end = dbg->read(ds->ds_data, off, cu->cu_pointer_size); in _dwarf_loclist_add_locdesc()
51 *total_len += 2 * cu->cu_pointer_size; in _dwarf_loclist_add_locdesc()
60 if ((cu->cu_pointer_size == 4 && start == ~0U) || in _dwarf_loclist_add_locdesc()
61 (cu->cu_pointer_size == 8 && start == ~0ULL)) in _dwarf_loclist_add_locdesc()
77 ds->ds_data + *off, len, cu->cu_pointer_size, in _dwarf_loclist_add_locdesc()
78 cu->cu_length_size == 4 ? 4 : 8, cu->cu_version, in _dwarf_loclist_add_locdesc()
94 _dwarf_loclist_find(Dwarf_Debug dbg, Dwarf_CU cu, uint64_t lloff, in _dwarf_loclist_find() argument
116 ret = _dwarf_loclist_add_locdesc(dbg, cu, ds, &off, NULL, &ldlen, in _dwarf_loclist_find()
[all …]
H A Ddwarf_arange.c96 Dwarf_CU cu; in dwarf_get_cu_die_offset() local
106 cu = as->as_cu; in dwarf_get_cu_die_offset()
107 assert(cu != NULL); in dwarf_get_cu_die_offset()
110 DWARF_SET_ERROR(cu->cu_dbg, error, DW_DLE_ARGUMENT); in dwarf_get_cu_die_offset()
114 *ret_offset = cu->cu_1st_offset; in dwarf_get_cu_die_offset()
147 Dwarf_CU cu; in dwarf_get_arange_info() local
157 cu = as->as_cu; in dwarf_get_arange_info()
158 assert(cu != NULL); in dwarf_get_arange_info()
162 DWARF_SET_ERROR(cu->cu_dbg, error, DW_DLE_ARGUMENT); in dwarf_get_arange_info()
168 *cu_die_offset = cu->cu_1st_offset; in dwarf_get_arange_info()
H A Dlibdwarf_ranges.c32 _dwarf_ranges_parse(Dwarf_Debug dbg, Dwarf_CU cu, Dwarf_Section *ds, in _dwarf_ranges_parse() argument
41 start = dbg->read(ds->ds_data, &off, cu->cu_pointer_size); in _dwarf_ranges_parse()
42 end = dbg->read(ds->ds_data, &off, cu->cu_pointer_size); in _dwarf_ranges_parse()
49 else if ((start == ~0U && cu->cu_pointer_size == 4) || in _dwarf_ranges_parse()
50 (start == ~0ULL && cu->cu_pointer_size == 8)) in _dwarf_ranges_parse()
103 _dwarf_ranges_add(Dwarf_Debug dbg, Dwarf_CU cu, uint64_t off, in _dwarf_ranges_add() argument
123 ret = _dwarf_ranges_parse(dbg, cu, ds, off, NULL, &cnt); in _dwarf_ranges_add()
138 ret = _dwarf_ranges_parse(dbg, cu, ds, off, rl->rl_rgarray, in _dwarf_ranges_add()
H A Ddwarf_lineno.c38 Dwarf_CU cu; in dwarf_srclines() local
54 cu = die->die_cu; in dwarf_srclines()
55 if (cu->cu_lineinfo == NULL) { in dwarf_srclines()
60 if (cu->cu_lineinfo == NULL) { in dwarf_srclines()
65 li = cu->cu_lineinfo; in dwarf_srclines()
100 Dwarf_CU cu; in dwarf_srcfiles() local
116 cu = die->die_cu; in dwarf_srcfiles()
117 if (cu->cu_lineinfo == NULL) { in dwarf_srcfiles()
122 if (cu->cu_lineinfo == NULL) { in dwarf_srcfiles()
127 li = cu->cu_lineinfo; in dwarf_srcfiles()
H A Dlibdwarf_attr.c99 int dwarf_size, Dwarf_CU cu, Dwarf_Die die, Dwarf_AttrDef ad, in _dwarf_attr_init() argument
117 cu->cu_pointer_size); in _dwarf_attr_init()
159 return (_dwarf_attr_init(dbg, ds, offsetp, dwarf_size, cu, die, in _dwarf_attr_init()
162 if (cu->cu_version == 2) in _dwarf_attr_init()
164 cu->cu_pointer_size); in _dwarf_attr_init()
216 Dwarf_CU cu, Dwarf_Attribute at, int pass2, Dwarf_Error *error) in _dwarf_attr_write() argument
222 assert(dbg != NULL && ds != NULL && cu != NULL && at != NULL); in _dwarf_attr_write()
240 dwarf_drt_data_reloc, cu->cu_pointer_size, in _dwarf_attr_write()
244 ret = WRITE_VALUE(at->u[0].u64, cu->cu_pointer_size); in _dwarf_attr_write()
326 cu->cu_pass2 = 1; in _dwarf_attr_write()
[all …]
H A Ddwarf_ranges.c32 _dwarf_get_ranges(Dwarf_Debug dbg, Dwarf_CU cu, Dwarf_Off off, in _dwarf_get_ranges() argument
39 assert(cu != NULL); in _dwarf_get_ranges()
41 ret = _dwarf_ranges_add(dbg, cu, off, &rl, error); in _dwarf_get_ranges()
50 *ret_byte_cnt = cu->cu_pointer_size * rl->rl_rglen * 2; in _dwarf_get_ranges()
/freebsd/sys/rpc/
H A Dclnt_dg.c183 struct cu_data *cu = NULL; /* private data */ in clnt_dg_create() local
222 cu = mem_alloc(sizeof (*cu)); in clnt_dg_create()
223 cu->cu_threads = 0; in clnt_dg_create()
224 cu->cu_closing = FALSE; in clnt_dg_create()
225 cu->cu_closed = FALSE; in clnt_dg_create()
226 (void) memcpy(&cu->cu_raddr, svcaddr, (size_t)svcaddr->sa_len); in clnt_dg_create()
227 cu->cu_rlen = svcaddr->sa_len; in clnt_dg_create()
229 cu->cu_wait.tv_sec = 3; /* heuristically chosen */ in clnt_dg_create()
230 cu->cu_wait.tv_usec = 0; in clnt_dg_create()
231 cu->cu_total.tv_sec = -1; in clnt_dg_create()
[all …]
/freebsd/contrib/llvm-project/lldb/source/Plugins/SymbolFile/DWARF/
H A DDWARFDebugInfoEntry.cpp120 DWARFUnit *cu, const char *&name, const char *&mangled, in GetDIENamesAndRanges() argument
130 SymbolFileDWARF &dwarf = cu->GetSymbolFileDWARF(); in GetDIENamesAndRanges()
133 if (const auto *abbrevDecl = GetAbbreviationDeclarationPtr(cu)) { in GetDIENamesAndRanges()
134 const DWARFDataExtractor &data = cu->GetData(); in GetDIENamesAndRanges()
143 DWARFFormValue form_value(cu); in GetDIENamesAndRanges()
177 ranges = GetRangesOrReportError(*cu, *this, form_value); in GetDIENamesAndRanges()
239 cu); in GetDIENamesAndRanges()
241 DataExtractor data = cu->GetLocationData(); in GetDIENamesAndRanges()
246 assert(lo_pc >= cu->GetBaseAddress()); in GetDIENamesAndRanges()
247 DWARFExpression::ParseDWARFLocationList(cu, data, frame_base); in GetDIENamesAndRanges()
[all …]
H A DDWARFDebugInfoEntry.h49 void BuildFunctionAddressRangeTable(DWARFUnit *cu,
52 bool Extract(const DWARFDataExtractor &data, const DWARFUnit &cu,
56 DWARFAttributes GetAttributes(DWARFUnit *cu,
59 GetAttributes(cu, attrs, recurse, 0 /* curr_depth */);
64 GetAttributeValue(const DWARFUnit *cu, const dw_attr_t attr,
70 const DWARFUnit *cu, const dw_attr_t attr, const char *fail_value,
74 const DWARFUnit *cu, const dw_attr_t attr, uint64_t fail_value,
78 const DWARFUnit *cu, const dw_attr_t attr,
82 const DWARFUnit *cu, const dw_attr_t attr,
86 const DWARFUnit *cu, const dw_attr_t attr, uint64_t fail_value,
[all …]
H A DDWARFBaseDIE.h32 DWARFBaseDIE(DWARFUnit *cu, DWARFDebugInfoEntry *die) in DWARFBaseDIE() argument
33 : m_cu(cu), m_die(die) {} in DWARFBaseDIE()
35 DWARFBaseDIE(const DWARFUnit *cu, DWARFDebugInfoEntry *die) in DWARFBaseDIE() argument
36 : m_cu(const_cast<DWARFUnit *>(cu)), m_die(die) {} in DWARFBaseDIE()
38 DWARFBaseDIE(DWARFUnit *cu, const DWARFDebugInfoEntry *die) in DWARFBaseDIE() argument
39 : m_cu(cu), m_die(const_cast<DWARFDebugInfoEntry *>(die)) {} in DWARFBaseDIE()
41 DWARFBaseDIE(const DWARFUnit *cu, const DWARFDebugInfoEntry *die) in DWARFBaseDIE() argument
42 : m_cu(const_cast<DWARFUnit *>(cu)), in DWARFBaseDIE()
63 void Set(DWARFUnit *cu, DWARFDebugInfoEntry *die) { in Set() argument
64 if (cu && die) { in Set()
[all …]
H A DSymbolFileDWARFDwo.cpp51 DWARFCompileUnit *cu = FindSingleCompileUnit(); in GetDWOCompileUnitForHash() local
52 if (!cu) in GetDWOCompileUnitForHash()
54 std::optional<uint64_t> dwo_id = cu->GetDWOId(); in GetDWOCompileUnitForHash()
57 return cu; in GetDWOCompileUnitForHash()
70 DWARFCompileUnit *cu = nullptr; in FindSingleCompileUnit() local
74 if (cu) in FindSingleCompileUnit()
76 cu = candidate; in FindSingleCompileUnit()
79 return cu; in FindSingleCompileUnit()
H A DDebugNamesDWARFIndex.cpp54 for (uint32_t cu = 0; cu < num_cus; ++cu) in GetUnits() local
55 result.insert(ni.getCUOffset(cu)); in GetUnits()
77 DWARFUnit *cu = in GetForeignTypeUnit() local
79 if (!cu) in GetForeignTypeUnit()
85 DWARFUnit &dwo_cu = cu->GetNonSkeletonUnit(); in GetForeignTypeUnit()
109 DWARFBaseDIE cu_die = cu->GetUnitDIEOnly(); in GetForeignTypeUnit()
132 if (DWARFUnit *cu = m_debug_info.GetUnitAtOffset(DIERef::Section::DebugInfo, in GetNonSkeletonUnit() local
134 return &cu->GetNonSkeletonUnit(); in GetNonSkeletonUnit()
219 DWARFUnit &cu, llvm::function_ref<bool(DWARFDIE die)> callback) { in GetGlobalVariables() argument
220 uint64_t cu_offset = cu.GetOffset(); in GetGlobalVariables()
[all …]
H A DDWARFDebugInfo.cpp66 DWARFUnit *cu = GetUnitAtIndex(idx); in GetCompileUnitAranges() local
68 dw_offset_t offset = cu->GetOffset(); in GetCompileUnitAranges()
70 cu->BuildAddressRangeTable(m_cu_aranges_up.get()); in GetCompileUnitAranges()
187 DWARFUnit *cu = nullptr; in GetUnitAtIndex() local
189 cu = m_units[idx].get(); in GetUnitAtIndex()
190 return cu; in GetUnitAtIndex()
257 if (DWARFUnit *cu = GetUnitContainingDIEOffset(section, die_offset)) in GetDIE() local
258 return cu->GetNonSkeletonUnit().GetDIE(die_offset); in GetDIE()
/freebsd/contrib/mandoc/
H A Dpreconv.c35 const unsigned char *cu; in preconv_encode() local
39 cu = (const unsigned char *)ib->buf + *ii; in preconv_encode()
40 assert(*cu & 0x80); in preconv_encode()
46 while (nby < 5 && *cu & (1 << (7 - nby))) in preconv_encode()
51 accum = *cu & 0x1f; in preconv_encode()
56 accum = *cu & 0x0f; in preconv_encode()
59 accum = *cu & 0x07; in preconv_encode()
67 cu++; in preconv_encode()
70 if ((accum == 0x00 && ! (*cu & 0x20)) || /* Use 2-byte. */ in preconv_encode()
71 (accum == 0x0d && *cu & 0x20)) /* Surrogates. */ in preconv_encode()
[all …]
/freebsd/sys/net/
H A Dbridgestp.c269 struct bstp_config_unit *cu) in bstp_decode_bpdu() argument
273 cu->cu_pv.pv_root_id = in bstp_decode_bpdu()
282 cu->cu_pv.pv_dbridge_id = in bstp_decode_bpdu()
291 cu->cu_pv.pv_cost = ntohl(cpdu->cbu_rootpathcost); in bstp_decode_bpdu()
292 cu->cu_message_age = ntohs(cpdu->cbu_messageage); in bstp_decode_bpdu()
293 cu->cu_max_age = ntohs(cpdu->cbu_maxage); in bstp_decode_bpdu()
294 cu->cu_hello_time = ntohs(cpdu->cbu_hellotime); in bstp_decode_bpdu()
295 cu->cu_forward_delay = ntohs(cpdu->cbu_forwarddelay); in bstp_decode_bpdu()
296 cu->cu_pv.pv_dport_id = ntohs(cpdu->cbu_portid); in bstp_decode_bpdu()
297 cu->cu_pv.pv_port_id = bp->bp_port_id; in bstp_decode_bpdu()
[all …]
/freebsd/usr.bin/tip/tip/
H A DMakefile35 LINKS= ${BINDIR}/tip ${BINDIR}/cu
36 MAN= tip.1 cu.1
41 SRCS= acu.c acutab.c cmds.c cmdtab.c cu.c hunt.c log.c partab.c \
58 .if exists(${DESTDIR}${BINDIR}/cu)
59 -chflags noschg ${DESTDIR}${BINDIR}/cu
/freebsd/contrib/llvm-project/lld/MachO/
H A DUnwindInfoSection.cpp352 CompactUnwindEntry &cu = cuEntries[i]; in relocateCompactUnwind() local
354 cu.functionAddress = d->getVA(); in relocateCompactUnwind()
373 cu.encoding = target->modeDwarfEncoding | dwarfOffsetHint; in relocateCompactUnwind()
375 cu.functionLength = fde.funcLength; in relocateCompactUnwind()
378 cu.personality = nullptr; in relocateCompactUnwind()
379 cu.lsda = fde.lsda; in relocateCompactUnwind()
388 cu.functionLength = in relocateCompactUnwind()
390 cu.encoding = support::endian::read32le(buf + cuLayout.encodingOffset); in relocateCompactUnwind()
393 cu.personality = r.referent.get<Symbol *>(); in relocateCompactUnwind()
395 cu.lsda = r.getReferentInputSection(); in relocateCompactUnwind()
[all …]
/freebsd/contrib/llvm-project/lldb/source/Core/
H A DFileLineResolver.cpp37 CompileUnit *cu = context.comp_unit; in SearchCallback() local
39 if (m_inlines || m_file_spec.Compare(cu->GetPrimaryFile(), m_file_spec, in SearchCallback()
43 cu->GetSupportFiles().FindFileIndex(start_file_idx, m_file_spec, false); in SearchCallback()
45 LineTable *line_table = cu->GetLineTable(); in SearchCallback()
55 file_idx = cu->GetSupportFiles().FindFileIndex(file_idx + 1, in SearchCallback()
/freebsd/usr.bin/xinstall/tests/
H A Dinstall_test.sh428 local cu=65532 cg=65532
439 atf_check install -o "$cu" testf testc
440 atf_check_equal "$cu:$g:10$m" "$(stat -f"%u:%g:%p" testc)"
445 atf_check install -o "$cu" -g "$cg" testf testc
446 atf_check_equal "$cu:$cg:10$m" "$(stat -f"%u:%g:%p" testc)"
451 atf_check install -o "$cu" -m "$cm" testf testc
452 atf_check_equal "$cu:$g:10$cm" "$(stat -f"%u:%g:%p" testc)"
457 atf_check install -o "$cu" -g "$cg" -m "$cm" testf testc
458 atf_check_equal "$cu:$cg:10$cm" "$(stat -f"%u:%g:%p" testc)"
467 local cu=65532 cg=65532
[all …]

1234