aboutsummaryrefslogtreecommitdiff
path: root/include/trace/events/pdc.h
blob: fca05480a31b453ed9e173c0a62d9d12060d441a (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
/* Copyright (c) 2017-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 pdc

#if !defined(_TRACE_PDC_) || defined(TRACE_HEADER_MULTI_READ)
#define _TRACE_PDC_H_

#include <linux/tracepoint.h>

TRACE_EVENT(irq_pin_config,

	TP_PROTO(char *func, u32 pin, u32 hwirq, u32 type, u32 enable),

	TP_ARGS(func, pin, hwirq, type, enable),

	TP_STRUCT__entry(
		__field(char *, func)
		__field(u32, pin)
		__field(u32, hwirq)
		__field(u32, type)
		__field(u32, enable)
	),

	TP_fast_assign(
		__entry->pin = pin;
		__entry->func = func;
		__entry->hwirq = hwirq;
		__entry->type = type;
		__entry->enable = enable;
	),

	TP_printk("%s hwirq:%u pin:%u type:%u enable:%u",
		__entry->func, __entry->hwirq, __entry->pin, __entry->type,
		__entry->enable)
);

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