Loading...
1// SPDX-License-Identifier: GPL-2.0-only
2/******************************************************************************
3 *
4 * Copyright(c) 2009 - 2014 Intel Corporation. All rights reserved.
5 * Copyright (C) 2018, 2023 Intel Corporation
6 *****************************************************************************/
7
8#include <linux/module.h>
9
10/* sparse doesn't like tracepoint macros */
11#ifndef __CHECKER__
12#include "iwl-trans.h"
13
14#define CREATE_TRACE_POINTS
15#ifdef CONFIG_CC_IS_GCC
16#pragma GCC diagnostic ignored "-Wsuggest-attribute=format"
17#endif
18#include "iwl-devtrace.h"
19
20EXPORT_TRACEPOINT_SYMBOL(iwlwifi_dev_ucode_event);
21EXPORT_TRACEPOINT_SYMBOL(iwlwifi_dev_ucode_cont_event);
22EXPORT_TRACEPOINT_SYMBOL(iwlwifi_dev_ucode_wrap_event);
23#else
24#include "iwl-devtrace.h"
25#endif /* __CHECKER__ */
26
27void __trace_iwlwifi_dev_rx(struct iwl_trans *trans, void *pkt, size_t len)
28{
29 size_t hdr_offset = 0, trace_len;
30
31 trace_len = iwl_rx_trace_len(trans, pkt, len, &hdr_offset);
32 trace_iwlwifi_dev_rx(trans->dev, pkt, len, trace_len, hdr_offset);
33
34 if (trace_len < len)
35 trace_iwlwifi_dev_rx_data(trans->dev, pkt, len, trace_len);
36}
1/******************************************************************************
2 *
3 * Copyright(c) 2009 - 2014 Intel Corporation. All rights reserved.
4 *
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of version 2 of the GNU General Public License as
7 * published by the Free Software Foundation.
8 *
9 * This program is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12 * more details.
13 *
14 * You should have received a copy of the GNU General Public License along with
15 * this program; if not, write to the Free Software Foundation, Inc.,
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
17 *
18 * The full GNU General Public License is included in this distribution in the
19 * file called LICENSE.
20 *
21 * Contact Information:
22 * Intel Linux Wireless <linuxwifi@intel.com>
23 * Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497
24 *
25 *****************************************************************************/
26
27#include <linux/module.h>
28
29/* sparse doesn't like tracepoint macros */
30#ifndef __CHECKER__
31#include "iwl-trans.h"
32
33#define CREATE_TRACE_POINTS
34#include "iwl-devtrace.h"
35
36EXPORT_TRACEPOINT_SYMBOL(iwlwifi_dev_iowrite8);
37EXPORT_TRACEPOINT_SYMBOL(iwlwifi_dev_ioread32);
38EXPORT_TRACEPOINT_SYMBOL(iwlwifi_dev_iowrite32);
39EXPORT_TRACEPOINT_SYMBOL(iwlwifi_dev_ucode_event);
40EXPORT_TRACEPOINT_SYMBOL(iwlwifi_dev_ucode_error);
41EXPORT_TRACEPOINT_SYMBOL(iwlwifi_dev_ucode_cont_event);
42EXPORT_TRACEPOINT_SYMBOL(iwlwifi_dev_ucode_wrap_event);
43#endif