summaryrefslogtreecommitdiffstats
path: root/src/tracing/eventtrace.tp
blob: f28ded100ecfeb703c8d842c8db929d2991b8a20 (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
#include "include/int_types.h"

TRACEPOINT_EVENT(eventtrace, func_enter,
    TP_ARGS(
        const char*, file,
        const char*, func,
        uint32_t, line),
    TP_FIELDS(
        ctf_string(file, file)
        ctf_string(func, func)
        ctf_integer(uint32_t, line, line)
    )
)

TRACEPOINT_EVENT(eventtrace, func_exit,
    TP_ARGS(
        const char*, file,
        const char*, func),
    TP_FIELDS(
        ctf_string(file, file)
        ctf_string(func, func)
    )
)

TRACEPOINT_EVENT(eventtrace, oid_event,
    TP_ARGS(
        const char*, oid,
        const char*, event,
        const char*, context,
        const char*, file,
        const char*, func,
        uint32_t, line),
    TP_FIELDS(
        ctf_string(oid, oid)
        ctf_string(event, event)
        ctf_string(context, context)
        ctf_string(file, file)
        ctf_string(func, func)
        ctf_integer(uint32_t, line, line)
    )
)

TRACEPOINT_EVENT(eventtrace, oid_elapsed,
    TP_ARGS(
        const char*, oid,
        const char*, event,
        const char*, context,
        double, elapsed,
        const char*, file,
        const char*, func,
        uint32_t, line),
    TP_FIELDS(
        ctf_string(oid, oid)
        ctf_string(event, event)
        ctf_string(context, context)
        ctf_float(double, elapsed, elapsed)
        ctf_string(file, file)
        ctf_string(func, func)
        ctf_integer(uint32_t, line, line)
    )
)