Home
last modified time | relevance | path

Searched refs:eventSize (Results 1 – 7 of 7) sorted by relevance

/base/hiviewdfx/hiview/base/event_store/utility/reader/
Dsys_event_doc_reader.cpp274 int SysEventDocReader::BuildRawEvent(uint8_t** rawEvent, uint32_t& eventSize, uint8_t* content, uin… in BuildRawEvent() argument
281 eventSize = contentSize - SEQ_SIZE + MAX_DOMAIN_LEN + MAX_EVENT_NAME_LEN; in BuildRawEvent()
282 if (eventSize > MAX_NEW_SIZE) { in BuildRawEvent()
283 HIVIEW_LOGE("invalid new event size=%{public}u", eventSize); in BuildRawEvent()
286 uint8_t* event = new(std::nothrow) uint8_t[eventSize]; in BuildRawEvent()
288 HIVIEW_LOGE("failed to new memory for raw event, size=%{public}u", eventSize); in BuildRawEvent()
291 if (memcpy_s(event, eventSize, reinterpret_cast<char*>(&eventSize), BLOCK_SIZE) != EOK) { in BuildRawEvent()
297 if (memcpy_s(event + eventPos, eventSize - eventPos, domain_.c_str(), MAX_DOMAIN_LEN) != EOK) { in BuildRawEvent()
303 … if (memcpy_s(event + eventPos, eventSize - eventPos, name_.c_str(), MAX_EVENT_NAME_LEN) != EOK) { in BuildRawEvent()
309 if (memcpy_s(event + eventPos, eventSize - eventPos, content + BLOCK_SIZE + SEQ_SIZE, in BuildRawEvent()
[all …]
/base/hiviewdfx/hiview/plugins/faultlogger/service/sanitizer_collector/
Dsanitizerd_monitor.cpp44 int eventSize; in ReadNotify() local
83 eventSize = sizeof(*event) + event->len; in ReadNotify()
84 res -= eventSize; in ReadNotify()
85 eventPos += eventSize; in ReadNotify()
/base/hiviewdfx/hiview/base/event_store/utility/reader/include/
Dsys_event_doc_reader.h45 …int BuildRawEvent(uint8_t** rawEvent, uint32_t& eventSize, uint8_t* content, uint32_t contentSize);
46 int BuildEventJson(std::string& eventJson, uint8_t* rawEvent, uint32_t eventSize, int64_t seq);
/base/sensors/sensor/frameworks/native/sensor/src/
Dsensor_file_descriptor_listener.cpp60 int32_t eventSize = static_cast<int32_t>(sizeof(SensorData)); in OnReadable() local
62 int32_t num = len / eventSize; in OnReadable()
/base/sensors/medical_sensor/frameworks/native/medical_sensor/src/
Dmy_file_descriptor_listener.cpp52 int32_t eventSize = sizeof(struct TransferMedicalSensorEvents); in OnReadable() local
54 int32_t num = len / eventSize; in OnReadable()
/base/sensors/medical_sensor/services/medical_sensor/src/
Dmedical_data_processer.cpp239 size_t eventSize = event.size(); in SendRawData() local
241 for (int32_t i = 0; i < (int32_t)eventSize; i++) { in SendRawData()
256 …auto ret = channel->SendData(transferEvents.data(), eventSize * sizeof(struct TransferMedicalSenso… in SendRawData()
259 uint32_t sensorId = event[eventSize - 1].sensorTypeId; in SendRawData()
261 sensorId = event[eventSize - 1].sensorTypeId; in SendRawData()
263 cacheBuf[sensorId] = event[eventSize - 1]; in SendRawData()
/base/sensors/sensor/services/sensor/src/
Dsensor_data_processer.cpp204 size_t eventSize = events.size(); in SendRawData() local
205 auto ret = channel->SendData(events.data(), eventSize * sizeof(SensorData)); in SendRawData()
208 int32_t sensorId = events[eventSize - 1].sensorTypeId; in SendRawData()
209 cacheBuf[sensorId] = events[eventSize - 1]; in SendRawData()