aboutsummaryrefslogtreecommitdiff
path: root/include/trace/events/input_cfboost.h
blob: 737b1e34f8b072d031f6001d370f57069365a4fb (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
/*
 * Copyright (c) 2013, NVIDIA CORPORATION.  All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify it
 * under the terms and conditions of the GNU General Public License,
 * version 2, as published by the Free Software Foundation.
 *
 * This program is distributed in the hope 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.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

#undef TRACE_SYSTEM
#define TRACE_SYSTEM input_cfboost

#if !defined(_TRACE_INPUT_CFBOOST_H) || defined(TRACE_HEADER_MULTI_READ)
#define _TRACE_INPUT_CFBOOST_H

#include <linux/ktime.h>
#include <linux/tracepoint.h>

TRACE_EVENT(input_cfboost_params,
	TP_PROTO(const char *name, unsigned int freq, unsigned int emc,
		unsigned int gpu, unsigned int cpus, unsigned long time),
	TP_ARGS(name, freq, emc, cpus, gpu, time),
	TP_STRUCT__entry(
		__field(const char *, name)
		__field(unsigned int, freq)
		__field(unsigned int, emc)
		__field(unsigned int, gpu)
		__field(unsigned int, cpus)
		__field(unsigned long, time)
	),
	TP_fast_assign(
		__entry->name = name;
		__entry->freq = freq;
		__entry->emc = emc;
		__entry->gpu = gpu;
		__entry->cpus = cpus;
		__entry->time = time;
	),
	TP_printk("name=%s freq=%u emc=%u gpu=%u, cpus=%u, time=%lu",
	  __entry->name, __entry->freq, __entry->emc, __entry->gpu,
	  __entry->cpus, __entry->time)
);

TRACE_EVENT(input_cfboost_event,
	TP_PROTO(const char *name, unsigned int type,
		unsigned int code, int value),
	TP_ARGS(name, type, code, value),
	TP_STRUCT__entry(
		__field(const char *, name)
		__field(unsigned int, type)
		__field(unsigned int, code)
		__field(int, value)
	),
	TP_fast_assign(
		__entry->name = name;
		__entry->type = type;
		__entry->code = code;
		__entry->value = value;
	),
	TP_printk("name=%s type=%u code=%u value=%d",
		__entry->name, __entry->type, __entry->code, __entry->value)
);

#endif /*  _TRACE_INPUT_CFBOOST_H */

/* This part must be outside protection */
#include <trace/define_trace.h>