/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_procmaps_solaris.cpp | 46 bool MemoryMappingLayout::Next(MemoryMappedSegment *segment) { in Next() argument 54 segment->start = (uptr)xmapentry->pr_vaddr; in Next() 55 segment->end = (uptr)(xmapentry->pr_vaddr + xmapentry->pr_size); in Next() 56 segment->offset = (uptr)xmapentry->pr_offset; in Next() 58 segment->protection = 0; in Next() 60 segment->protection |= kProtectionRead; in Next() 62 segment->protection |= kProtectionWrite; in Next() 64 segment->protection |= kProtectionExecute; in Next() 66 segment->protection |= kProtectionShared; in Next() 68 if (segment->filename != NULL && segment->filename_size > 0) { in Next() [all …]
|
H A D | sanitizer_procmaps_linux.cpp | 32 bool MemoryMappingLayout::Next(MemoryMappedSegment *segment) { in Next() argument 41 segment->start = ParseHex(&data_.current); in Next() 43 segment->end = ParseHex(&data_.current); in Next() 46 segment->protection = 0; in Next() 47 if (*data_.current++ == 'r') segment->protection |= kProtectionRead; in Next() 49 if (*data_.current++ == 'w') segment->protection |= kProtectionWrite; in Next() 51 if (*data_.current++ == 'x') segment->protection |= kProtectionExecute; in Next() 53 if (*data_.current++ == 's') segment->protection |= kProtectionShared; in Next() 55 segment->offset = ParseHex(&data_.current); in Next() 68 if (segment->filename) { in Next() [all …]
|
H A D | sanitizer_procmaps_mac.cpp | 249 static bool NextSegmentLoad(MemoryMappedSegment *segment, in NextSegmentLoad() argument 274 segment->start = (sc->vmaddr & addr_mask) + base_virt_addr; in NextSegmentLoad() 275 segment->end = segment->start + sc->vmsize; in NextSegmentLoad() 290 segment->protection = sc->initprot; in NextSegmentLoad() 291 segment->offset = (layout_data->current_filetype == in NextSegmentLoad() 295 if (segment->filename) { in NextSegmentLoad() 299 internal_strncpy(segment->filename, src, segment->filename_size); in NextSegmentLoad() 301 segment->arch = layout_data->current_arch; in NextSegmentLoad() 302 internal_memcpy(segment->uuid, layout_data->current_uuid, kModuleUUIDSize); in NextSegmentLoad() 370 bool MemoryMappingLayout::Next(MemoryMappedSegment *segment) { in Next() argument [all …]
|
H A D | sanitizer_procmaps_fuchsia.cpp | 55 bool MemoryMappingLayout::Next(MemoryMappedSegment *segment) { in Next() argument 59 segment->start = entry.base; in Next() 60 segment->end = entry.base + entry.size; in Next() 61 segment->offset = entry.u.mapping.vmo_offset; in Next() 63 segment->protection = in Next() 67 if (segment->filename && segment->filename_size > 0) { in Next() 68 uptr len = Min(sizeof(entry.name), segment->filename_size) - 1; in Next() 69 internal_strncpy(segment->filename, entry.name, len); in Next() 70 segment->filename[len] = 0; in Next()
|
H A D | sanitizer_procmaps_bsd.cpp | 94 bool MemoryMappingLayout::Next(MemoryMappedSegment *segment) { in Next() argument 102 segment->start = (uptr)VmEntry->kve_start; in Next() 103 segment->end = (uptr)VmEntry->kve_end; in Next() 104 segment->offset = (uptr)VmEntry->kve_offset; in Next() 106 segment->protection = 0; in Next() 108 segment->protection |= kProtectionRead; in Next() 110 segment->protection |= kProtectionWrite; in Next() 112 segment->protection |= kProtectionExecute; in Next() 114 if (segment->filename != NULL && segment->filename_size > 0) { in Next() 115 internal_snprintf(segment->filename, in Next() [all …]
|
H A D | sanitizer_posix.cpp | 243 MemoryMappedSegment segment; in MemoryRangeIsAvailable() local 244 while (proc_maps.Next(&segment)) { in MemoryRangeIsAvailable() 245 if (segment.start == segment.end) continue; // Empty range. in MemoryRangeIsAvailable() 246 CHECK_NE(0, segment.end); in MemoryRangeIsAvailable() 247 if (!IntervalsAreSeparate(segment.start, segment.end - 1, range_start, in MemoryRangeIsAvailable() 259 MemoryMappedSegment segment(filename, kBufSize); in DumpProcessMap() local 261 while (proc_maps.Next(&segment)) { in DumpProcessMap() 262 Printf("\t%p-%p\t%s\n", (void *)segment.start, (void *)segment.end, in DumpProcessMap() 263 segment.filename); in DumpProcessMap() 291 MemoryMappedSegment segment(buff.data(), buff.size()); in GetCodeRangeForFile() local [all …]
|
H A D | sanitizer_procmaps_common.cpp | 124 MemoryMappedSegment segment(module_name.data(), module_name.size()); in DumpListOfModules() local 125 for (uptr i = 0; Next(&segment); i++) { in DumpListOfModules() 126 const char *cur_name = segment.filename; in DumpListOfModules() 140 uptr base_address = (i ? segment.start : 0) - segment.offset; in DumpListOfModules() 143 segment.AddAddressRanges(&cur_module); in DumpListOfModules()
|
H A D | sanitizer_symbolizer_report.cpp | 184 MemoryMappedSegment segment; in MaybeReportNonExecRegion() local 185 while (proc_maps.Next(&segment)) { in MaybeReportNonExecRegion() 186 if (pc >= segment.start && pc < segment.end && !segment.IsExecutable()) in MaybeReportNonExecRegion()
|
H A D | sanitizer_linux_libcdep.cpp | 131 MemoryMappedSegment segment; in GetThreadStackTopAndBottom() local 133 while (proc_maps.Next(&segment)) { in GetThreadStackTopAndBottom() 134 if ((uptr)&rl < segment.end) in GetThreadStackTopAndBottom() 136 prev_end = segment.end; in GetThreadStackTopAndBottom() 138 CHECK((uptr)&rl >= segment.start && (uptr)&rl < segment.end); in GetThreadStackTopAndBottom() 143 if (stacksize > segment.end - prev_end) in GetThreadStackTopAndBottom() 144 stacksize = segment.end - prev_end; in GetThreadStackTopAndBottom() 150 *stack_top = segment.end; in GetThreadStackTopAndBottom() 151 *stack_bottom = segment.end - stacksize; in GetThreadStackTopAndBottom()
|
/freebsd/sys/dev/ocs_fc/ |
H A D | ocs_utils.c | 1620 static int32_t ocs_segment_remaining(ocs_textbuf_segment_t *segment); 1622 static void ocs_textbuf_segment_free(ocs_t *ocs, ocs_textbuf_segment_t *segment); 1652 ocs_textbuf_segment_t *segment = ocs_textbuf_get_segment(textbuf, idx); in ocs_textbuf_ext_get_buffer() local 1653 if (segment == NULL) { in ocs_textbuf_ext_get_buffer() 1656 return segment->buffer; in ocs_textbuf_ext_get_buffer() 1661 ocs_textbuf_segment_t *segment = ocs_textbuf_get_segment(textbuf, idx); in ocs_textbuf_ext_get_length() local 1662 if (segment == NULL) { in ocs_textbuf_ext_get_length() 1665 return segment->buffer_length; in ocs_textbuf_ext_get_length() 1670 ocs_textbuf_segment_t *segment = ocs_textbuf_get_segment(textbuf, idx); in ocs_textbuf_ext_get_written() local 1671 if (segment == NULL) { in ocs_textbuf_ext_get_written() [all …]
|
/freebsd/contrib/llvm-project/compiler-rt/lib/tsan/rtl/ |
H A D | tsan_platform_posix.cpp | 106 MemoryMappedSegment segment; in CheckAndProtect() 107 while (proc_maps.Next(&segment)) { in CheckAndProtect() 108 if (segment.start >= HeapMemBeg() && segment.end <= HeapEnd()) { in CheckAndProtect() 118 if (IsAppMem(segment.start) && IsAppMem(segment.end - 1)) in CheckAndProtect() 122 if (segment.start >= HeapMemEnd() && segment.start < HeapEnd()) continue; in CheckAndProtect() 124 if (segment.protection == 0) // Zero page or mprotected. in CheckAndProtect() 127 if (segment in CheckAndProtect() 100 MemoryMappedSegment segment; CheckAndProtect() local [all...] |
H A D | tsan_platform_linux.cpp | 191 MemoryMappedSegment segment(buffer, size); in MapRodata() local 192 while (proc_maps.Next(&segment)) { in MapRodata() 193 if (segment.filename[0] != 0 && segment.filename[0] != '[' && in MapRodata() 194 segment.IsReadable() && segment.IsExecutable() && in MapRodata() 195 !segment.IsWritable() && IsAppMem(segment.start)) { in MapRodata() 197 char *shadow_start = (char *)MemToShadow(segment.start); in MapRodata() 198 char *shadow_end = (char *)MemToShadow(segment.end); in MapRodata()
|
/freebsd/tools/tools/dmardump/ |
H A D | dmardump.c | 58 pci_find_conf(int segment, int bus, int slot, int func) in pci_find_conf() argument 75 patterns[0].pc_sel.pc_domain = segment; in pci_find_conf() 96 dump_context_table(int segment, int bus, uint64_t base_addr) in dump_context_table() argument 114 conf = pci_find_conf(segment, bus, 0, idx); in dump_context_table() 116 conf = pci_find_conf(segment, bus, idx >> 3, idx & 7); in dump_context_table() 150 handle_drhd(int segment, uint64_t base_addr) in handle_drhd() argument 165 segment, gsts & DMAR_GSTS_TES ? "" : " (disabled)"); in handle_drhd() 178 dump_ext_context_table(segment, bus, in handle_drhd() 182 dump_ext_context_table(segment, bus, in handle_drhd() 187 dump_context_table(segment, bus, root_table[bus].r1 & in handle_drhd()
|
/freebsd/contrib/llvm-project/lldb/source/Plugins/SymbolFile/NativePDB/ |
H A D | PdbIndex.cpp | 62 lldb::addr_t PdbIndex::MakeVirtualAddress(uint16_t segment, in MakeVirtualAddress() argument 68 if (segment == 0 || segment > max_section) in MakeVirtualAddress() 71 const llvm::object::coff_section &cs = dbi().getSectionHeaders()[segment - 1]; in MakeVirtualAddress() 76 std::optional<uint16_t> PdbIndex::GetModuleIndexForAddr(uint16_t segment, in GetModuleIndexForAddr() argument 78 return GetModuleIndexForVa(MakeVirtualAddress(segment, offset)); in GetModuleIndexForAddr() 126 lldb::addr_t va = MakeVirtualAddress(so.segment, so.offset); in BuildAddrToSymbolMap() 175 lldb::addr_t start = MakeVirtualAddress(sol.so.segment, sol.so.offset); in FindSymbolsByVa()
|
/freebsd/crypto/openssl/crypto/perlasm/ |
H A D | x86masm.pl | 18 $segment=""; 101 $segment = ".text\$"; 139 push(@out,"$segment ENDS\n"); 197 { push(@out,"$segment\tENDS\n_DATA\tSEGMENT\n"); $segment="_DATA"; }
|
/freebsd/contrib/llvm-project/compiler-rt/lib/tsan/dd/ |
H A D | dd_interceptors.cpp | 274 MemoryMappedSegment segment(name, ARRAY_SIZE(name)); in InitDataSeg() local 276 while (proc_maps.Next(&segment)) { in InitDataSeg() 277 bool is_data = segment.offset != 0 && segment.filename[0] != 0; in InitDataSeg() 280 bool is_bss = segment.offset == 0 && in InitDataSeg() 281 (segment.filename[0] == 0 || in InitDataSeg() 282 internal_strcmp(segment.filename, "[heap]") == 0) && in InitDataSeg() 284 if (g_data_start == 0 && is_data) g_data_start = segment.start; in InitDataSeg() 285 if (is_bss) g_data_end = segment.end; in InitDataSeg()
|
/freebsd/sys/netgraph/ |
H A D | ng_frame_relay.c | 101 const static struct segment { struct 112 #define SHIFTIN(segment, byte, dlci) \ argument 114 (dlci) <<= (segment)->width; \ 116 (((byte) & (segment)->mask) >> (segment)->shift); \ 119 #define SHIFTOUT(segment, byte, dlci) \ argument 121 (byte) |= (((dlci) << (segment)->shift) & (segment)->mask); \ 122 (dlci) >>= (segment)->width; \
|
/freebsd/contrib/llvm-project/lldb/source/Target/ |
H A D | TraceDumper.cpp | 205 DumpSegmentContext(const TraceDumper::FunctionCall::TracedSegment &segment) { in DumpSegmentContext() argument 206 if (segment.GetOwningCall().IsError()) { in DumpSegmentContext() 211 const SymbolContext &first_sc = segment.GetFirstInstructionSymbolInfo().sc; in DumpSegmentContext() 213 &m_s, segment.GetFirstInstructionSymbolInfo().exe_ctx.GetTargetPtr(), in DumpSegmentContext() 214 segment.GetFirstInstructionSymbolInfo().address, in DumpSegmentContext() 220 const SymbolContext &last_sc = segment.GetLastInstructionSymbolInfo().sc; in DumpSegmentContext() 226 &m_s, segment.GetFirstInstructionSymbolInfo().exe_ctx.GetTargetPtr(), in DumpSegmentContext() 227 segment.GetLastInstructionSymbolInfo().address, in DumpSegmentContext() 261 for (const TraceDumper::FunctionCall::TracedSegment &segment : in DumpFunctionCallTree() local 264 DumpSegmentContext(segment); in DumpFunctionCallTree() [all …]
|
/freebsd/contrib/libarchive/libarchive/ |
H A D | archive_write_set_format_zip.c | 208 struct cd_segment *segment = calloc(1, sizeof(*segment)); in cd_alloc() local 209 if (segment == NULL) in cd_alloc() 211 segment->buff_size = 64 * 1024; in cd_alloc() 212 segment->buff = malloc(segment->buff_size); in cd_alloc() 213 if (segment->buff == NULL) { in cd_alloc() 214 free(segment); in cd_alloc() 217 segment->p = segment->buff; in cd_alloc() 222 = segment; in cd_alloc() 224 zip->central_directory_last->next = segment; in cd_alloc() 225 zip->central_directory_last = segment; in cd_alloc() [all …]
|
/freebsd/contrib/elftoolchain/elfcopy/ |
H A D | elfcopy.h | 113 struct segment; 117 struct segment *seg; /* containing segment */ 118 struct segment *seg_tls; /* tls segment */ 146 struct segment { struct 157 STAILQ_ENTRY(segment) seg_list; /* next segment */ argument 248 STAILQ_HEAD(, segment) v_seg; /* list of segments. */
|
/freebsd/stand/i386/libi386/ |
H A D | pxe.c | 131 pxe_p = (pxe_t *)PTOV(pxenv_p->PXEPtr.segment * 16 + in pxe_enable() 213 pxe_p->EntryPointSP.segment, in pxe_init() 217 pxenv_p->RMEntry.segment, pxenv_p->RMEntry.offset); in pxe_init() 236 bcopy(PTOV((gci_p->Buffer.segment << 4) + gci_p->Buffer.offset), in pxe_init() 311 __pxenvseg = pxenv_p->RMEntry.segment; in pxenv_call() 333 __bangpxeseg = pxe_p->EntryPointSP.segment; in bangpxe_call() 508 frame = (char *)((uintptr_t)isr->Frame.segment << 4); in pxe_netif_receive_isr() 611 trans_p->TBD.segment = VTOPSEG(tbd_p); in pxe_netif_put() 615 tbd_p->Xmit.segment = VTOPSEG(data); in pxe_netif_put()
|
H A D | pxetramp.S | 29 __bangpxeseg: .word 0x0000 # segment 36 __pxenvseg: .word 0x0000 # segment
|
/freebsd/usr.sbin/mptable/ |
H A D | mptable.c | 263 u_short segment; in apic_probe() local 274 readEntry( &segment, 2 ); in apic_probe() 275 if ( segment ) { /* search EBDA */ in apic_probe() 276 target = (u_int32_t)segment << 4; in apic_probe() 297 readEntry( &segment, 2 ); in apic_probe() 298 --segment; /* less ONE_KBYTE */ in apic_probe() 299 target = segment * 1024; in apic_probe() 302 target, segment ); in apic_probe()
|
/freebsd/contrib/llvm-project/compiler-rt/lib/asan/ |
H A D | asan_linux.cpp | 187 MemoryMappedSegment segment(filename, sizeof(filename)); in AsanCheckIncompatibleRT() local 188 while (proc_maps.Next(&segment)) { in AsanCheckIncompatibleRT() 189 if (IsDynamicRTName(segment.filename)) { in AsanCheckIncompatibleRT()
|
/freebsd/sys/contrib/device-tree/Bindings/cpufreq/ |
H A D | imx-cpufreq-dt.txt | 4 Certain i.MX SoCs support different OPPs depending on the "market segment" and 14 - Supported market segment mask
|