Home
last modified time | relevance | path

Searched refs:buffer_size (Results 1 – 25 of 27) sorted by relevance

12

/llvm-project-15.0.7/compiler-rt/test/asan/TestCases/Windows/
H A Drtlallocateheap_zero.cpp34 SIZE_T buffer_size = 32; in main() local
35 SIZE_T new_buffer_size = buffer_size * 2; in main()
37 buffer = (char *)RtlAllocateHeap_ptr(GetProcessHeap(), HEAP_ZERO_MEMORY, buffer_size); in main()
40 for (SIZE_T i = 0; i < buffer_size; ++i) { in main()
43 memset(buffer, 0xcc, buffer_size); in main()
49 for (SIZE_T i = 0; i < buffer_size; ++i) { in main()
53 for (SIZE_T i = buffer_size; i < new_buffer_size; ++i) { in main()
58 buffer = (char *)RtlReAllocateHeap_ptr(GetProcessHeap(), HEAP_ZERO_MEMORY, buffer, buffer_size); in main()
61 for (SIZE_T i = 0; i < buffer_size; ++i) { in main()
65 buffer[buffer_size + 1] = 'a'; in main()
/llvm-project-15.0.7/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_printf.cpp249 int buffer_size, in SharedPrintfCodeNoBuffer() argument
264 buffer_size = v.capacity(); in SharedPrintfCodeNoBuffer()
265 v.resize(buffer_size); in SharedPrintfCodeNoBuffer()
275 needed_length += internal_snprintf(buffer, buffer_size, in SharedPrintfCodeNoBuffer()
277 if (needed_length >= buffer_size) in SharedPrintfCodeNoBuffer()
281 buffer + needed_length, buffer_size - needed_length, "==%d==", pid); in SharedPrintfCodeNoBuffer()
282 if (needed_length >= buffer_size) in SharedPrintfCodeNoBuffer()
286 buffer_size - needed_length, format, args); in SharedPrintfCodeNoBuffer()
287 if (needed_length >= buffer_size) in SharedPrintfCodeNoBuffer()
H A Dsanitizer_suppressions.cpp79 uptr buffer_size; in ParseFromFile() local
81 if (!ReadFileToBuffer(filename, &file_contents, &buffer_size, in ParseFromFile()
/llvm-project-15.0.7/libc/src/__support/File/
H A Dlinux_file.cpp35 constexpr LinuxFile(int file_descriptor, void *buffer, size_t buffer_size, in LinuxFile() argument
38 buffer, buffer_size, buffer_mode, owned, modeflags), in LinuxFile()
42 size_t buffer_size, int buffer_mode, bool owned, in init() argument
45 buffer, buffer_size, buffer_mode, owned, modeflags); in init()
H A Dfile.h130 FlushFunc *ff, void *buffer, size_t buffer_size, in File() argument
134 buf(buffer), bufsize(buffer_size), bufmode(buffer_mode), own_buf(owned), in File()
142 size_t buffer_size, int buffer_mode, bool owned, in init() argument
151 f->bufsize = buffer_size; in init()
/llvm-project-15.0.7/libcxx/src/support/win32/
H A Dsupport.cpp33 size_t buffer_size = static_cast<size_t>(count) + 1; in __libcpp_vasprintf() local
34 char* p = static_cast<char*>(malloc(buffer_size)); in __libcpp_vasprintf()
41 if (vsnprintf(p, buffer_size, format, ap) != count) { in __libcpp_vasprintf()
/llvm-project-15.0.7/libc/utils/UnitTest/
H A DLibcTest.h174 static inline void GenerateName(char *buffer, int buffer_size, in GenerateName() argument
176 if (buffer_size == 0) in GenerateName()
180 --buffer_size; in GenerateName()
181 buffer[buffer_size] = '\0'; in GenerateName()
184 if (buffer_size > 0) { in GenerateName()
187 --buffer_size; in GenerateName()
/llvm-project-15.0.7/openmp/runtime/test/affinity/format/
H A Dfields_values.c113 int buffer_size = 256; in check_host() local
116 my_gethostname(hostname, buffer_size); in check_host()
/llvm-project-15.0.7/lldb/source/Commands/
H A DCommandObjectLog.cpp108 buffer_size.SetValueFromString(option_arg, eVarSetOperationAssign); in SetOptionValue()
143 buffer_size.Clear(); in OptionParsingStarting()
153 OptionValueUInt64 buffer_size; member in CommandObjectLogEnable::CommandOptions
174 m_options.buffer_size.GetCurrentValue() == 0) { in DoExecute()
193 m_options.buffer_size.GetCurrentValue(), m_options.handler, in DoExecute()
H A DCommandObjectMemory.cpp1164 size_t buffer_size) { in FastSearch() argument
1167 if (region_size < buffer_size) in FastSearch()
1170 std::vector<size_t> bad_char_heuristic(256, buffer_size); in FastSearch()
1174 for (size_t idx = 0; idx < buffer_size - 1; idx++) { in FastSearch()
1176 bad_char_heuristic[bcu_idx] = buffer_size - idx - 1; in FastSearch()
1178 for (size_t s = 0; s <= (region_size - buffer_size);) { in FastSearch()
1179 int64_t j = buffer_size - 1; in FastSearch()
1185 s += bad_char_heuristic[iterator[s + buffer_size - 1]]; in FastSearch()
/llvm-project-15.0.7/lldb/source/Utility/
H A DLog.cpp365 size_t buffer_size) in StreamLogHandler() argument
366 : m_stream(fd, should_close, buffer_size == 0) { in StreamLogHandler()
367 if (buffer_size > 0) in StreamLogHandler()
368 m_stream.SetBufferSize(buffer_size); in StreamLogHandler()
/llvm-project-15.0.7/third-party/benchmark/src/
H A Dsysinfo.cc324 DWORD buffer_size = 0; in GetCacheSizesWindows() local
329 GetLogicalProcessorInformation(nullptr, &buffer_size); in GetCacheSizesWindows()
330 UPtr buff((PInfo*)malloc(buffer_size), &std::free); in GetCacheSizesWindows()
331 if (!GetLogicalProcessorInformation(buff.get(), &buffer_size)) in GetCacheSizesWindows()
336 PInfo* end = buff.get() + (buffer_size / sizeof(PInfo)); in GetCacheSizesWindows()
/llvm-project-15.0.7/lldb/source/Plugins/Platform/POSIX/
H A DPlatformPOSIX.cpp779 size_t buffer_size = 0; in DoLoadImage() local
789 if (path_size > buffer_size) in DoLoadImage()
790 buffer_size = path_size; in DoLoadImage()
821 buffer_size += path.size() + 2; in DoLoadImage()
823 buffer_addr = process->AllocateMemory(buffer_size, in DoLoadImage()
/llvm-project-15.0.7/compiler-rt/lib/xray/
H A Dxray_fdr_flags.inc24 XRAY_FLAG(int, buffer_size, 16384,
/llvm-project-15.0.7/compiler-rt/lib/sanitizer_common/tests/
H A Dsanitizer_allocator_test.cpp1154 u64 *MapPackedCounterArrayBuffer(uptr buffer_size) { in MapPackedCounterArrayBuffer() argument
1155 last_request_buffer_size = buffer_size * sizeof(u64); in MapPackedCounterArrayBuffer()
1170 u64 *MapPackedCounterArrayBuffer(uptr buffer_size) { in MapPackedCounterArrayBuffer() argument
1171 buffer_size *= sizeof(u64); in MapPackedCounterArrayBuffer()
1173 CHECK_EQ(buffer_size, page_size); in MapPackedCounterArrayBuffer()
1296 u64 *MapPackedCounterArrayBuffer(uptr buffer_size) { in MapPackedCounterArrayBuffer() argument
1298 buffer.assign(buffer_size, 0); in MapPackedCounterArrayBuffer()
/llvm-project-15.0.7/openmp/libompd/src/
H A Domp-icv.cpp358 size_t buffer_size = 16 /* digits per element including the comma separator */ in ompd_get_nthreads() local
362 ret = callbacks->alloc_memory(buffer_size, (void **)&nthreads_list_str); in ompd_get_nthreads()
896 size_t buffer_size = 16 /* digits per element including the comma separator */ in ompd_get_proc_bind() local
900 ret = callbacks->alloc_memory(buffer_size, (void **)&proc_bind_list_str); in ompd_get_proc_bind()
/llvm-project-15.0.7/llvm/include/llvm/LTO/legacy/
H A DLTOModule.h159 static lto::InputFile *createInputFile(const void *buffer, size_t buffer_size,
/llvm-project-15.0.7/lldb/source/Core/
H A DDebugger.cpp1411 size_t buffer_size) { in CreateLogHandler() argument
1414 return std::make_shared<StreamLogHandler>(fd, should_close, buffer_size); in CreateLogHandler()
1416 return std::make_shared<RotatingLogHandler>(buffer_size); in CreateLogHandler()
1428 size_t buffer_size, LogHandlerKind log_handler_kind, in EnableLog() argument
1440 /*should_close=*/false, buffer_size); in EnableLog()
1462 /*should_close=*/true, buffer_size); in EnableLog()
/llvm-project-15.0.7/libcxx/test/std/utilities/charconv/charconv.msvc/
H A Dtest.cpp612 constexpr size_t buffer_size = IsDouble ? 24 : 15; in test_floating_prefix() local
613 char buffer[buffer_size]; in test_floating_prefix()
679 constexpr size_t buffer_size = IsDouble ? 22 : 14; in test_floating_hex_prefix() local
680 char buffer[buffer_size]; in test_floating_hex_prefix()
/llvm-project-15.0.7/llvm/docs/
H A DXRayFDRFormat.rst58 | buffer_size | ``8`` | The size in bytes of the data portion |
87 buffer_size field in the header.
357 buffer. The reader is expected to seek past the remaining buffer_size expressed
/llvm-project-15.0.7/llvm/include/llvm-c/
H A Dlto.h619 size_t buffer_size,
/llvm-project-15.0.7/llvm/tools/lto/
H A Dlto.cpp683 lto_input_t lto_input_create(const void *buffer, size_t buffer_size, const char *path) { in DEFINE_SIMPLE_CONVERSION_FUNCTIONS()
684 return wrap(LTOModule::createInputFile(buffer, buffer_size, path, sLastErrorString)); in DEFINE_SIMPLE_CONVERSION_FUNCTIONS()
/llvm-project-15.0.7/llvm/lib/LTO/
H A DLTOModule.cpp657 size_t buffer_size, const char *path, in createInputFile() argument
659 StringRef Data((const char *)buffer, buffer_size); in createInputFile()
/llvm-project-15.0.7/lldb/include/lldb/Utility/
H A DLog.h62 StreamLogHandler(int fd, bool should_close, size_t buffer_size = 0);
/llvm-project-15.0.7/lldb/include/lldb/Core/
H A DDebugger.h248 size_t buffer_size, LogHandlerKind log_handler_kind,

12