forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-31 f70575805708cabdedea7498aaa3f710fde4d920
kernel/drivers/net/wireless/intel/iwlwifi/iwl-devtrace-data.h
....@@ -1,23 +1,9 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /******************************************************************************
23 *
34 * Copyright(c) 2009 - 2014 Intel Corporation. All rights reserved.
45 * 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
217 *
228 * Contact Information:
239 * Intel Linux Wireless <linuxwifi@intel.com>
....@@ -33,38 +19,22 @@
3319 #undef TRACE_SYSTEM
3420 #define TRACE_SYSTEM iwlwifi_data
3521
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),
4026 TP_STRUCT__entry(
4127 DEV_ENTRY
28
+ __field(u64, phys)
4229
4330 __dynamic_array(u8, data,
44
- iwl_trace_data(skb) ? skb->len - hdr_len : 0)
31
+ iwl_trace_data(skb) ? data_len : 0)
4532 ),
4633 TP_fast_assign(
4734 DEV_ASSIGN;
35
+ __entry->phys = phys;
4836 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);
6838 ),
6939 TP_printk("[%s] TX frame data", __get_str(dev))
7040 );
....@@ -76,12 +46,11 @@
7646 TP_ARGS(dev, trans, rxbuf, len),
7747 TP_STRUCT__entry(
7848 DEV_ENTRY
79
-
8049 __dynamic_array(u8, data,
81
- len - iwl_rx_trace_len(trans, rxbuf, len))
50
+ len - iwl_rx_trace_len(trans, rxbuf, len, NULL))
8251 ),
8352 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);
8554 DEV_ASSIGN;
8655 if (offs < len)
8756 memcpy(__get_dynamic_array(data),