drm/panel: panel-himax-hx83102: support for csot-pna957qt1-1 MIPI-DSI panel
[drm/drm-misc.git] / drivers / net / wireless / intel / iwlwifi / iwl-devtrace.c
blob7e686297963d6665465dcfe7d792eabfc83cd850
1 // SPDX-License-Identifier: GPL-2.0-only
2 /******************************************************************************
4 * Copyright(c) 2009 - 2014 Intel Corporation. All rights reserved.
5 * Copyright (C) 2018, 2023 Intel Corporation
6 *****************************************************************************/
8 #include <linux/module.h>
10 /* sparse doesn't like tracepoint macros */
11 #ifndef __CHECKER__
12 #include "iwl-trans.h"
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"
20 EXPORT_TRACEPOINT_SYMBOL(iwlwifi_dev_ucode_event);
21 EXPORT_TRACEPOINT_SYMBOL(iwlwifi_dev_ucode_cont_event);
22 EXPORT_TRACEPOINT_SYMBOL(iwlwifi_dev_ucode_wrap_event);
23 #else
24 #include "iwl-devtrace.h"
25 #endif /* __CHECKER__ */
27 void __trace_iwlwifi_dev_rx(struct iwl_trans *trans, void *pkt, size_t len)
29 size_t hdr_offset = 0, trace_len;
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);
34 if (trace_len < len)
35 trace_iwlwifi_dev_rx_data(trans->dev, pkt, len, trace_len);