summaryrefslogtreecommitdiff
path: root/drivers/soc/qcom/tracer_pkt_private.h
blob: fc760e6b68d175d95af30650d77afc4e23606d65 (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) 2015, 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.
 */
#if !defined(_TRACER_PKT_TRACE_H) || defined(TRACE_HEADER_MULTI_READ)
#define _TRACER_PKT_TRACE_H

#undef TRACE_SYSTEM
#define TRACE_SYSTEM tracer_pkt
#undef TRACE_INCLUDE_PATH
#define TRACE_INCLUDE_PATH .
#undef TRACE_INCLUDE_FILE
#define TRACE_INCLUDE_FILE tracer_pkt_private

#include <linux/tracepoint.h>

TRACE_EVENT(tracer_pkt_event,

	TP_PROTO(uint32_t id, uint32_t *cc),

	TP_ARGS(id, cc),

	TP_STRUCT__entry(
		__field(uint32_t, id)
		__field(uint32_t, cc1)
		__field(uint32_t, cc2)
		__field(uint32_t, cc3)
	),

	TP_fast_assign(
		__entry->id = id;
		__entry->cc1 = cc[0];
		__entry->cc2 = cc[1];
		__entry->cc3 = cc[2];
	),

	TP_printk("CC - 0x%08x:0x%08x:0x%08x, ID - %d",
		__entry->cc1, __entry->cc2, __entry->cc3, __entry->id)
);
#endif /*_TRACER_PKT_TRACE_H*/

#include <trace/define_trace.h>