qcacmn: Enhance data path traces to show latency in us
Enhance data path tx/rx traces to show latency in microseconds. Change-Id: Ic3457e38bb1bcc354fe81b087185bd94be8b0b94 CRs-Fixed: 3523927
This commit is contained in:

committed by
Rahul Choudhary

parent
baf49c9f89
commit
051073735a
@@ -4990,7 +4990,7 @@ dp_tx_comp_process_desc(struct dp_soc *soc,
|
|||||||
qdf_trace_dp_packet(desc->nbuf, QDF_TX,
|
qdf_trace_dp_packet(desc->nbuf, QDF_TX,
|
||||||
desc->msdu_ext_desc ?
|
desc->msdu_ext_desc ?
|
||||||
desc->msdu_ext_desc->tso_desc : NULL,
|
desc->msdu_ext_desc->tso_desc : NULL,
|
||||||
qdf_ktime_to_ms(desc->timestamp));
|
qdf_ktime_to_us(desc->timestamp));
|
||||||
|
|
||||||
if (!(desc->msdu_ext_desc)) {
|
if (!(desc->msdu_ext_desc)) {
|
||||||
dp_tx_enh_unmap(soc, desc);
|
dp_tx_enh_unmap(soc, desc);
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2021-2022 Qualcomm Innovation Center, Inc. All rights reserved.
|
* Copyright (c) 2021-2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||||
*
|
*
|
||||||
* Permission to use, copy, modify, and/or distribute this software for
|
* Permission to use, copy, modify, and/or distribute this software for
|
||||||
* any purpose with or without fee is hereby granted, provided that the
|
* any purpose with or without fee is hereby granted, provided that the
|
||||||
@@ -94,9 +94,9 @@ void qdf_trace_dp_packet(qdf_nbuf_t nbuf, enum qdf_proto_dir dir,
|
|||||||
uint8_t ip_offset = QDF_NBUF_TRAC_IP_OFFSET;
|
uint8_t ip_offset = QDF_NBUF_TRAC_IP_OFFSET;
|
||||||
|
|
||||||
if (dir == QDF_TX)
|
if (dir == QDF_TX)
|
||||||
latency = (qdf_ktime_to_ms(qdf_ktime_real_get()) - enq_time);
|
latency = (qdf_ktime_to_us(qdf_ktime_real_get()) - enq_time);
|
||||||
else
|
else
|
||||||
latency = qdf_nbuf_get_timedelta_ms(nbuf);
|
latency = qdf_nbuf_get_timedelta_us(nbuf);
|
||||||
|
|
||||||
ether_type = QDF_SWAP_U16(*(uint16_t *)(data +
|
ether_type = QDF_SWAP_U16(*(uint16_t *)(data +
|
||||||
QDF_NBUF_TRAC_ETH_TYPE_OFFSET));
|
QDF_NBUF_TRAC_ETH_TYPE_OFFSET));
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2021-2022 Qualcomm Innovation Center, Inc. All rights reserved.
|
* Copyright (c) 2021-2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||||
*
|
*
|
||||||
* Permission to use, copy, modify, and/or distribute this software for
|
* Permission to use, copy, modify, and/or distribute this software for
|
||||||
* any purpose with or without fee is hereby granted, provided that the
|
* any purpose with or without fee is hereby granted, provided that the
|
||||||
@@ -73,7 +73,7 @@ DECLARE_EVENT_CLASS(dp_trace_tcp_pkt_class,
|
|||||||
__entry->dstport = dstport;
|
__entry->dstport = dstport;
|
||||||
__entry->tdelta = tdelta;
|
__entry->tdelta = tdelta;
|
||||||
),
|
),
|
||||||
TP_printk("skb=%pK seqnum=%u acknum=%u srcport=%u dstport=%u latency(ms)=%llu",
|
TP_printk("skb=%pK seqnum=%u acknum=%u srcport=%u dstport=%u latency(us)=%llu",
|
||||||
__entry->skb, __entry->tcp_seq_num,
|
__entry->skb, __entry->tcp_seq_num,
|
||||||
__entry->tcp_ack_num, __entry->srcport,
|
__entry->tcp_ack_num, __entry->srcport,
|
||||||
__entry->dstport, __entry->tdelta)
|
__entry->dstport, __entry->tdelta)
|
||||||
@@ -112,7 +112,7 @@ DECLARE_EVENT_CLASS(dp_trace_udp_pkt_class,
|
|||||||
__entry->dstport = dstport;
|
__entry->dstport = dstport;
|
||||||
__entry->tdelta = tdelta;
|
__entry->tdelta = tdelta;
|
||||||
),
|
),
|
||||||
TP_printk("skb=%pK ip_id=%u srcport=%u dstport=%d latency(ms)=%llu",
|
TP_printk("skb=%pK ip_id=%u srcport=%u dstport=%d latency(us)=%llu",
|
||||||
__entry->skb, __entry->ip_id,
|
__entry->skb, __entry->ip_id,
|
||||||
__entry->srcport, __entry->dstport,
|
__entry->srcport, __entry->dstport,
|
||||||
__entry->tdelta)
|
__entry->tdelta)
|
||||||
@@ -150,7 +150,7 @@ DECLARE_EVENT_CLASS(dp_trace_generic_ip_pkt_class,
|
|||||||
__entry->trans_hdr_4_bytes = trans_hdr_4_bytes;
|
__entry->trans_hdr_4_bytes = trans_hdr_4_bytes;
|
||||||
__entry->tdelta = tdelta;
|
__entry->tdelta = tdelta;
|
||||||
),
|
),
|
||||||
TP_printk("skb=%pK ip_proto=0x%x ip_id=0x%x, transport_hdr[4]:0x%08x, latency(ms)=%llu",
|
TP_printk("skb=%pK ip_proto=0x%x ip_id=0x%x, transport_hdr[4]:0x%08x, latency(us)=%llu",
|
||||||
__entry->skb, __entry->ip_proto,
|
__entry->skb, __entry->ip_proto,
|
||||||
__entry->ip_id, __entry->trans_hdr_4_bytes,
|
__entry->ip_id, __entry->trans_hdr_4_bytes,
|
||||||
__entry->tdelta)
|
__entry->tdelta)
|
||||||
@@ -188,7 +188,7 @@ DECLARE_EVENT_CLASS(dp_trace_pkt_class,
|
|||||||
__entry->ether_type = ether_type;
|
__entry->ether_type = ether_type;
|
||||||
__entry->tdelta = tdelta;
|
__entry->tdelta = tdelta;
|
||||||
),
|
),
|
||||||
TP_printk("skb=%pK ether_type=0x%x latency(ms)=%llu",
|
TP_printk("skb=%pK ether_type=0x%x latency(us)=%llu",
|
||||||
__entry->skb, __entry->ether_type,
|
__entry->skb, __entry->ether_type,
|
||||||
__entry->tdelta)
|
__entry->tdelta)
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user