Home
last modified time | relevance | path

Searched refs:pipe (Results 1 – 25 of 28) sorted by relevance

12

/developtools/integration_verification/tools/deps_guard/elf_file_mgr/
Dutils.py36 pipe = os.popen(command + ' ' + ' '.join(args), 'r')
37 output = pipe.read().strip()
38 status = pipe.close()
/developtools/hdc/src/test/jdwp/
DHdcJdwpSimulator.cpp159 uv_pipe_t *pipe = reinterpret_cast<uv_pipe_t *>(q); in ReceiveNewFd() local
160 if (!uv_pipe_pending_count(pipe)) { in ReceiveNewFd()
164 uv_handle_type pending = uv_pipe_pending_type(pipe); in ReceiveNewFd()
221 thisClass->SendToStream(reinterpret_cast<uv_stream_t *>(&ctxJdwp->pipe), info, pkgSize, in ConnectJdwp()
237 thisClass->SendToStream(reinterpret_cast<uv_stream_t *>(&ctxJdwp->pipe), in ConnectJdwp()
241 uv_read_start(reinterpret_cast<uv_stream_t *>(&ctxJdwp->pipe), thisClass->alloc_buffer, in ConnectJdwp()
253 ctx->pipe.data = ctx; in MallocContext()
264 if (loop && !uv_is_closing(reinterpret_cast<uv_handle_t *>(&ctxPoint->pipe))) { in FreeContext()
265 uv_close(reinterpret_cast<uv_handle_t *>(&ctxPoint->pipe), nullptr); in FreeContext()
286 uv_pipe_init(loop, static_cast<uv_pipe_t *>(&ctxPoint->pipe), 1); in Connect()
[all …]
DHdcJdwpSimulator.h31 uv_pipe_t pipe; member
/developtools/hdc/test/fuzztest/jdwpreadstream_fuzzer/
DJdwpReadStream_fuzzer.cpp46 uv_pipe_t pipe; in FuzzJdwpReadStream() local
47 pipe.data = ctx; in FuzzJdwpReadStream()
48 uv_stream_t *stream = (uv_stream_t *)&pipe; in FuzzJdwpReadStream()
/developtools/hdc/test/unittest/common/
DHdcJdwpTest.cpp78 uv_pipe_t pipe; variable
79 uv_stream_t *stream = (uv_stream_t *)&pipe;
83 pipe.data = ctxJdwp;
/developtools/hdc/src/common/
Dforward.cpp110 uv_pipe_init(ctxClient->thisClass->loopTask, &ctxClient->pipe, 0); in ListenCallback()
111 client = (uv_stream_t *)&ctxClient->pipe; in ListenCallback()
127 ctx->pipe.data = ctx; in MallocContext()
204 Base::TryCloseHandle((uv_handle_t *)&ctx->pipe, true, funcHandleClose); in FreeContext()
420 bool HdcForwardBase::LocalAbstractConnect(uv_pipe_t *pipe, string &sNodeCfg) in LocalAbstractConnect() argument
445 if (uv_pipe_open(pipe, s)) { in LocalAbstractConnect()
460 ctxPoint->pipe.data = ctxPoint; in SetupFilePoint()
461 uv_pipe_init(loopTask, &ctxPoint->pipe, 0); in SetupFilePoint()
466 if (uv_pipe_bind(&ctxPoint->pipe, sNodeCfg.c_str())) { in SetupFilePoint()
470 if (uv_listen((uv_stream_t *)&ctxPoint->pipe, 4, ListenCallback)) { in SetupFilePoint()
[all …]
Dforward.h49 uv_pipe_t pipe; member
102 bool LocalAbstractConnect(uv_pipe_t *pipe, string &sNodeCfg);
Dasync_cmd.cpp210 pipe(fds); in Popen()
/developtools/profiler/device/plugins/hiebpf_plugin/src/
Dhiebpf_module.cpp39 std::unique_ptr<FILE, decltype(&pclose)> pipe(popen(cmd.c_str(), "r"), pclose); in RunCmd() local
40 if (pipe == nullptr) { in RunCmd()
47 while (fgets(buffer.data(), buffer.size(), pipe.get()) != nullptr) { in RunCmd()
/developtools/profiler/device/plugins/bytrace_plugin/src/
Dbytrace_module.cpp69 std::unique_ptr<FILE, decltype(&pclose)> pipe(popen(cmd.data(), "r"), pclose); in RunCommand() local
70 CHECK_TRUE(pipe, false, "BytraceCall::RunCommand: create popen FAILED!"); in RunCommand()
74 while (fgets(buffer.data(), buffer.size(), pipe.get()) != nullptr) { in RunCommand()
/developtools/hdc/src/daemon/
Djdwp.cpp69 ctx->pipe.data = ctx; in MallocContext()
82 Base::TryCloseHandle((const uv_handle_t *)&ctx->pipe); in FreeContext()
111 void HdcJdwp::ReadStream(uv_stream_t *pipe, ssize_t nread, const uv_buf_t *buf) in ReadStream() argument
129 HCtxJdwp ctxJdwp = static_cast<HCtxJdwp>(pipe->data); in ReadStream()
162 if (uv_fileno(reinterpret_cast<uv_handle_t *>(&(ctxJdwp->pipe)), &fd) < 0) { in ReadStream()
216 uv_pipe_init(thisClass->loop, &ctxJdwp->pipe, 1); in AcceptClient()
217 if (uv_accept(server, (uv_stream_t *)&ctxJdwp->pipe) < 0) { in AcceptClient()
229 uv_read_start((uv_stream_t *)&ctxJdwp->pipe, funAlloc, ReadStream); in AcceptClient()
389 …if (Base::SendToStreamEx((uv_stream_t *)&ctx->pipe, (uint8_t *)&ctx->dummy, 1, (uv_stream_t *)&ctx… in SendJdwpNewFD()
428 uv_stream_t *stream = (uv_stream_t *)&ctx->pipe; in SendArkNewFD()
Djdwp.h70 uv_pipe_t pipe; member
88 static void ReadStream(uv_stream_t *pipe, ssize_t nread, const uv_buf_t *buf);
/developtools/profiler/device/cmds/test/unittest/
Dhiprofiler_cmd_test.cpp85 std::unique_ptr<FILE, decltype(&pclose)> pipe(popen(stopCmd.c_str(), "r"), pclose); in StopProcessStub() local
91 std::unique_ptr<FILE, decltype(&pclose)> pipe(popen(cmd.c_str(), "r"), pclose); in RunCommand() local
92 CHECK_TRUE(pipe, false, "RunCommand: create popen FAILED!"); in RunCommand()
94 while (fgets(buffer.data(), buffer.size(), pipe.get()) != nullptr) { in RunCommand()
474 std::unique_ptr<FILE, decltype(&pclose)> pipe(popen(findpid.c_str(), "r"), pclose); in KillProcess() local
478 if (fgets(line, sizeof(line), pipe.get()) == nullptr) { in KillProcess()
/developtools/ace_js2bundle/ace-loader/
Dmodule-source.js55 readable.pipe(writable);
/developtools/profiler/device/plugins/ftrace_plugin/src/
Dprocess_utils.cpp56 CHECK_TRUE(pipe(pipe_) != -1, -1, "create pipe failed, %d", errno); in Init()
223 CHECK_TRUE(pipe(pipeFds) != -1, -1, "create pipe failed, %d", errno); in Execute()
/developtools/hdc/hdc_rust/src/common/
Duds.rs26 use libc::{fcntl, pipe, read, send, socketpair, write, MSG_EOR};
216 let ret = pipe(fd_buf[..].as_mut_ptr()); in wrap_pipe()
/developtools/ace_js2bundle/ace-loader/src/
Dresource-plugin.js61 readStream.pipe(writeStream);
/developtools/profiler/device/plugins/native_daemon/test/unittest/common/native/
Dhook_manager_test.cpp71 std::unique_ptr<FILE, decltype(&pclose)> pipe(popen(stopCmd.c_str(), "r"), pclose); in StopServerStub() local
/developtools/profiler/device/services/ipc/src/
Dunix_socket_server.cpp134 std::unique_ptr<FILE, decltype(&pclose)> pipe(popen(chmodCmd.c_str(), "r"), pclose); in StartServer() local
/developtools/profiler/device/plugins/api/test/unittest/
Dplugin_manager_test.cpp74 std::unique_ptr<FILE, decltype(&pclose)> pipe(popen(stopCmd.c_str(), "r"), pclose); in TearDownTestCase() local
/developtools/profiler/device/plugins/hidump_plugin/src/
Dhidump_plugin.cpp195 pipe(fd); in CustomPopen()
/developtools/hiperf/interfaces/innerkits/native/src/
Dhiperf_client.cpp401 if (pipe(clientToServerFd) != 0) { in Start()
406 } else if (pipe(serverToClientFd) != 0) { in Start()
/developtools/profiler/device/plugins/memory_plugin/src/
Dmemory_data_plugin.cpp1045 std::unique_ptr<FILE, decltype(&pclose)> pipe(popen(cmd.c_str(), "r"), pclose); in RunCommand() local
1046 if (!pipe) { in RunCommand()
1052 while (fgets(buffer.data(), buffer.size(), pipe.get()) != nullptr) { in RunCommand()
/developtools/profiler/device/base/src/
Dcommon.cpp257 CHECK_TRUE(pipe(fds) == 0, nullptr, "Pipe open failed!"); in CustomPopen()
/developtools/profiler/device/plugins/memory_plugin/test/unittest/
Dmemory_data_plugin_unittest.cpp370 std::unique_ptr<FILE, decltype(&pclose)> pipe(popen(findpid.c_str(), "r"), pclose); in GetPid() local
374 if (fgets(line, sizeof(line), pipe.get()) == nullptr) { in GetPid()

12