qcacmn: Add support to print time on event log and command log

print event time and command time along event/command logging

Change-Id: I4562f76d4d15f9c42080795007af94422c14e33c
diff --git a/wmi_unified.c b/wmi_unified.c
index 189ad99..5dcb27f 100644
--- a/wmi_unified.c
+++ b/wmi_unified.c
@@ -745,6 +745,7 @@
 			&wmi_handle->log_info.wmi_##func_base##_buf_info;\
 		int pos, nread, outlen;					\
 		int i;							\
+		uint64_t secs, usecs;					\
 									\
 		qdf_spin_lock(&wmi_handle->log_info.wmi_record_lock);	\
 		if (!wmi_log->length) {					\
@@ -773,6 +774,11 @@
 			&(((struct wmi_command_debug *)wmi_log->buf)[pos]);\
 			outlen += wmi_bp_seq_printf(m, "CMD ID = %x\n",	\
 				(wmi_record->command));			\
+			qdf_log_timestamp_to_secs(wmi_record->time, &secs,\
+				&usecs);				\
+			outlen +=					\
+			wmi_bp_seq_printf(m, "CMD TIME = [%llu.%06llu]\n",\
+				secs, usecs);				\
 			outlen += wmi_bp_seq_printf(m, "CMD = ");	\
 			for (i = 0; i < (wmi_record_max_length/		\
 					sizeof(uint32_t)); i++)		\
@@ -797,6 +803,7 @@
 			&wmi_handle->log_info.wmi_##func_base##_buf_info;\
 		int pos, nread, outlen;					\
 		int i;							\
+		uint64_t secs, usecs;					\
 									\
 		qdf_spin_lock(&wmi_handle->log_info.wmi_record_lock);	\
 		if (!wmi_log->length) {					\
@@ -823,8 +830,13 @@
 									\
 			wmi_record = (struct wmi_event_debug *)		\
 			&(((struct wmi_event_debug *)wmi_log->buf)[pos]);\
+			qdf_log_timestamp_to_secs(wmi_record->time, &secs,\
+				&usecs);				\
 			outlen += wmi_bp_seq_printf(m, "Event ID = %x\n",\
 				(wmi_record->event));			\
+			outlen +=					\
+			wmi_bp_seq_printf(m, "Event TIME = [%llu.%06llu]\n",\
+				secs, usecs);				\
 			outlen += wmi_bp_seq_printf(m, "CMD = ");	\
 			for (i = 0; i < (wmi_record_max_length/		\
 					sizeof(uint32_t)); i++)		\