/external/ltp/testcases/kernel/containers/sysvipc/ |
shm_comm.c | 62 char *shmem; local 70 if ((shmem = shmat(id, NULL, 0)) == (char *) -1) { 76 *shmem = 'A'; 81 if (*shmem != 'A') 87 shmdt(shmem); 95 char *shmem; local 103 if ((shmem = shmat(id, NULL, 0)) == (char *) -1) { 112 *shmem = 'B'; 116 shmdt(shmem);
|
/device/linaro/hikey/hifi/xaf/hifi-dpf/ipc/xt-shmem/ |
xf-main.c | 105 xf_shmem_data_t *shmem = (xf_shmem_data_t *)XF_CFG_SHMEM_ADDRESS(core); local 108 cd->shmem = (xf_shmem_handle_t *)shmem; 109 shmem->buffer = (uint8_t *) HIFI_MUSIC_DATA_LOCATION; 112 XF_CHK_API(xf_mm_init(&cd->shared_pool, shmem->buffer, XF_CFG_REMOTE_IPC_POOL_SIZE));
|
/device/google/cuttlefish_common/host/commands/ivserver/ |
qemu_client.cc | 22 std::unique_ptr<QemuClient> QemuClient::New(const VSoCSharedMemory& shmem, 32 if (!res->PerformHandshake(shmem)) { 44 bool QemuClient::PerformHandshake(const VSoCSharedMemory& shmem) { 73 for (const auto& region_data : shmem.Regions()) { 87 for (const auto& region_data : shmem.Regions()) { 97 if (!SendSocketInfo(kSharedMem, shmem.SharedMemFD())) {
|
qemu_client.h | 32 static std::unique_ptr<QemuClient> New(const VSoCSharedMemory &shmem,
|
hald_client.cc | 29 std::unique_ptr<HaldClient> HaldClient::New(const VSoCSharedMemory& shmem, 40 if (!res->PerformHandshake(shmem)) {
|
/device/linaro/hikey/hifi/xaf/host-apf/include/sys/fio/ |
xf-ipc.h | 35 void *shmem; member in struct:xf_proxy_ipc_data 63 return (unsigned char *) ipc->shmem + address; 77 if ((a = (u32)((u8 *)b - (u8 *)ipc->shmem)) < XF_CFG_REMOTE_IPC_POOL_SIZE)
|
/device/linaro/hikey/hifi/xaf/hifi-dpf/build_hikey/ |
Makefile | 41 vpath %.c $(ROOTDIR)/ipc/xt-shmem/hikey 42 vpath %.c $(ROOTDIR)/ipc/xt-shmem 49 vpath %.S $(ROOTDIR)/ipc/xt-shmem/hikey 72 xf-shmem.o \ 124 -I$(ROOTDIR)/include/sys/xt-shmem \ 125 -I$(ROOTDIR)/include/sys/xt-shmem/board-hikey \
|
/device/linaro/hikey/hifi/xaf/hifi-dpf/include/sys/xt-shmem/ |
xf-ipc.h | 39 #include "xf-shmem.h" 272 xf_shmem_data_t *shmem = XF_CORE_DATA(core)->shmem; local 273 void *start = shmem->buffer; 285 xf_shmem_data_t *shmem = XF_CORE_DATA(core)->shmem; local 286 void *start = shmem->buffer;
|
xf-shmem.h | 24 * xf-shmem.h 26 * Definitions for Xtensa SHMEM configuration 31 #error "xf-shmem.h mustn't be included directly" 102 ((xf_shmem_data_t *)XF_CORE_DATA(core)->shmem) 154 * Platform-specific SHMEM enable status
|
/external/perfetto/src/profiling/memory/ |
wire_protocol.cc | 48 bool SendWireMessage(SharedRingBuffer* shmem, const WireMessage& msg) { 84 ScopedSpinlock lock = shmem->AcquireLock(ScopedSpinlock::Mode::Try); 90 buf = shmem->BeginWrite(lock, total_size); 94 shmem->EndWrite(std::move(buf)); 106 shmem->EndWrite(std::move(buf));
|
unwinding.cc | 247 // TODO(fmayer): Maybe try to drain shmem one last time. 254 SharedRingBuffer& shmem = client_data.shmem; local 268 auto lock = shmem.AcquireLock(ScopedSpinlock::Mode::Try); 270 stats = shmem.GetStats(lock); 272 PERFETTO_ELOG("Failed to log shmem to get stats."); 299 SharedRingBuffer& shmem = client_data.shmem; local 308 buf = shmem.BeginRead(); 314 shmem.EndRead(std::move(buf)) [all...] |
client.cc | 194 PERFETTO_DFATAL("Did not receive shmem fd."); 198 auto shmem = SharedRingBuffer::Attach(std::move(shmem_fd)); local 199 if (!shmem || !shmem->is_valid()) { 200 PERFETTO_DFATAL("Failed to attach to shmem."); 212 client_config, std::move(shmem.value()), 219 SharedRingBuffer shmem, 227 shmem_(std::move(shmem)),
|
client.h | 89 SharedRingBuffer shmem,
|
unwinding.h | 151 SharedRingBuffer shmem; member in struct:perfetto::profiling::UnwindingWorker::HandoffData 190 SharedRingBuffer shmem; member in struct:perfetto::profiling::UnwindingWorker::ClientData
|
heapprofd_producer.cc | 673 int raw_fd = pending_process.shmem.fd(); 685 handoff_data.shmem = std::move(pending_process.shmem); 735 auto shmem = SharedRingBuffer::Create(shmem_size); local 736 if (!shmem || !shmem->is_valid()) { 750 pending_process.shmem = std::move(*shmem);
|
heapprofd_producer.h | 192 SharedRingBuffer shmem; member in struct:perfetto::profiling::HeapprofdProducer::PendingProcess
|
/device/linaro/hikey/hifi/xaf/hifi-dpf/include/ |
xf-core.h | 127 xf_shmem_handle_t shmem; member in struct:xf_core_data
|
/external/libchrome/base/memory/ |
shared_memory_unittest.cc | 285 // On POSIX we have a problem when 2 threads try to create the shmem 289 // intentionally don't clean up its shmem before running with 475 SharedMemory shmem; local 476 ASSERT_TRUE(shmem.CreateAndMapAnonymous(contents.size())); 477 memcpy(shmem.memory(), contents.data(), contents.size()); 478 EXPECT_TRUE(shmem.Unmap()); 480 SharedMemoryHandle shared_handle = shmem.handle().Duplicate(); 483 EXPECT_EQ(shared_handle.GetGUID(), shmem.handle().GetGUID()); 484 EXPECT_EQ(shared_handle.GetSize(), shmem.handle().GetSize()); 492 shared_handle = shmem.handle().Duplicate() 506 SharedMemory shmem; local [all...] |
/device/linaro/hikey/hifi/xaf/host-apf/proxy/ |
xf-fio.c | 151 //size_t xf_cfg_remote_ipc_pool_size = *(size_t *)p_shmem;//user configured shmem pool size: minimum 256 KB 167 // ipc->shmem = remote_ipc_pool; 168 // ioctl(ipc->fd, HIFI_MISC_IOCTL_XAF_IPC_VMSG_PTR, ipc->shmem); 171 XF_CHK_ERR((ipc->shmem = mmap(NULL, XF_CFG_REMOTE_IPC_POOL_SIZE, PROT_READ | PROT_WRITE, MAP_SHARED, ipc->fd, 0)) != MAP_FAILED, -errno); 173 XF_CHK_ERR((ipc->shmem = mmap(NULL, xf_cfg_remote_ipc_pool_size, PROT_READ | PROT_WRITE, MAP_SHARED, ipc->fd, 0)) != MAP_FAILED, -errno); 183 // (void)munmap(ipc->shmem, XF_CFG_REMOTE_IPC_POOL_SIZE);
|
/external/libchrome/ipc/ |
ipc_message_utils_unittest.cc | 147 base::SharedMemory shmem; local 148 ASSERT_TRUE(shmem.Create(options)); 150 base::SharedMemoryHandle pre_pickle = shmem.handle().Duplicate();
|
ipc_channel_mojo_unittest.cc | 1485 base::SharedMemory shmem; local [all...] |
/external/libchrome/base/process/ |
process_metrics_unittest.cc | 132 "Shmem: 140204 kB\n" 192 EXPECT_EQ(meminfo.shmem, 140204); 457 // Chrome OS exposes shmem. 458 EXPECT_GT(info.shmem, 0); 459 EXPECT_LT(info.shmem, info.total);
|
process_metrics.h | 286 // Linux/Android/Chrome OS. Shmem/slab/gem_objects/gem_size are Chrome OS only. 339 int shmem = 0; member in struct:base::SystemMemoryInfoKB
|
process_metrics_linux.cc | 488 res->SetInteger("shmem", shmem); 552 // Chrome OS has a tweaked kernel that allows querying Shmem, which is 554 else if (tokens[0] == "Shmem:") 555 target = &meminfo->shmem;
|
/external/syzkaller/sys/targets/ |
targets.go | 40 // If ExecutorUsesShmem, programs and coverage are passed through shmem, otherwise via pipes.
|