You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
944 B

#include "BootvideoDftevent.h"
#include <utils/Log.h>
#include <cutils/klog.h>
#include <sys/prctl.h>
#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;
}