#include "BootvideoDftevent.h" #include #include #include #include "dft_event.h" int BootvideoDfteventReport(int eventId, std::string currentFuncName, std::string parentFuncName, std::string bootvideoPath) { int ret = 0; unsigned int handle; char name[64] = {0}; ret = dft_event_create(eventId, &handle); if (ret == BT_SUCCESS) { prctl(PR_GET_NAME, name); dft_event_put_string(handle, "PNAME", name); dft_event_put_string(handle, "F1NAME", currentFuncName.c_str()); dft_event_put_string(handle, "F2NAME", parentFuncName.c_str()); dft_event_put_string(handle, "PATH", bootvideoPath.c_str()); dft_event_put_integral(handle, "ERR_NO", eventId); dft_event_report(handle); dft_event_destroy(handle); } else { ALOGD("event: %d create failed.", eventId); } return ret; }