Commit graph

15 commits

Author SHA1 Message Date
Kalle Valo
69808f48c1 Update ath10k_pktlog.py
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
2023-01-10 15:08:10 +02:00
Kalle Valo
6cb86fb99b Update ath10k_pktlog.py
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
2020-05-20 16:31:24 +03:00
Kalle Valo
db953a5381 Update ath10k_pktlog.py
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
2017-10-31 13:27:10 +02:00
Maharaja Kennadyrajan
8a80300141 tracing: Fix pktlog support for QCA9888 & QCA9984 chipsets
This patch enables the support for parsing pktlog from trace
points taken on a QCA9888 & QCA9984 chipsets.

Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
2017-08-15 12:09:27 +03:00
Ashok Raj Nagarajan
cf8d9a8c83 tracing: update hw revision enumeration
Updating the hw enumeration here to keep in sync with ath10k.

kvalo: ath10k accidentally broke the backwards compatibility in
hw revision in these commits:

e565c3125e03 ath10k: enable support for QCA9888
651b4cdcf97e ath10k: enable support for QCA9984

But this should not happen anymore. I added a comment to document
that.
2016-08-30 09:31:53 +03:00
Ashok Raj Nagarajan
e5f25e1af0 tracing: don't throw exception when payload given is higher
With "ath10k: simplify pktlog htt event processing" approach, driver passes
entire payload stipping the htt_response header. By this method, we could
receive pktlog events that has payload size higher than mentioned in pktlog
header (for alignment reasons)

This issue is seen with 10.2 FW for ATH10K_PKTLOG_TYPE_TX_MSDU_ID type events.

So throw exception only when payload size is lesser than the one mentioned in
pktlog header
2016-06-22 14:05:56 +03:00
Rajkumar Manoharan
dfd83b4336 tracing: fix txctl handling
txctl log type manipulates pktlog header and log data as well. payload
length should be handled differently for 10.2 and 10.4 based firmware.
Not doing so, will generate invalid pktlog data file.
2016-06-22 14:05:53 +03:00
Rajkumar Manoharan
4b4ce97aa9 tracing: fix hw_type checks for qca40xx 2016-06-22 14:05:53 +03:00
Rajkumar Manoharan
40f0f7474b tracing: fix hw revision enumeration 2016-06-22 14:05:53 +03:00
Ashok Raj Nagarajan
17622eeb5d tracing: add pktlog support for QCA40xx chipsets
This patch enables the support for generate pktlog.dat from trace points
taken on a QCA40xx chipsets
2016-06-07 10:10:37 +03:00
Ashok Raj Nagarajan
c991fcb638 tracing: extend plugin to support pktlog for 10.4 FW
Currently tracing plugin works only for QCA988X chipsets. This patch
extend the support to generate pktlog for QCA99X0.

With the ath10k commit "ath10k: add hw_rev to trace events to support
pktlog" we now have a new attribute passed with tracing events
"hw_type" that helps to determine the chipset used for taking the trace
points. This is helpful in getting FW variant used thereby generating
pktlog.dat accordingly.

To support backward compatibility for older versions of ath10k, assume the
default value of the hw_type, if not provided, to be HW_QCA988X (0).
2016-02-08 15:22:25 +02:00
Anilkumar Kolli
cfb531695a tracing: ath10k: fix htt_rx_desc for QCA988X
ath10k_htt_rx_desc has QCA988X,QCA99X0 and QCA6174 packet information.
ath10k_htt_rx_desc has QCA99X0 relted structures at various offsets. The current
script has not taken care of QCA99X0 changes.

This modification has fix for QCA988X chipsets.

We will fix this script for all the supported chipsets later by sending
one more trcing attribute from the driver.
2015-12-30 15:46:07 +02:00
Rajkumar Manoharan
7903ede3c6 tracing: fix msdu_id processing pktlog_tx_msdu_id
Whenever trace record is started in middle of data flow, the
msdu_len_tbl is not fully populated. For the initial MSDU_ID log
types, msdu_id can not be found in msdu_len_tbl. If the entries
are not found set the msdu_len to 0. This will also fix below
errors.

  File "ath10k_pktlog.py", line 297, in <lambda>
    ath10k_htt_pktlog_handler(pevent, *args))
  File "ath10k_pktlog.py", line 238, in ath10k_htt_pktlog_handler
    pktlog_tx_msdu_id(buf)
  File "ath10k_pktlog.py", line 218, in pktlog_tx_msdu_id
    msdu_len = msdu_len_tbl[msdu_id]
2015-01-29 17:19:56 +02:00
Rajkumar Manoharan
04d7947835 tracing: fix rxdesc parsing in ath10k_pktlog.py
Since tsf is valid only for last mpdu and it is already part
of rx descriptor dump, tsf argument is removed from
ath10k_htt_rx_desc tracepoint in ath10k. Hence updating the
parser accordingly.
2015-01-12 20:20:43 +02:00
Kalle Valo
6e45f8edcd tracing: add ath10k_pktlog.py 2014-11-04 05:34:31 +02:00