ipa: Added traces in dataipa for rmnet low latency

Added traces for low latency rmnet path in ipa

Change-Id: Ib1973227cddee797d8d8af680f32abf7427aabaf
This commit is contained in:
Abhishek Raghuvanshi
2022-04-22 16:03:23 -07:00
committed by Gerrit - the friendly Code Review server
parent cf2cd24579
commit ddcad8036e
2 changed files with 23 additions and 10 deletions

View File

@@ -6947,11 +6947,11 @@ start_poll:
if (ret)
break;
trace_ipa3_rx_poll_num(num);
trace_ipa3_napi_rx_poll_num(ep->client, num);
ipa3_rx_napi_chain(ep->sys, notify, num);
remain_aggr_weight -= num;
trace_ipa3_rx_poll_cnt(ep->sys->len);
trace_ipa3_napi_rx_poll_cnt(ep->client, ep->sys->len);
if (ep->sys->len == 0) {
if (remain_aggr_weight == 0)
cnt--;
@@ -7160,6 +7160,8 @@ static int ipa3_rmnet_ll_rx_poll(struct napi_struct *napi_rx, int budget)
}
sys->napi_sort_page_thrshld_cnt++;
trace_ipa3_napi_poll_entry(sys->ep->client);
start_poll:
/*
* it is guaranteed we already have clock here.
@@ -7173,9 +7175,12 @@ start_poll:
remain_aggr_weight, &num);
if (ret)
break;
trace_ipa3_napi_rx_poll_num(sys->ep->client, num);
ipa3_rx_napi_chain(sys, notify, num);
remain_aggr_weight -= num;
trace_ipa3_napi_rx_poll_cnt(sys->ep->client, sys->len);
if (sys->len == 0) {
if (remain_aggr_weight == 0)
cnt--;

View File

@@ -156,39 +156,47 @@ TRACE_EVENT(
);
TRACE_EVENT(
ipa3_rx_poll_num,
ipa3_napi_rx_poll_num,
TP_PROTO(int poll_num),
TP_PROTO(unsigned long client, int poll_num),
TP_ARGS(poll_num),
TP_ARGS(client, poll_num),
TP_STRUCT__entry(
__field(unsigned long, client)
__field(int, poll_num)
),
TP_fast_assign(
__entry->client = client;
__entry->poll_num = poll_num;
),
TP_printk("each_poll_aggr_pkt_num=%d", __entry->poll_num)
TP_printk("client=%lu each_poll_aggr_pkt_num=%d",
__entry->client,
__entry->poll_num)
);
TRACE_EVENT(
ipa3_rx_poll_cnt,
ipa3_napi_rx_poll_cnt,
TP_PROTO(int poll_num),
TP_PROTO(unsigned long client, int poll_num),
TP_ARGS(poll_num),
TP_ARGS(client, poll_num),
TP_STRUCT__entry(
__field(unsigned long, client)
__field(int, poll_num)
),
TP_fast_assign(
__entry->client = client;
__entry->poll_num = poll_num;
),
TP_printk("napi_overall_poll_pkt_cnt=%d", __entry->poll_num)
TP_printk("client=%lu napi_overall_poll_pkt_cnt=%d",
__entry->client,
__entry->poll_num)
);
TRACE_EVENT(