Home
last modified time | relevance | path

Searched refs:nbytes (Results 1 – 13 of 13) sorted by relevance

/developtools/profiler/hiebpf/include/
Dhhlog.h63 std::size_t nbytes = ftime.length(); in PutLog() local
64 if (nbytes == 0 or nbytes >= MAX_HHLOG_SIZE) { in PutLog()
68 if (memcpy_s(buffer, sizeof(buffer), ftime.c_str(), nbytes) != EOK) { in PutLog()
71 int ret = vsnprintf_s(buffer + nbytes, sizeof(buffer) - nbytes, in PutLog()
72 sizeof(buffer) - nbytes - 1, format, args); in PutLog()
77 nbytes += static_cast<std::size_t>(ret); in PutLog()
78 if (nbytes >= MAX_HHLOG_SIZE) { in PutLog()
81 buffer[nbytes++] = '\n'; in PutLog()
82 return buf_->Put(buffer, nbytes); in PutLog()
Dbpf_event_receiver.h41 #define PADDING(nbytes) char reserve_[nbytes] argument
Dvmlinux.h43157 unsigned int nbytes; member
59420 unsigned int nbytes; member
114096 int nbytes; member
114104 int nbytes; member
124997 unsigned int nbytes; member
126027 u8 nbytes; member
126033 u8 nbytes; member
126039 u8 nbytes; member
126047 unsigned int nbytes; member
141991 uint32_t nbytes; member
[all …]
/developtools/profiler/device/plugins/ftrace_plugin/src/
Dresult_transporter.cpp47 void ResultTransporter::SetFlushThreshold(uint32_t nbytes) in SetFlushThreshold() argument
49 PROFILER_LOG_INFO(LOG_CORE, "ResultTransporter set flush threshold to %u", nbytes); in SetFlushThreshold()
50 flushThreshold_ = nbytes; in SetFlushThreshold()
100 long nbytes = Write(std::move(packet)); in Submit() local
101 if (nbytes < 0) { in Submit()
106 bytesCount_ += nbytes; in Submit()
107 bytesPending_ += nbytes; in Submit()
Dflow_controller.cpp323 long nbytes = ReadEventData(i); in CaptureWorkOnNomalModeInner() local
324 rawDataBytes[i] = nbytes; in CaptureWorkOnNomalModeInner()
359 long nbytes = 0; in HmReadEventData() local
362 while ((nbytes = reader->Read(&buffer[used], rest)) > 0 && used < bufferSize) { in HmReadEventData()
363 used += nbytes; in HmReadEventData()
364 rest -= nbytes; in HmReadEventData()
431 long nbytes = ReadEventData(cpuIdx); in CaptureWorkOnDelayMode() local
432 if (nbytes == 0) { in CaptureWorkOnDelayMode()
437 fwrite(&nbytes, sizeof(long), 1, rawDataFile_.get()); in CaptureWorkOnDelayMode()
438 fwrite(ftraceBuffers_[cpuIdx].get(), sizeof(uint8_t), nbytes, rawDataFile_.get()); in CaptureWorkOnDelayMode()
[all …]
/developtools/profiler/device/plugins/ftrace_plugin/test/unittest/
Dfile_utils_test.cpp108 int nbytes = data_.size(); variable
110 EXPECT_EQ(retval, nbytes); // expect write success!
140 int nbytes = data_.size(); variable
142 EXPECT_EQ(retval, nbytes);
/developtools/profiler/device/plugins/ftrace_plugin/include/
Dresult_transporter.h46 void SetFlushThreshold(uint32_t nbytes);
/developtools/profiler/device/base/src/
Depoll_event_poller.cpp162 auto nbytes = write(eventFd_, &value, sizeof(value)); in Notify() local
163 CHECK_TRUE(static_cast<size_t>(nbytes) == sizeof(value), false, "write eventfd FAILED!"); in Notify()
Dcommon.cpp113 auto nbytes = write(fd, pidStr.data(), pidStr.size()); in IsProcessRunning() local
115 CHECK_TRUE(static_cast<size_t>(nbytes) == pidStr.size(), false, "write pid FAILED!"); in IsProcessRunning()
/developtools/profiler/device/plugins/api/src/
Dplugin_manager.cpp46 size_t nbytes = 0; in ComputeFileSha256() local
52 while ((nbytes = fread(buffer, 1, sizeof(buffer), fptr.get())) > 0) { in ComputeFileSha256()
53 SHA256_Update(&sha, buffer, nbytes); in ComputeFileSha256()
/developtools/profiler/device/services/profiler_service/src/
Dtrace_file_writer.cpp266 long nbytes = sizeof(dataLen) + size; in Write() local
267 writeBytes_ += nbytes; in Write()
269 return nbytes; in Write()
/developtools/profiler/device/cmds/test/unittest/
Dhiprofiler_cmd_test.cpp109 size_t nbytes = 0; in ComputeFileSha256() local
125 while ((nbytes = fread(buffer, 1, sizeof(buffer), fptr.get())) > 0) { in ComputeFileSha256()
126 SHA256_Update(&sha, buffer, nbytes); in ComputeFileSha256()
/developtools/hdc/src/daemon/
Ddaemon.cpp275 int nbytes = read(fds[0], buf, sizeof(buf)); in InitMod() local
276 WRITE_LOG(LOG_FATAL, "user_permit put %d bytes: %s", nbytes, buf); in InitMod()