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
|
#undef TRACE_SYSTEM
#define TRACE_SYSTEM string
#if !defined(_TRACE_STRING_H) || defined(TRACE_HEADER_MULTI_READ)
#define _TRACE_STRING_H
#include <linux/tracepoint.h>
TRACE_EVENT(memcpy,
TP_PROTO(void *dest, const void *src, size_t count, void *location),
TP_ARGS(dest, src, count, location),
TP_STRUCT__entry(
__field(void *, dest)
__field(const void *, src)
__field(size_t, count)
__field(void *, location)
),
TP_fast_assign(
__entry->dest = dest;
__entry->src = src;
__entry->count = count;
__entry->location = location;
),
TP_printk("dest=%p src=%p count=%ld location=%p",
__entry->dest, __entry->src,
__entry->count, __entry->location)
);
#undef TRACE_INCLUDE_PATH
#define TRACE_INCLUDE_PATH asm/trace/events
#endif /*_TRACE_STRING_H */
#include <trace/define_trace.h>
|