Commit graph

8 commits

Author SHA1 Message Date
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