/freebsd-src/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_procmaps_solaris.cpp | 46 bool MemoryMappingLayout::Next(MemoryMappedSegment *segment) { in Next() 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 in Next() 42 Next(MemoryMappedSegment * segment) Next() argument [all...] |
H A D | sanitizer_procmaps_mac.cpp | 62 // data pointer, when there are no sections, or when the segment in AddAddressRanges() 99 // command size in bytes. We're interested only in segment load commands 104 // file offset of the current memory segment. 244 // NextSegmentLoad scans the current image for the next segment load command 246 // segment. 247 // Note that the segment addresses are not necessarily sorted. 249 static bool NextSegmentLoad(MemoryMappedSegment *segment, in NextSegmentLoad() argument 264 // isn't actually the absolute segment address, but the offset portion in NextSegmentLoad() 274 segment->start = (sc->vmaddr & addr_mask) + base_virt_addr; in NextSegmentLoad() 275 segment->end = segment->start + sc->vmsize; in NextSegmentLoad() [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_bsd.cpp | 94 bool MemoryMappingLayout::Next(MemoryMappedSegment *segment) { in Next() 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 in Next() 80 Next(MemoryMappedSegment * segment) 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_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 in DumpProcessMap() 291 MemoryMappedSegment segment(buff.data(), buff.size()); GetCodeRangeForFile() local [all...] |
/freebsd-src/sys/amd64/include/ |
H A D | segments.h | 50 * System segment descriptors (128 bit wide) 53 u_int64_t sd_lolimit:16; /* segment extent (lsb) */ 54 u_int64_t sd_lobase:24; /* segment base address (lsb) */ 55 u_int64_t sd_type:5; /* segment type */ 56 u_int64_t sd_dpl:2; /* segment descriptor priority level */ 57 u_int64_t sd_p:1; /* segment descriptor present */ 58 u_int64_t sd_hilimit:4; /* segment extent (msb) */ 61 u_int64_t sd_hibase:40 __packed;/* segment base address (msb) */ 69 * which are translated into inconvenient segment descriptors 74 unsigned long ssd_base; /* segment base address */ [all …]
|
/freebsd-src/sys/x86/include/ |
H A D | segments.h | 57 * User segment descriptors (%cs, %ds etc for i386 apps. 64 bit wide) 62 unsigned sd_lolimit:16; /* segment extent (lsb) */ 63 unsigned sd_lobase:24; /* segment base address (lsb) */ 64 unsigned sd_type:5; /* segment type */ 65 unsigned sd_dpl:2; /* segment descriptor priority level */ 66 unsigned sd_p:1; /* segment descriptor present */ 67 unsigned sd_hilimit:4; /* segment extent (msb) */ 71 unsigned sd_hibase:8; /* segment base address (msb) */ 75 unsigned sd_lolimit:16; /* segment extent (lsb) */ 76 unsigned sd_lobase:24; /* segment base address (lsb) */ [all …]
|
/freebsd-src/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | LiveInterval.cpp | 15 // individual segment is represented as an instance of LiveRange::Segment, 53 // segment collection. 73 using Segment = LiveRange::Segment; typedef in __anon25811e1b0111::CalcLiveRangeUtilBase 95 impl().insertAtEnd(Segment(Def, Def.getDeadSlot(), VNI)); in createDeadDef() 99 Segment *S = segmentAt(I); in createDeadDef() 116 segments().insert(I, Segment(Def, Def.getDeadSlot(), VNI)); in createDeadDef() 124 impl().findInsertPos(Segment(Use.getPrevSlot(), Use, nullptr)); in extendInBlock() 140 iterator I = impl().findInsertPos(Segment(BeforeUse, Use, nullptr)); in extendInBlock() 154 /// This method is used when we want to extend the segment specified 159 assert(I != segments().end() && "Not a valid segment!"); in extendSegmentEndTo() [all …]
|
/freebsd-src/lib/libsys/ |
H A D | shmctl.2 | 43 on the shared memory segment identified by 47 Fetch the segment's 60 members of the segment's 71 Removes the segment from the system. 73 effect until all processes having attached the segment have exited. 84 no further processes will be allowed to attach the segment. 86 .\" Locks the segment in memory. The calling process must have 89 .\" Unlocks the segment from memory. The calling process must 103 size_t shm_segsz; /* size of segment in bytes */ 122 no shared memory segment was found corresponding to [all …]
|
H A D | shmat.2 | 47 attaches the shared memory segment identified by 50 The address where the segment 60 is 0, the segment is attached at an address selected by the 69 the segment is attached the specified address. 87 cleared before the segment is attached. 100 detaches the shared memory segment at the address specified by 106 returns the address where the segment is attached; otherwise, -1 119 No shared memory segment was found corresponding to 130 space being smaller than the segment size, 135 Failed to attach the shared memory segment because the per-process [all …]
|
H A D | brk.2 | 34 .Nd change data segment size 62 process's data segment. 66 uninitialized data segment (also known as the 81 bytes of new memory in the data segment. 89 While the actual process data segment size maintained by the kernel will only 92 page of the data segment). 103 data segment. 135 The requested break value was beyond the beginning of the data segment. 137 The data segment size limit, as set by 142 to support the expansion of the data segment. [all …]
|
H A D | shmget.2 | 45 memory segment. 97 When creating a new shared memory segment, 99 indicates the desired size of the new segment in bytes. 101 of the segment may be rounded up to a multiple convenient to the 106 returns the positive integer identifier of a shared memory segment. 120 Size specified is greater than the size of the previously existing segment. 124 No shared memory segment was found matching 131 IPC_CREAT and IPC_EXCL were specified, and a shared memory segment
|
/freebsd-src/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
H A D | LiveInterval.h | 15 // individual segment is represented as an instance of LiveRange::Segment, 139 /// Return the end point of the last live range segment to interact with 153 /// It manages an ordered list of Segment objects. 156 /// segment with a new value number is used. 162 struct Segment { struct 166 // segment. 168 Segment() = default; argument 170 Segment(SlotIndex S, SlotIndex E, VNInfo *V) in Segment() argument 172 assert(S < E && "Cannot create empty or backwards segment"); in Segment() 186 containsIntervalSegment global() argument [all...] |
/freebsd-src/contrib/llvm-project/lldb/include/lldb/Target/ |
H A D | TraceDumper.h | 82 /// A traced segment is a maximal list of consecutive traced instructions 83 /// that belong to the same function call. A traced segment will end in 87 /// and resume with the next segment of this segment's owning function 93 /// In terms of implementation details, as segment can be represented with 113 /// linear instruction trace for each segment. 124 /// main() that we didn't trace. We don't know if this segment was in fact 137 /// nestedCall: FunctionCall [ # this untraced segment has a nested 163 /// the result is that the return edge from a segment might connect with a 198 /// Whenever an error is found, a new tree with a single segment i [all...] |
/freebsd-src/sys/i386/i386/ |
H A D | mpboot.S | 187 * are using a segment descriptor with the origin 190 * SO NOW... for the BIG Jump into kernel's segment 228 .word 0xffff /* segment limit 0..15 */ 229 .word 0x0000 /* segment base 0..15 */ 230 .byte 0x0 /* segment base 16..23; set for 0K */ 233 .byte 0x0 /* segment base 24..32 */ 237 .word 0xffff /* segment limit 0..15 */ 238 .word 0x0000 /* segment base 0..15 */ 239 .byte 0x0 /* segment base 16..23; set for 0k */ 242 .byte 0x0 /* segment base 24..32 */ [all …]
|
/freebsd-src/share/man/man3/ |
H A D | end.3 | 45 are program segment end addresses. 48 is the first address after the end of the text segment. 51 is the first address after the end of the initialized data segment. 54 is the first address after the end of the data segment 61 data segment. 73 text segment because the text segment always started at address zero. 76 start of the text segment.
|
/freebsd-src/sys/net/altq/ |
H A D | altq_hfsc.h | 46 u_int m1; /* slope of the first segment in bits/sec */ 47 u_int d; /* the x-projection of the first segment in msec */ 48 u_int m2; /* slope of the second segment in bits/sec */ 52 u_int64_t m1; /* slope of the first segment in bits/sec */ 53 u_int d; /* the x-projection of the first segment in msec */ 54 u_int64_t m2; /* slope of the second segment in bits/sec */ 183 * segment are kept in order to avoid 64-bit divide operations 193 u_int64_t sm1; /* scaled slope of the 1st segment */ 194 u_int64_t ism1; /* scaled inverse-slope of the 1st segment */ 195 u_int64_t dx; /* the x-projection of the 1st segment */ [all …]
|
/freebsd-src/share/man/man5/ |
H A D | a.out.5 | 58 .It text segment 62 .It data segment 66 to update pointers in the text segment when combining binary files. 68 Like the text relocation section, but for data segment pointers. 151 The header, text segment and data segment are all 153 Pages that the kernel loads from the text segment are read-only, 154 while pages from the data segment are writable. 157 Contains the size of the text segment in bytes. 159 Contains the size of the data segment in bytes. 162 .Sq bss segment [all …]
|
/freebsd-src/contrib/llvm-project/compiler-rt/lib/xray/ |
H A D | xray_segmented_array.h | 34 struct Segment { struct 35 Segment *Prev; argument 36 Segment *Next; argument 41 // Each segment of the array will be laid out with the following assumptions: 43 // - Each segment will be on a cache-line address boundary (kCacheLineSize 50 // Segment, aligned properly, and the rest of the elements are accessed argument 53 // We then compute the size of the segment to follow this logic: 61 static constexpr uint64_t SegmentControlBlockSize = sizeof(Segment *) * 2; 72 "Must have at least 1 element per segment."); 74 static Segment SentinelSegmen [all...] |
/freebsd-src/contrib/llvm-project/openmp/runtime/src/ |
H A D | z_Windows_NT-586_asm.asm | 24 _TEXT SEGMENT PARA USE32 PUBLIC 'CODE' 26 _DATA SEGMENT DWORD USE32 PUBLIC 'DATA' 28 CONST SEGMENT DWORD USE32 PUBLIC 'CONST' 30 _BSS SEGMENT DWORD USE32 PUBLIC 'BSS' 32 $$SYMBOLS SEGMENT BYTE USE32 'DEBSYM' 34 $$TYPES SEGMENT BYTE USE32 'DEBTYP' 36 _TLS SEGMENT DWORD USE32 PUBLIC 'TLS' 51 _TEXT SEGMENT 68 _TEXT SEGMENT 118 _TEXT SEGMENT [all …]
|
/freebsd-src/contrib/sendmail/libsm/ |
H A D | shm.c | 23 ** SM_SHMSTART -- initialize shared memory segment. 27 ** size -- size of segment. 30 ** owner -- create segment. 33 ** pointer to shared memory segment, 37 ** attaches shared memory segment. 77 ** SM_SHMSTOP -- stop using shared memory segment. 82 ** owner -- delete segment. 89 ** detaches (and maybe removes) shared memory segment. 110 ** SM_SHMSETOWNER -- set owner/group/mode of shared memory segment.
|
/freebsd-src/contrib/llvm-project/compiler-rt/lib/tsan/rtl/ |
H A D | tsan_platform_posix.cpp | 106 MemoryMappedSegment segment; in CheckAndProtect() local 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.start >= VdsoBeg()) // vdso in CheckAndProtect() 134 segment.start, segment.end); in CheckAndProtect()
|
/freebsd-src/sys/contrib/ncsw/inc/etc/ |
H A D | mem_ext.h | 80 @Description Memory Segment structure 86 /* The segment's name */ 96 uint32_t num; /* Number of blocks in segment */ 111 @Description Create a new memory segment. 114 @Param[in] p_Handle - Handle to new segment is returned through here. 115 @Param[in] num - Number of blocks in new segment. 116 @Param[in] dataSize - Size of blocks in segment. 134 @Description Create a new memory segment. 137 @Param[in] p_Handle - Handle to new segment is returned through here. 138 @Param[in] num - Number of blocks in new segment. [all …]
|
/freebsd-src/sys/i386/include/ |
H A D | segments.h | 48 * which are translated into inconvenient segment descriptors 53 unsigned ssd_base ; /* segment base address */ 54 unsigned ssd_limit ; /* segment extent */ 55 unsigned ssd_type:5 ; /* segment type */ 56 unsigned ssd_dpl:2 ; /* segment descriptor priority level */ 57 unsigned ssd_p:1 ; /* segment descriptor present */ 68 unsigned rd_limit:16; /* segment extent */ 73 * Segment Protection Exception code bits
|