1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- /* SPDX-License-Identifier: GPL-2.0-only */
- /*
- * Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. All rights reserved.
- */
- #undef TRACE_SYSTEM
- #define TRACE_SYSTEM gsi
- #define TRACE_INCLUDE_FILE gsi_trace
- #if !defined(_GSI_TRACE_H) || defined(TRACE_HEADER_MULTI_READ)
- #define _GSI_TRACE_H
- #include <linux/tracepoint.h>
- TRACE_EVENT(
- gsi_qtimer,
- TP_PROTO(u64 qtimer, bool is_ll, uint8_t evt, uint32_t ch, uint32_t msk),
- TP_ARGS(qtimer, is_ll, evt, ch, msk),
- TP_STRUCT__entry(
- __field(u64, qtimer)
- __field(bool, is_ll)
- __field(uint8_t, evt)
- __field(uint32_t, ch)
- __field(uint32_t, msk)
- ),
- TP_fast_assign(
- __entry->qtimer = qtimer;
- __entry->is_ll = is_ll;
- __entry->evt = evt;
- __entry->ch = ch;
- __entry->msk = msk;
- ),
- TP_printk("qtimer=%llu is_ll=%s, evt=%u, ch=0x%x, msk=0x%x",
- __entry->qtimer,
- __entry->is_ll ? "true" : "false",
- __entry->evt,
- __entry->ch,
- __entry->msk)
- );
- #endif /* _GSI_TRACE_H */
- /* This part must be outside protection */
- #ifndef GSI_TRACE_INCLUDE_PATH
- #ifdef CONFIG_IPA_VENDOR_DLKM
- #define GSI_TRACE_INCLUDE_PATH ../../../../vendor/qcom/opensource/dataipa/drivers/platform/msm/gsi
- #else
- #define GSI_TRACE_INCLUDE_PATH ../../techpack/dataipa/drivers/platform/msm/gsi
- #endif
- #endif
- #define TRACE_INCLUDE_PATH GSI_TRACE_INCLUDE_PATH
- #include <trace/define_trace.h>
|