blob: 433fdbfb1e65a0c6a50fd784583d949b5f39e17b [file] [log] [blame]
/* Copyright (c) 2018, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
* only version 2 as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
#undef TRACE_SYSTEM
#define TRACE_SYSTEM mpm
#if !defined(_TRACE_MPM_) || defined(TRACE_HEADER_MULTI_READ)
#define _TRACE_MPM_H_
#include <linux/tracepoint.h>
TRACE_EVENT(mpm_wakeup_enable_irqs,
TP_PROTO(uint32_t index, uint32_t irqs),
TP_ARGS(index, irqs),
TP_STRUCT__entry(
__field(uint32_t, index)
__field(uint32_t, irqs)
),
TP_fast_assign(
__entry->index = index;
__entry->irqs = irqs;
),
TP_printk("index:%u wakeup_capable_irqs:0x%x",
__entry->index, __entry->irqs)
);
TRACE_EVENT(mpm_wakeup_pending_irqs,
TP_PROTO(uint32_t index, uint32_t irqs),
TP_ARGS(index, irqs),
TP_STRUCT__entry(
__field(uint32_t, index)
__field(uint32_t, irqs)
),
TP_fast_assign(
__entry->index = index;
__entry->irqs = irqs;
),
TP_printk("index:%u wakeup_irqs:0x%x", __entry->index, __entry->irqs)
);
#endif
#define TRACE_INCLUDE_FILE mpm
#include <trace/define_trace.h>