|
@@ -482,8 +482,9 @@ static int pkt_stats_fill_headers(struct sk_buff *skb)
|
|
|
cds_pkt_size);
|
|
|
|
|
|
if (unlikely(skb_headroom(skb) < cds_pkt_size)) {
|
|
|
- pr_err("VPKT [%d]: Insufficient headroom, head[%pK], data[%pK], req[%zu]",
|
|
|
- __LINE__, skb->head, skb->data, sizeof(msg_header));
|
|
|
+ qdf_nofl_err("VPKT [%d]: Insufficient headroom, head[%pK], data[%pK], req[%zu]",
|
|
|
+ __LINE__, skb->head, skb->data,
|
|
|
+ sizeof(msg_header));
|
|
|
return -EIO;
|
|
|
}
|
|
|
|
|
@@ -491,8 +492,9 @@ static int pkt_stats_fill_headers(struct sk_buff *skb)
|
|
|
&cds_pktlog, cds_pkt_size);
|
|
|
|
|
|
if (unlikely(skb_headroom(skb) < sizeof(int))) {
|
|
|
- pr_err("VPKT [%d]: Insufficient headroom, head[%pK], data[%pK], req[%zu]",
|
|
|
- __LINE__, skb->head, skb->data, sizeof(int));
|
|
|
+ qdf_nofl_err("VPKT [%d]: Insufficient headroom, head[%pK], data[%pK], req[%zu]",
|
|
|
+ __LINE__, skb->head, skb->data,
|
|
|
+ sizeof(int));
|
|
|
return -EIO;
|
|
|
}
|
|
|
|
|
@@ -513,8 +515,9 @@ static int pkt_stats_fill_headers(struct sk_buff *skb)
|
|
|
msg_header.wmsg.length = cpu_to_be16(skb->len);
|
|
|
|
|
|
if (unlikely(skb_headroom(skb) < sizeof(msg_header))) {
|
|
|
- pr_err("VPKT [%d]: Insufficient headroom, head[%pK], data[%pK], req[%zu]",
|
|
|
- __LINE__, skb->head, skb->data, sizeof(msg_header));
|
|
|
+ qdf_nofl_err("VPKT [%d]: Insufficient headroom, head[%pK], data[%pK], req[%zu]",
|
|
|
+ __LINE__, skb->head, skb->data,
|
|
|
+ sizeof(msg_header));
|
|
|
return -EIO;
|
|
|
}
|
|
|
|
|
@@ -564,8 +567,8 @@ static int pktlog_send_per_pkt_stats_to_user(void)
|
|
|
skb_new = dev_alloc_skb(MAX_SKBMSG_LENGTH);
|
|
|
if (!skb_new) {
|
|
|
if (!rate_limit) {
|
|
|
- pr_err("%s: dev_alloc_skb() failed for msg size[%d] drop count = %u\n",
|
|
|
- __func__, MAX_SKBMSG_LENGTH,
|
|
|
+ qdf_nofl_err("%s: dev_alloc_skb() failed for msg size[%d] drop count = %u",
|
|
|
+ __func__, MAX_SKBMSG_LENGTH,
|
|
|
gwlan_logging.drop_count);
|
|
|
}
|
|
|
rate_limit = 1;
|
|
@@ -582,14 +585,15 @@ static int pktlog_send_per_pkt_stats_to_user(void)
|
|
|
|
|
|
ret = pkt_stats_fill_headers(pstats_msg->skb);
|
|
|
if (ret < 0) {
|
|
|
- pr_err("%s failed to fill headers %d\n", __func__, ret);
|
|
|
+ qdf_nofl_err("%s failed to fill headers %d",
|
|
|
+ __func__, ret);
|
|
|
free_old_skb = true;
|
|
|
goto err;
|
|
|
}
|
|
|
ret = nl_srv_bcast_diag(pstats_msg->skb);
|
|
|
if (ret < 0) {
|
|
|
- pr_info("%s: Send Failed %d drop_count = %u\n",
|
|
|
- __func__, ret,
|
|
|
+ qdf_nofl_info("%s: Send Failed %d drop_count = %u",
|
|
|
+ __func__, ret,
|
|
|
++gwlan_logging.pkt_stat_drop_cnt);
|
|
|
} else {
|
|
|
ret = 0;
|
|
@@ -640,10 +644,9 @@ static int send_filled_buffers_to_user(void)
|
|
|
skb = dev_alloc_skb(MAX_LOGMSG_LENGTH);
|
|
|
if (!skb) {
|
|
|
if (!rate_limit) {
|
|
|
- pr_err
|
|
|
- ("%s: dev_alloc_skb() failed for msg size[%d] drop count = %u\n",
|
|
|
- __func__, MAX_LOGMSG_LENGTH,
|
|
|
- gwlan_logging.drop_count);
|
|
|
+ qdf_nofl_err("%s: dev_alloc_skb() failed for msg size[%d] drop count = %u",
|
|
|
+ __func__, MAX_LOGMSG_LENGTH,
|
|
|
+ gwlan_logging.drop_count);
|
|
|
}
|
|
|
rate_limit = 1;
|
|
|
ret = -ENOMEM;
|
|
@@ -669,10 +672,10 @@ static int send_filled_buffers_to_user(void)
|
|
|
list_add_tail(&plog_msg->node,
|
|
|
&gwlan_logging.free_list);
|
|
|
spin_unlock_irqrestore(&gwlan_logging.spin_lock, flags);
|
|
|
- pr_err("%s: drop_count = %u\n", __func__,
|
|
|
- ++gwlan_logging.drop_count);
|
|
|
- pr_err("%s: nlmsg_put() failed for msg size[%d]\n",
|
|
|
- __func__, tot_msg_len);
|
|
|
+ qdf_nofl_err("%s: drop_count = %u", __func__,
|
|
|
+ ++gwlan_logging.drop_count);
|
|
|
+ qdf_nofl_err("%s: nlmsg_put() failed for msg size[%d]",
|
|
|
+ __func__, tot_msg_len);
|
|
|
dev_kfree_skb(skb);
|
|
|
skb = NULL;
|
|
|
ret = -EINVAL;
|
|
@@ -691,8 +694,8 @@ static int send_filled_buffers_to_user(void)
|
|
|
ret = nl_srv_bcast_host_logs(skb);
|
|
|
|
|
|
if (ret < 0 && (!(gwlan_logging.drop_count % 0x40))) {
|
|
|
- pr_err("%s: Send Failed %d drop_count = %u\n",
|
|
|
- __func__, ret, ++gwlan_logging.drop_count);
|
|
|
+ qdf_nofl_err("%s: Send Failed %d drop_count = %u",
|
|
|
+ __func__, ret, ++gwlan_logging.drop_count);
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -800,9 +803,8 @@ static int wlan_logging_thread(void *Arg)
|
|
|
|| gwlan_logging.exit));
|
|
|
|
|
|
if (ret_wait_status == -ERESTARTSYS) {
|
|
|
- pr_err
|
|
|
- ("%s: wait_event_interruptible returned -ERESTARTSYS",
|
|
|
- __func__);
|
|
|
+ qdf_nofl_err("%s: wait_event_interruptible returned -ERESTARTSYS",
|
|
|
+ __func__);
|
|
|
break;
|
|
|
}
|
|
|
|
|
@@ -935,8 +937,8 @@ int wlan_logging_sock_init_svc(void)
|
|
|
gwlan_logging.buffer_length = MAX_LOGMSG_LENGTH;
|
|
|
|
|
|
if (allocate_log_msg_buffer() != QDF_STATUS_SUCCESS) {
|
|
|
- pr_err("%s: Could not allocate memory for log_msg\n",
|
|
|
- __func__);
|
|
|
+ qdf_nofl_err("%s: Could not allocate memory for log_msg",
|
|
|
+ __func__);
|
|
|
return -ENOMEM;
|
|
|
}
|
|
|
|
|
@@ -957,8 +959,8 @@ int wlan_logging_sock_init_svc(void)
|
|
|
pkt_stats_size = sizeof(struct pkt_stats_msg);
|
|
|
gpkt_stats_buffers = vmalloc(MAX_PKTSTATS_BUFF * pkt_stats_size);
|
|
|
if (!gpkt_stats_buffers) {
|
|
|
- pr_err("%s: Could not allocate memory for Pkt stats\n",
|
|
|
- __func__);
|
|
|
+ qdf_nofl_err("%s: Could not allocate memory for Pkt stats",
|
|
|
+ __func__);
|
|
|
goto err1;
|
|
|
}
|
|
|
qdf_mem_zero(gpkt_stats_buffers,
|
|
@@ -974,7 +976,8 @@ int wlan_logging_sock_init_svc(void)
|
|
|
for (i = 0; i < MAX_PKTSTATS_BUFF; i++) {
|
|
|
gpkt_stats_buffers[i].skb = dev_alloc_skb(MAX_PKTSTATS_LENGTH);
|
|
|
if (!gpkt_stats_buffers[i].skb) {
|
|
|
- pr_err("%s: Memory alloc failed for skb", __func__);
|
|
|
+ qdf_nofl_err("%s: Memory alloc failed for skb",
|
|
|
+ __func__);
|
|
|
|
|
|
for (j = 0; j < i ; j++)
|
|
|
dev_kfree_skb(gpkt_stats_buffers[j].skb);
|
|
@@ -1001,8 +1004,8 @@ int wlan_logging_sock_init_svc(void)
|
|
|
gwlan_logging.thread = kthread_create(wlan_logging_thread, NULL,
|
|
|
"wlan_logging_thread");
|
|
|
if (IS_ERR(gwlan_logging.thread)) {
|
|
|
- pr_err("%s: Could not Create LogMsg Thread Controller",
|
|
|
- __func__);
|
|
|
+ qdf_nofl_err("%s: Could not Create LogMsg Thread Controller",
|
|
|
+ __func__);
|
|
|
goto err3;
|
|
|
}
|
|
|
wake_up_process(gwlan_logging.thread);
|
|
@@ -1133,8 +1136,8 @@ void wlan_flush_host_logs_for_fatal(void)
|
|
|
unsigned long flags;
|
|
|
|
|
|
if (gwlan_logging.flush_timer_period == 0)
|
|
|
- pr_info("%s:flush all host logs Setting HOST_LOG_POST_MASK\n",
|
|
|
- __func__);
|
|
|
+ qdf_nofl_info("%s:flush all host logs Setting HOST_LOG_POST_MAS",
|
|
|
+ __func__);
|
|
|
spin_lock_irqsave(&gwlan_logging.spin_lock, flags);
|
|
|
wlan_queue_logmsg_for_app();
|
|
|
spin_unlock_irqrestore(&gwlan_logging.spin_lock, flags);
|
|
@@ -1181,8 +1184,8 @@ static int wlan_get_pkt_stats_free_node(void)
|
|
|
if (
|
|
|
cds_is_multicast_logging() &&
|
|
|
(!(gwlan_logging.pkt_stat_drop_cnt % 0x40))) {
|
|
|
- pr_err("%s: drop_count = %u\n",
|
|
|
- __func__, gwlan_logging.pkt_stat_drop_cnt);
|
|
|
+ qdf_nofl_err("%s: drop_count = %u",
|
|
|
+ __func__, gwlan_logging.pkt_stat_drop_cnt);
|
|
|
}
|
|
|
list_del_init(gwlan_logging.pkt_stat_filled_list.next);
|
|
|
ret = 1;
|
|
@@ -1217,7 +1220,7 @@ void wlan_pkt_stats_to_logger_thread(void *pl_hdr, void *pkt_dump, void *data)
|
|
|
pktlog_hdr = (struct ath_pktlog_hdr *)pl_hdr;
|
|
|
|
|
|
if (!pktlog_hdr) {
|
|
|
- pr_err("%s : Invalid pkt_stats_header\n", __func__);
|
|
|
+ qdf_nofl_err("%s : Invalid pkt_stats_header", __func__);
|
|
|
return;
|
|
|
}
|
|
|
|
|
@@ -1327,7 +1330,7 @@ static void send_packetdump(ol_txrx_soc_handle soc,
|
|
|
struct packet_dump pd_hdr = {0};
|
|
|
|
|
|
if (!netbuf) {
|
|
|
- pr_err("%s: Invalid netbuf.\n", __func__);
|
|
|
+ qdf_nofl_err("%s: Invalid netbuf.", __func__);
|
|
|
return;
|
|
|
}
|
|
|
|