summaryrefstree
path: root/kernel/include/trace/events/mpm.h
blob: 9134de1482209d4265eabb13404f3c52394ff935 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * Copyright (c) 2018-2020, The Linux Foundation. All rights reserved.
 */

#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)
);

TRACE_EVENT(mpm_wakeup_time,

	TP_PROTO(bool from_idle, u64 wakeup, u64 current_ticks),

	TP_ARGS(from_idle, wakeup, current_ticks),

	TP_STRUCT__entry(
		__field(bool, from_idle)
		__field(u64, wakeup)
		__field(u64, current_ticks)
	),

	TP_fast_assign(
		__entry->from_idle = from_idle;
		__entry->wakeup = wakeup;
		__entry->current_ticks = current_ticks;
	),

	TP_printk("idle:%d wakeup:0x%llx current:0x%llx", __entry->from_idle,
				__entry->wakeup, __entry->current_ticks)
);

#endif
#define TRACE_INCLUDE_FILE mpm
#include <trace/define_trace.h>