Re: [PATCH] ath10k: handle ieee80211 header and payload tracing separately

2014-10-30 Thread Rajkumar Manoharan
On Wed, Oct 29, 2014 at 04:05:44PM +0100, Johannes Berg wrote: On Wed, 2014-10-29 at 19:39 +0530, Rajkumar Manoharan wrote: + u32 hdr_len = ieee80211_hdrlen(hdr-frame_control); + trace_ath10k_rx_hdr(ar, hdr, hdr_len); + trace_ath10k_rx_payload(ar, skb-data + hdr_len, skb-len -

[PATCH] ath10k: handle ieee80211 header and payload tracing separately

2014-10-29 Thread Rajkumar Manoharan
For packet log, the transmitted frame 802.11 header alone is sufficient. Recording entire packet is also consuming lot of disk space. To optimize this, tx and rx data tracepoints are splitted into header and payload tracepoints. To record tx ieee80211 headers trace-cmd record -e

Re: [PATCH] ath10k: handle ieee80211 header and payload tracing separately

2014-10-29 Thread Johannes Berg
On Wed, 2014-10-29 at 19:39 +0530, Rajkumar Manoharan wrote: + u32 hdr_len = ieee80211_hdrlen(hdr-frame_control); + trace_ath10k_rx_hdr(ar, hdr, hdr_len); + trace_ath10k_rx_payload(ar, skb-data + hdr_len, skb-len - hdr_len); Another note, since you're taking my suggestion :-) It