Home
last modified time | relevance | path

Searched refs:shmem (Results 1 – 25 of 43) sorted by relevance

12

/external/ltp/testcases/kernel/containers/sysvipc/
Dshm_comm.c62 char *shmem; in chld1_shm() local
70 if ((shmem = shmat(id, NULL, 0)) == (char *) -1) { in chld1_shm()
76 *shmem = 'A'; in chld1_shm()
81 if (*shmem != 'A') in chld1_shm()
87 shmdt(shmem); in chld1_shm()
95 char *shmem; in chld2_shm() local
103 if ((shmem = shmat(id, NULL, 0)) == (char *) -1) { in chld2_shm()
112 *shmem = 'B'; in chld2_shm()
116 shmdt(shmem); in chld2_shm()
/external/perfetto/src/profiling/memory/
Dwire_protocol.cc60 int64_t WithBuffer(SharedRingBuffer* shmem, size_t total_size, F fn) { in WithBuffer() argument
63 ScopedSpinlock lock = shmem->AcquireLock(ScopedSpinlock::Mode::Try); in WithBuffer()
69 buf = shmem->BeginWrite(lock, total_size); in WithBuffer()
73 shmem->EndWrite(std::move(buf)); in WithBuffer()
81 shmem->EndWrite(std::move(buf)); in WithBuffer()
87 int64_t SendWireMessage(SharedRingBuffer* shmem, const WireMessage& msg) { in SendWireMessage() argument
93 shmem, total_size, [msg](SharedRingBuffer::Buffer* buf) { in SendWireMessage()
107 shmem, total_size, [msg](SharedRingBuffer::Buffer* buf) { in SendWireMessage()
117 shmem, total_size, [msg](SharedRingBuffer::Buffer* buf) { in SendWireMessage()
Dunwinding.cc213 SharedRingBuffer& shmem = client_data.shmem; in OnDisconnect() local
222 auto lock = shmem.AcquireLock(ScopedSpinlock::Mode::Try); in OnDisconnect()
224 stats = shmem.GetStats(lock); in OnDisconnect()
251 SharedRingBuffer& shmem = client_data->shmem; in ReadAndUnwindBatch() local
257 buf = shmem.BeginRead(); in ReadAndUnwindBatch()
262 shmem.EndRead(std::move(buf)); in ReadAndUnwindBatch()
303 client_data.shmem.SetReaderPaused(); in BatchUnwindJob()
395 std::move(handoff_data.shmem), in HandleHandoffSocket()
401 client_data.shmem.SetReaderPaused(); in HandleHandoffSocket()
423 client_data.shmem.SetShuttingDown(); in HandleDisconnectSocket()
Dclient.cc240 auto shmem = SharedRingBuffer::Attach(std::move(shmem_fd)); in CreateAndHandshake() local
241 if (!shmem || !shmem->is_valid()) { in CreateAndHandshake()
249 client_config, std::move(shmem.value()), in CreateAndHandshake()
255 SharedRingBuffer shmem, in Client() argument
262 shmem_(std::move(shmem)), in Client()
Dunwinding.h79 SharedRingBuffer shmem; member
110 SharedRingBuffer shmem; member
Dheapprofd_producer.cc886 int raw_fd = pending_process.shmem.fd(); in OnDataAvailable()
902 handoff_data.shmem = std::move(pending_process.shmem); in OnDataAvailable()
968 auto shmem = SharedRingBuffer::Create(static_cast<size_t>(shmem_size)); in HandleClientConnection() local
969 if (!shmem || !shmem->is_valid()) { in HandleClientConnection()
983 pending_process.shmem = std::move(*shmem); in HandleClientConnection()
Dclient.h100 SharedRingBuffer shmem,
/external/libchrome/base/memory/
Dshared_memory_unittest.cc475 SharedMemory shmem; in TEST_P() local
476 ASSERT_TRUE(shmem.CreateAndMapAnonymous(contents.size())); in TEST_P()
477 memcpy(shmem.memory(), contents.data(), contents.size()); in TEST_P()
478 EXPECT_TRUE(shmem.Unmap()); in TEST_P()
480 SharedMemoryHandle shared_handle = shmem.handle().Duplicate(); in TEST_P()
483 EXPECT_EQ(shared_handle.GetGUID(), shmem.handle().GetGUID()); in TEST_P()
484 EXPECT_EQ(shared_handle.GetSize(), shmem.handle().GetSize()); in TEST_P()
492 shared_handle = shmem.handle().Duplicate(); in TEST_P()
506 SharedMemory shmem; in TEST_P() local
507 ASSERT_TRUE(shmem.CreateAndMapAnonymous(kContents.size())); in TEST_P()
[all …]
/external/arm-trusted-firmware/fdts/
Dmorello.dtsi73 cpu_scp_hpri0: scp-shmem@0 {
74 compatible = "arm,scmi-shmem";
78 cpu_scp_hpri1: scp-shmem@80 {
79 compatible = "arm,scmi-shmem";
Dtc0.dts184 cpu_scp_scmi_mem: scp-shmem@0 {
185 compatible = "arm,scmi-shmem";
216 shmem = <&cpu_scp_scmi_mem &cpu_scp_scmi_mem>;
Dmorello-fvp.dts122 shmem = <&cpu_scp_hpri0 &cpu_scp_hpri1>;
/external/mesa3d/src/panfrost/bifrost/test/
Dbi_submit.c170 struct panfrost_bo *shmem = bit_bo_create(dev, 4096); in bit_vertex() local
172 pan_pack(shmem->ptr.cpu, LOCAL_STORAGE, cfg) { in bit_vertex()
196 cfg.thread_storage = shmem->ptr.gpu; in bit_vertex()
213 shmem, shader, shader_desc, ubo, var, attr in bit_vertex()
/external/perfetto/src/tracing/ipc/service/
Dproducer_ipc_service.cc94 std::unique_ptr<SharedMemory> shmem; in InitializeConnection() local
98 shmem = PosixSharedMemory::AttachToFd( in InitializeConnection()
100 if (!shmem) { in InitializeConnection()
117 req.shared_memory_page_size_hint_bytes(), std::move(shmem), in InitializeConnection()
/external/libchrome/ipc/
Dipc_message_utils_unittest.cc147 base::SharedMemory shmem; in TEST() local
148 ASSERT_TRUE(shmem.Create(options)); in TEST()
150 base::SharedMemoryHandle pre_pickle = shmem.handle().Duplicate(); in TEST()
/external/perfetto/docs/reference/
Dheap_profile-cli.md11 [--shmem-size SHMEM_SIZE] [--block-client]
37 | --shmem-size | Size of buffer between client and heapprofd. Default 8MiB. Needs to be a power of …
/external/autotest/server/site_tests/firmware_Cr50ConsoleCommands/
Dhelp.guc30 shmem
Dhelp33 shmem
/external/llvm-project/compiler-rt/test/fuzzer/
Dequivalence-signals.test3 # to stress the signal handling and ensure that shmem doesn't mind
/external/libchrome/base/process/
Dprocess_metrics_unittest.cc192 EXPECT_EQ(meminfo.shmem, 140204); in TEST_F()
458 EXPECT_GT(info.shmem, 0); in TEST()
459 EXPECT_LT(info.shmem, info.total); in TEST()
/external/libchrome/base/debug/
Dactivity_analyzer_unittest.cc224 std::unique_ptr<SharedMemory> shmem(new SharedMemory()); in TEST_F() local
225 ASSERT_TRUE(shmem->CreateAndMapAnonymous(kMemorySize)); in TEST_F()
226 handle1 = shmem->handle().Duplicate(); in TEST_F()
228 handle2 = shmem->handle().Duplicate(); in TEST_F()
/external/e2fsprogs/lib/ext2fs/tdb/patches/
Dreplace-includes12 -#include "system/shmem.h"
/external/linux-kselftest/android/patches/
D0013-run_vmtests.patch144 -./userfaultfd shmem 128 32
299 +#./userfaultfd shmem 128 32
/external/libchrome/libchrome_tools/patch/
Dshared_memory_posix.patch21 // Chromium mostly only uses the unique/private shmem as specified by
/external/tensorflow/third_party/hwloc/
DBUILD.bazel240 "hwloc/shmem.c",
250 "include/hwloc/shmem.h",
/external/perfetto/docs/design-docs/
Dheapprofd-wire-protocol.md15 ![](/docs/images/heapprofd-design/shmem-overview.png)
26 ![](/docs/images/heapprofd-design/shmem-detail.png)

12