| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
|---|
| 1 | 2 | /****************************************************************************** |
|---|
| 2 | 3 | * |
|---|
| 3 | 4 | * Copyright(c) 2009 - 2014 Intel Corporation. All rights reserved. |
|---|
| 4 | 5 | * Copyright(c) 2015 Intel Deutschland GmbH |
|---|
| 5 | | - * |
|---|
| 6 | | - * This program is free software; you can redistribute it and/or modify it |
|---|
| 7 | | - * under the terms of version 2 of the GNU General Public License as |
|---|
| 8 | | - * published by the Free Software Foundation. |
|---|
| 9 | | - * |
|---|
| 10 | | - * This program is distributed in the hope that it will be useful, but WITHOUT |
|---|
| 11 | | - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|---|
| 12 | | - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for |
|---|
| 13 | | - * more details. |
|---|
| 14 | | - * |
|---|
| 15 | | - * You should have received a copy of the GNU General Public License along with |
|---|
| 16 | | - * this program; if not, write to the Free Software Foundation, Inc., |
|---|
| 17 | | - * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA |
|---|
| 18 | | - * |
|---|
| 19 | | - * The full GNU General Public License is included in this distribution in the |
|---|
| 20 | | - * file called LICENSE. |
|---|
| 6 | + * Copyright(c) 2018 - 2019 Intel Corporation |
|---|
| 21 | 7 | * |
|---|
| 22 | 8 | * Contact Information: |
|---|
| 23 | 9 | * Intel Linux Wireless <linuxwifi@intel.com> |
|---|
| .. | .. |
|---|
| 33 | 19 | #undef TRACE_SYSTEM |
|---|
| 34 | 20 | #define TRACE_SYSTEM iwlwifi_data |
|---|
| 35 | 21 | |
|---|
| 36 | | -TRACE_EVENT(iwlwifi_dev_tx_data, |
|---|
| 37 | | - TP_PROTO(const struct device *dev, |
|---|
| 38 | | - struct sk_buff *skb, u8 hdr_len), |
|---|
| 39 | | - TP_ARGS(dev, skb, hdr_len), |
|---|
| 22 | +TRACE_EVENT(iwlwifi_dev_tx_tb, |
|---|
| 23 | + TP_PROTO(const struct device *dev, struct sk_buff *skb, |
|---|
| 24 | + u8 *data_src, dma_addr_t phys, size_t data_len), |
|---|
| 25 | + TP_ARGS(dev, skb, data_src, phys, data_len), |
|---|
| 40 | 26 | TP_STRUCT__entry( |
|---|
| 41 | 27 | DEV_ENTRY |
|---|
| 28 | + __field(u64, phys) |
|---|
| 42 | 29 | |
|---|
| 43 | 30 | __dynamic_array(u8, data, |
|---|
| 44 | | - iwl_trace_data(skb) ? skb->len - hdr_len : 0) |
|---|
| 31 | + iwl_trace_data(skb) ? data_len : 0) |
|---|
| 45 | 32 | ), |
|---|
| 46 | 33 | TP_fast_assign( |
|---|
| 47 | 34 | DEV_ASSIGN; |
|---|
| 35 | + __entry->phys = phys; |
|---|
| 48 | 36 | if (iwl_trace_data(skb)) |
|---|
| 49 | | - skb_copy_bits(skb, hdr_len, |
|---|
| 50 | | - __get_dynamic_array(data), |
|---|
| 51 | | - skb->len - hdr_len); |
|---|
| 52 | | - ), |
|---|
| 53 | | - TP_printk("[%s] TX frame data", __get_str(dev)) |
|---|
| 54 | | -); |
|---|
| 55 | | - |
|---|
| 56 | | -TRACE_EVENT(iwlwifi_dev_tx_tso_chunk, |
|---|
| 57 | | - TP_PROTO(const struct device *dev, |
|---|
| 58 | | - u8 *data_src, size_t data_len), |
|---|
| 59 | | - TP_ARGS(dev, data_src, data_len), |
|---|
| 60 | | - TP_STRUCT__entry( |
|---|
| 61 | | - DEV_ENTRY |
|---|
| 62 | | - |
|---|
| 63 | | - __dynamic_array(u8, data, data_len) |
|---|
| 64 | | - ), |
|---|
| 65 | | - TP_fast_assign( |
|---|
| 66 | | - DEV_ASSIGN; |
|---|
| 67 | | - memcpy(__get_dynamic_array(data), data_src, data_len); |
|---|
| 37 | + memcpy(__get_dynamic_array(data), data_src, data_len); |
|---|
| 68 | 38 | ), |
|---|
| 69 | 39 | TP_printk("[%s] TX frame data", __get_str(dev)) |
|---|
| 70 | 40 | ); |
|---|
| .. | .. |
|---|
| 76 | 46 | TP_ARGS(dev, trans, rxbuf, len), |
|---|
| 77 | 47 | TP_STRUCT__entry( |
|---|
| 78 | 48 | DEV_ENTRY |
|---|
| 79 | | - |
|---|
| 80 | 49 | __dynamic_array(u8, data, |
|---|
| 81 | | - len - iwl_rx_trace_len(trans, rxbuf, len)) |
|---|
| 50 | + len - iwl_rx_trace_len(trans, rxbuf, len, NULL)) |
|---|
| 82 | 51 | ), |
|---|
| 83 | 52 | TP_fast_assign( |
|---|
| 84 | | - size_t offs = iwl_rx_trace_len(trans, rxbuf, len); |
|---|
| 53 | + size_t offs = iwl_rx_trace_len(trans, rxbuf, len, NULL); |
|---|
| 85 | 54 | DEV_ASSIGN; |
|---|
| 86 | 55 | if (offs < len) |
|---|
| 87 | 56 | memcpy(__get_dynamic_array(data), |
|---|