summaryrefslogtreecommitdiff
path: root/libguile/whippet/api/gc-lttng.h
blob: d192be4ede85cf7d3ef7cd25a87d6aadaa6ddd47 (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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
#define LTTNG_UST_TRACEPOINT_PROVIDER whippet

#undef LTTNG_UST_TRACEPOINT_INCLUDE
#define LTTNG_UST_TRACEPOINT_INCLUDE "gc-lttng.h"

#if !defined(_TP_H) || defined(LTTNG_UST_TRACEPOINT_HEADER_MULTI_READ)
#define _TP_H

#include <lttng/tracepoint.h>

LTTNG_UST_TRACEPOINT_ENUM(
  whippet, gc_kind,
  LTTNG_UST_TP_ENUM_VALUES
  (lttng_ust_field_enum_value("MINOR", 1)
   lttng_ust_field_enum_value("MAJOR", 2)
   lttng_ust_field_enum_value("COMPACTING", 3)))

LTTNG_UST_TRACEPOINT_EVENT_CLASS(
  whippet, tracepoint,
  LTTNG_UST_TP_ARGS(),
  LTTNG_UST_TP_FIELDS())

LTTNG_UST_TRACEPOINT_EVENT_CLASS(
  whippet, size_tracepoint,
  LTTNG_UST_TP_ARGS(size_t, size),
  LTTNG_UST_TP_FIELDS(lttng_ust_field_integer(size_t, size, size)))


/* The tracepoint instances */
LTTNG_UST_TRACEPOINT_EVENT_INSTANCE(
  whippet, size_tracepoint, whippet, init,
  LTTNG_UST_TP_ARGS(size_t, size))
LTTNG_UST_TRACEPOINT_EVENT_INSTANCE(
  whippet, size_tracepoint, whippet, heap_resized,
  LTTNG_UST_TP_ARGS(size_t, size))
LTTNG_UST_TRACEPOINT_EVENT_INSTANCE(
  whippet, size_tracepoint, whippet, live_data_size,
  LTTNG_UST_TP_ARGS(size_t, size))

LTTNG_UST_TRACEPOINT_EVENT_INSTANCE(
  whippet, tracepoint, whippet, requesting_stop, LTTNG_UST_TP_ARGS())
LTTNG_UST_TRACEPOINT_EVENT_INSTANCE(
  whippet, tracepoint, whippet, waiting_for_stop, LTTNG_UST_TP_ARGS())
LTTNG_UST_TRACEPOINT_EVENT_INSTANCE(
  whippet, tracepoint, whippet, mutators_stopped, LTTNG_UST_TP_ARGS())
LTTNG_UST_TRACEPOINT_EVENT(
  whippet, prepare_gc,
  LTTNG_UST_TP_ARGS(int, gc_kind),
  LTTNG_UST_TP_FIELDS(
    lttng_ust_field_enum(whippet, gc_kind, int, gc_kind, gc_kind)))
LTTNG_UST_TRACEPOINT_EVENT_INSTANCE(
  whippet, tracepoint, whippet, roots_traced, LTTNG_UST_TP_ARGS())
LTTNG_UST_TRACEPOINT_EVENT_INSTANCE(
  whippet, tracepoint, whippet, heap_traced, LTTNG_UST_TP_ARGS())
LTTNG_UST_TRACEPOINT_EVENT_INSTANCE(
  whippet, tracepoint, whippet, ephemerons_traced, LTTNG_UST_TP_ARGS())
LTTNG_UST_TRACEPOINT_EVENT_INSTANCE(
  whippet, tracepoint, whippet, finalizers_traced, LTTNG_UST_TP_ARGS())
LTTNG_UST_TRACEPOINT_EVENT_INSTANCE(
  whippet, tracepoint, whippet, restarting_mutators, LTTNG_UST_TP_ARGS())

LTTNG_UST_TRACEPOINT_EVENT_INSTANCE(
  whippet, tracepoint, whippet, mutator_added, LTTNG_UST_TP_ARGS())
LTTNG_UST_TRACEPOINT_EVENT_INSTANCE(
  whippet, tracepoint, whippet, mutator_cause_gc, LTTNG_UST_TP_ARGS())
LTTNG_UST_TRACEPOINT_EVENT_INSTANCE(
  whippet, tracepoint, whippet, mutator_stopping, LTTNG_UST_TP_ARGS())
LTTNG_UST_TRACEPOINT_EVENT_INSTANCE(
  whippet, tracepoint, whippet, mutator_stopped, LTTNG_UST_TP_ARGS())
LTTNG_UST_TRACEPOINT_EVENT_INSTANCE(
  whippet, tracepoint, whippet, mutator_restarted, LTTNG_UST_TP_ARGS())
LTTNG_UST_TRACEPOINT_EVENT_INSTANCE(
  whippet, tracepoint, whippet, mutator_removed, LTTNG_UST_TP_ARGS())

LTTNG_UST_TRACEPOINT_EVENT_INSTANCE(
  whippet, tracepoint, whippet, trace_unpark_all, LTTNG_UST_TP_ARGS())
LTTNG_UST_TRACEPOINT_EVENT_INSTANCE(
  whippet, tracepoint, whippet, trace_share, LTTNG_UST_TP_ARGS())
LTTNG_UST_TRACEPOINT_EVENT_INSTANCE(
  whippet, tracepoint, whippet, trace_check_termination_begin, LTTNG_UST_TP_ARGS())
LTTNG_UST_TRACEPOINT_EVENT_INSTANCE(
  whippet, tracepoint, whippet, trace_check_termination_end, LTTNG_UST_TP_ARGS())
LTTNG_UST_TRACEPOINT_EVENT_INSTANCE(
  whippet, tracepoint, whippet, trace_steal, LTTNG_UST_TP_ARGS())
LTTNG_UST_TRACEPOINT_EVENT_INSTANCE(
  whippet, tracepoint, whippet, trace_roots_begin, LTTNG_UST_TP_ARGS())
LTTNG_UST_TRACEPOINT_EVENT_INSTANCE(
  whippet, tracepoint, whippet, trace_roots_end, LTTNG_UST_TP_ARGS())
LTTNG_UST_TRACEPOINT_EVENT_INSTANCE(
  whippet, tracepoint, whippet, trace_objects_begin, LTTNG_UST_TP_ARGS())
LTTNG_UST_TRACEPOINT_EVENT_INSTANCE(
  whippet, tracepoint, whippet, trace_objects_end, LTTNG_UST_TP_ARGS())
LTTNG_UST_TRACEPOINT_EVENT_INSTANCE(
  whippet, tracepoint, whippet, trace_worker_begin, LTTNG_UST_TP_ARGS())
LTTNG_UST_TRACEPOINT_EVENT_INSTANCE(
  whippet, tracepoint, whippet, trace_worker_end, LTTNG_UST_TP_ARGS())

#endif /* _TP_H */

#include <lttng/tracepoint-event.h>