reactor-c
C Runtime for Lingua Franca
Loading...
Searching...
No Matches
trace.h
Go to the documentation of this file.
1#ifndef TRACE_H
2#define TRACE_H
3
4#include <stdint.h>
5#include <stdbool.h>
6
7#include "lf_core_version.h"
8
14
18typedef enum {
19 trace_reactor, // Self struct.
20 trace_trigger, // Timer or action (argument to schedule()).
21 trace_user // User-defined trace object.
23
29 void* pointer; // Pointer-sized value that uniquely identifies the object.
30 void* trigger; // Pointer to the trigger (action or timer) or other secondary ID, if any.
31 _lf_trace_object_t type; // The type of trace object.
32 char* description; // A NULL terminated string.
33};
34
46
83
84#endif // TRACE_H
return address
Definition hashmap.h:74
API for runtime plugins to use to sanity-check compatibility with the core. Plugins APIs can include ...
instant_t start_time
Definition tag.c:33
void * worker(void *arg)
Definition reactor_threaded.c:911
Definition trace.h:28
void * pointer
Definition trace.h:29
void * trigger
Definition trace.h:30
char * description
Definition trace.h:32
_lf_trace_object_t type
Definition trace.h:31
Definition trace.h:35
int src_id
Definition trace.h:38
int64_t physical_time
Definition trace.h:42
int64_t extra_delay
Definition trace.h:44
int event_type
Definition trace.h:36
int dst_id
Definition trace.h:39
void * pointer
Definition trace.h:37
int64_t logical_time
Definition trace.h:40
void * trigger
Definition trace.h:43
int64_t microstep
Definition trace.h:41
Definition lf_core_version.h:28
void lf_tracing_register_trace_event(object_description_t description)
Register a kind of trace event. This should be called before tracepoints are reached.
Definition trace_impl.c:213
version_t lf_version_tracing()
Return a description of the compile-time properties of the current plugin.
Definition trace_impl.c:195
void lf_tracing_set_start_time(int64_t start_time)
Give the tracing module access to the start time. This may be invoked after many tracepoints have alr...
Definition trace_impl.c:272
void lf_tracing_global_init(char *file_name_prefix, int process_id, int max_num_local_threads)
Initialize the tracing module. Calling other API functions before calling this procedure is undefined...
Definition trace_impl.c:256
void lf_tracing_global_shutdown()
Shut down the tracing module. Calling other API functions after calling this procedure is undefined b...
Definition trace_impl.c:273
void lf_tracing_tracepoint(int worker, trace_record_nodeps_t *tr)
Submit a tracepoint from the given worker to the tracing module.
Definition trace_impl.c:224
_lf_trace_object_t
Definition trace.h:18
@ trace_trigger
Definition trace.h:20
@ trace_user
Definition trace.h:21
@ trace_reactor
Definition trace.h:19