blob: fc760e6b68d175d95af30650d77afc4e23606d65 [file] [log] [blame]
Chris Lewfa6135e2016-08-01 13:29:46 -07001/* Copyright (c) 2015, The Linux Foundation. All rights reserved.
2 *
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License version 2 and
5 * only version 2 as published by the Free Software Foundation.
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
11 */
12#if !defined(_TRACER_PKT_TRACE_H) || defined(TRACE_HEADER_MULTI_READ)
13#define _TRACER_PKT_TRACE_H
14
15#undef TRACE_SYSTEM
16#define TRACE_SYSTEM tracer_pkt
17#undef TRACE_INCLUDE_PATH
18#define TRACE_INCLUDE_PATH .
19#undef TRACE_INCLUDE_FILE
20#define TRACE_INCLUDE_FILE tracer_pkt_private
21
22#include <linux/tracepoint.h>
23
24TRACE_EVENT(tracer_pkt_event,
25
26 TP_PROTO(uint32_t id, uint32_t *cc),
27
28 TP_ARGS(id, cc),
29
30 TP_STRUCT__entry(
31 __field(uint32_t, id)
32 __field(uint32_t, cc1)
33 __field(uint32_t, cc2)
34 __field(uint32_t, cc3)
35 ),
36
37 TP_fast_assign(
38 __entry->id = id;
39 __entry->cc1 = cc[0];
40 __entry->cc2 = cc[1];
41 __entry->cc3 = cc[2];
42 ),
43
44 TP_printk("CC - 0x%08x:0x%08x:0x%08x, ID - %d",
45 __entry->cc1, __entry->cc2, __entry->cc3, __entry->id)
46);
47#endif /*_TRACER_PKT_TRACE_H*/
48
49#include <trace/define_trace.h>
50