Home
last modified time | relevance | path

Searched +full:segment +full:- +full:0 (Results 1 – 25 of 1027) sorted by relevance

12345678910>>...42

/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_procmaps_solaris.cpp1 //===-- sanitizer_procmaps_solaris.cpp ------------------------------------===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 // Information about the process mappings (Solaris-specific parts).
10 //===----------------------------------------------------------------------===//
31 CHECK_NE(fd, -1); in ReadProcMaps()
33 CHECK_GT(Size, 0); in ReadProcMaps()
39 CHECK_NE(Size, -1); in ReadProcMaps()
41 proc_maps->data = (char *)VmMap; in ReadProcMaps()
[all …]
H A Dsanitizer_procmaps_mac.cpp1 //===-- sanitizer_procmaps_mac.cpp ----------------------------------------===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 // Information about the process mappings (Mac-specific parts).
10 //===----------------------------------------------------------------------===//
18 #include <mach-o/dyld.h>
19 #include <mach-o/loader.h>
51 const Section *sc = (const Section *)data->current_load_cmd_addr; in NextSectionLoad()
52 data->current_load_cmd_addr += sizeof(Section); in NextSectionLoad()
[all …]
H A Dsanitizer_procmaps_linux.cpp1 //===-- sanitizer_procmaps_linux.cpp --------------------------------------===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 // Information about the process mappings (Linux-specific parts).
10 //===----------------------------------------------------------------------===//
20 if (!ReadFileToBuffer("/proc/self/maps", &proc_maps->data, in ReadProcMaps()
21 &proc_maps->mmaped_size, &proc_maps->len)) { in ReadProcMaps()
22 proc_maps->data = nullptr; in ReadProcMaps()
23 proc_maps->mmaped_size = 0; in ReadProcMaps()
[all …]
H A Dsanitizer_procmaps_bsd.cpp1 //===-- sanitizer_procmaps_bsd.cpp ----------------------------------------===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
10 // (FreeBSD and NetBSD-specific parts).
11 //===----------------------------------------------------------------------===//
18 // clang-format off
21 // clang-format on
40 internal_sysctl(Mib, ARRAY_SIZE(Mib), nullptr, (uptr *)InfoProc, &Len, 0), in GetMemoryProfile()
41 0); in GetMemoryProfile()
[all …]
H A Dsanitizer_procmaps_fuchsia.cpp1 //===-- sanitizer_procmaps_fuchsia.cpp
2 //----------------------------------------===//
4 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
6 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
8 //===----------------------------------------------------------------------===//
10 // Information about the process mappings (Fuchsia-specific parts).
11 //===----------------------------------------------------------------------===//
24 // information via its process-self handle.
29 data_.current = 0; in Reset()
33 _zx_process_self(), ZX_INFO_PROCESS_MAPS, nullptr, 0, nullptr, &count); in Reset()
[all …]
H A Dsanitizer_posix.cpp1 //===-- sanitizer_posix.cpp -----------------------------------------------===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
10 // run-time libraries and implements POSIX-specific functions from
12 //===----------------------------------------------------------------------===//
34 #define MAP_NORESERVE 0
39 // ------------- sanitizer_common.h
82 // We probably can do it with fewer syscalls in some OS-dependent way.
98 res = (map_res + alignment - 1) & ~(alignment - 1); in MmapAlignedOrDieOnFatalError()
[all …]
/freebsd/sys/x86/include/
H A Dsegments.h1 /*-
2 * SPDX-License-Identifier: BSD-3-Clause
48 #define SEL_KPL 0 /* kernel priority level */
52 #define IDXSEL(s) (((s)>>3) & 0x1fff) /* index of selector */
57 * User segment descriptors (%cs, %ds etc for i386 apps. 64 bit wide)
58 * For long-mode apps, %cs only has the conforming bit in sd_type, the sd_dpl,
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 */
[all …]
/freebsd/contrib/llvm-project/lldb/include/lldb/Target/
H A DTraceDumper.h1 //===-- TraceDumper.h -------------------------------------------*- C++ -*-===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
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
85 /// - With a call to a function deeper in the callstack. In this case,
87 /// and resume with the next segment of this segment's owning function
89 /// - Abruptly due to end of trace. In this case, we weren't able to trace
91 /// - Simply a return higher in the callstack.
[all …]
/freebsd/sys/i386/i386/
H A Dmpboot.S1 /*-
48 #define CMOS_REG (0x70)
49 #define CMOS_DATA (0x71)
70 CHECKPOINT(0x36, 3)
91 cmpl $0, pae_mode
98 movl $0x80000000, %eax
100 movl $0x80000001, %ebx
126 CHECKPOINT(0x37, 4)
131 * copied into 'real-mode' low memory, it is where the
135 * 1Meg. -jackv
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/xray/
H A Dxray_segmented_array.h1 //===-- xray_segmented_array.h ---------------------------------*- C++ -*-===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
11 // Defines the implementation of a segmented array, with fixed-size segments
14 //===----------------------------------------------------------------------===//
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:
[all …]
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DLiveInterval.cpp1 //===- LiveInterval.cpp - Live Interval Representation --------
73 using Segment = LiveRange::Segment; global() typedef in __anon418b83490111::CalcLiveRangeUtilBase
[all...]
/freebsd/sys/net/altq/
H A Daltq_hfsc.h1 /*-
2 * Copyright (c) 1997-1999 Carnegie Mellon University. All Rights Reserved.
6 * for-profit use), provided that both the copyright notice and this
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 */
61 #define HFSC_NULLCLASS_HANDLE 0
[all …]
/freebsd/sys/contrib/device-tree/Bindings/auxdisplay/
H A Dgpio-7-segment.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/auxdisplay/gpio-7-segment.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: GPIO based LED segment display
10 - Chris Packham <chris.packham@alliedtelesis.co.nz>
14 const: gpio-7-segment
16 segment-gpios:
18 An array of GPIOs one per segment. The first GPIO corresponds to the A
19 segment, the seventh GPIO corresponds to the G segment. Some LED blocks
[all …]
/freebsd/contrib/sendmail/libsm/
H A Dshm.c2 * Copyright (c) 2000-2001, 2003, 2005 Proofpoint, Inc. and its suppliers.
11 SM_RCSID("@(#)$Id: shm.c,v 1.20 2013-11-22 20:51:43 ca Exp $")
23 ** SM_SHMSTART -- initialize shared memory segment.
26 ** key -- key for shared memory.
27 ** size -- size of segment.
28 ** shmflag -- initial flags.
29 ** shmid -- pointer to return id.
30 ** owner -- create segment.
33 ** pointer to shared memory segment,
37 ** attaches shared memory segment.
[all …]
/freebsd/sys/dev/ocs_fc/
H A Docs_utils.c1 /*-
91 /* Fail if the item size exceeds slab_len - caller should increase slab_size, in ocs_array_alloc()
104 array->os = os; in ocs_array_alloc()
105 array->size = size; in ocs_array_alloc()
106 array->count = count; in ocs_array_alloc()
107 array->elems_per_row = slab_len / size; in ocs_array_alloc()
108 array->n_rows = (count + array->elems_per_row - 1) / array->elems_per_row; in ocs_array_alloc()
109 array->bytes_per_row = array->elems_per_row * array->size; in ocs_array_alloc()
111 array->array_rows_len = array->n_rows * sizeof(*array->array_rows); in ocs_array_alloc()
112 array->array_rows = ocs_malloc(os, array->array_rows_len, OCS_M_ZERO | OCS_M_NOWAIT); in ocs_array_alloc()
[all …]
/freebsd/contrib/llvm-project/openmp/runtime/src/
H A Dz_Windows_NT-586_asm.asm1 ; z_Windows_NT-586_asm.asm: - microtasking routines specifically
2 ; written for IA-32 architecture and Intel(R) 64 running Windows* OS
5 ;//===----------------------------------------------------------------------===//
7 ;// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
9 ;// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
11 ;//===----------------------------------------------------------------------===//
14 TITLE z_Windows_NT-586_asm.asm
16 ; ============================= IA-32 architecture ==========================
24 _TEXT SEGMENT PARA USE32 PUBLIC 'CODE'
26 _DATA SEGMENT DWORD USE32 PUBLIC 'DATA'
[all …]
/freebsd/lib/libsys/
H A Dbrk.234 .Nd change data segment size
44 .Bf -symbolic
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).
95 .Fn sbrk 0 .
103 data segment.
116 .Rv -std brk
[all …]
H A Dshmat.247 attaches the shared memory segment identified by
50 The address where the segment
56 .Bl -bullet
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.
93 some pre-existing mappings, the
100 detaches the shared memory segment at the address specified by
106 returns the address where the segment is attached; otherwise, -1
111 .Rv -std shmdt
[all …]
H A Dshmctl.243 on the shared memory segment identified by
45 .Bl -tag -width SHM_UNLOCKX
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.
83 variable is set to 0, once the IPC_RMID operation has taken place,
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
[all …]
/freebsd/sys/amd64/vmm/amd/
H A Dvmcb.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
52 * - instructions or events in the guest to intercept
53 * - control bits that modify execution environment of the guest
54 * - guest processor state (e.g. general purpose registers)
58 * Return VMCB segment area.
66 state = &vmcb->state; in vmcb_segptr()
70 seg = &state->cs; in vmcb_segptr()
74 seg = &state->ds; in vmcb_segptr()
78 seg = &state->es; in vmcb_segptr()
[all …]
/freebsd/tools/tools/dmardump/
H A Ddmardump.c1 /*-
58 pci_find_conf(int segment, int bus, int slot, int func) in pci_find_conf() argument
60 static int pcifd = -1; in pci_find_conf()
65 if (pcifd == -1) { in pci_find_conf()
67 if (pcifd < 0) in pci_find_conf()
75 patterns[0].pc_sel.pc_domain = segment; in pci_find_conf()
76 patterns[0].pc_sel.pc_bus = bus; in pci_find_conf()
77 patterns[0].pc_sel.pc_dev = slot; in pci_find_conf()
78 patterns[0].pc_sel.pc_func = func; in pci_find_conf()
79 patterns[0].flags = PCI_GETCONF_MATCH_DOMAIN | in pci_find_conf()
[all …]
/freebsd/sys/dev/ice/
H A Dice_ddp_common.c1 /* SPDX-License-Identifier: BSD-3-Clause */
47 * Download Package (0x0C40)
59 *error_offset = 0; in ice_aq_download_pkg()
61 *error_info = 0; in ice_aq_download_pkg()
68 cmd->flags |= ICE_AQC_DOWNLOAD_PKG_LAST_BUF; in ice_aq_download_pkg()
77 *error_offset = LE32_TO_CPU(resp->error_offset); in ice_aq_download_pkg()
79 *error_info = LE32_TO_CPU(resp->error_inf in ice_aq_download_pkg()
[all...]
/freebsd/contrib/elftoolchain/elfcopy/
H A Dsegments.c1 /*-
2 * Copyright (c) 2007-2010,2012 Kai Wang
37 ELFTC_VCSID("$Id: segments.c 3615 2018-05-17 04:12:24Z kaiwang27 $");
39 static void insert_to_inseg_list(struct segment *seg, struct section *sec);
42 * elfcopy's segment handling is relatively simpler and less powerful than
44 * but never re-generated. As a result, if the input object has incorrect
51 * corresponding segment list(s) and return 1.
56 struct segment *seg; in add_to_inseg_list()
59 if (ecp->ophnum == 0) in add_to_inseg_list()
60 return (0); in add_to_inseg_list()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/TargetProcess/
H A DExecutorSharedMemoryMapperService.cpp1 //===---------- ExecutorSharedMemoryMapperService.cpp -----------*- C++ -*-===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
74 if (SharedMemoryId < 0) in reserve()
77 void *Addr = shmat(SharedMemoryId, nullptr, 0); in reserve()
78 if (Addr == reinterpret_cast<void *>(-1)) in reserve()
83 if (SharedMemoryFile < 0) in reserve()
86 // by default size is 0 in reserve()
87 if (ftruncate(SharedMemoryFile, Size) < 0) in reserve()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/
H A DMemoryMapper.cpp1 //===- MemoryMapper.cpp - Cross-process memory mapper ------------*- C++ -*-==//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
68 ExecutorAddr MinAddr(~0ULL); in initialize()
69 ExecutorAddr MaxAddr(0); in initialize()
72 for (auto &Segment : AI.Segments) { in initialize() local
73 auto Base = AI.MappingBase + Segment.Offset; in initialize()
74 auto Size = Segment.ContentSize + Segment.ZeroFillSize; in initialize()
82 std::memset((Base + Segment.ContentSize).toPtr<void *>(), 0, in initialize()
[all …]

12345678910>>...42