litl  0.1.9
Data Fields

A data structure for recording events. More...

#include <litl_types.h>

Data Fields

int f_handle
 
char * filename
 
litl_offset_t general_offset
 
litl_buffer_t header_ptr
 
litl_buffer_t header
 
litl_size_t header_size
 
litl_size_t header_offset
 
litl_med_size_t header_nb_threads
 
litl_data_t is_header_flushed
 
litl_med_size_t nb_threads
 
litl_med_size_t nb_slots
 
litl_param_t threads_offset
 
litl_write_buffer_t ** buffers
 
litl_size_t nb_allocated_buffers
 
litl_size_t buffer_size
 
litl_data_t is_buffer_full
 
pthread_once_t index_once
 
pthread_key_t index
 
pthread_mutex_t lock_litl_flush
 
pthread_mutex_t lock_buffer_init
 
litl_data_t is_litl_initialized
 
volatile litl_data_t is_recording_paused
 
litl_data_t allow_buffer_flush
 
litl_data_t allow_thread_safety
 
litl_data_t allow_tid_recording
 

Detailed Description

A data structure for recording events.

Definition at line 307 of file litl_types.h.

Field Documentation

◆ allow_buffer_flush

litl_data_t litl_write_trace_t::allow_buffer_flush

Indicates whether buffer flush is enabled (1) or not (0). In case the flushing is disabled, the recording of events is stopped. By default, it is activated

Definition at line 336 of file litl_types.h.

◆ allow_thread_safety

litl_data_t litl_write_trace_t::allow_thread_safety

Indicates whether LiTL uses thread-safety (1) or not (0). By default, it is activated

Definition at line 337 of file litl_types.h.

◆ allow_tid_recording

litl_data_t litl_write_trace_t::allow_tid_recording

Indicates whether LiTL records tid (1) or not (0). By default, it is activated

Definition at line 338 of file litl_types.h.

◆ buffer_size

litl_size_t litl_write_trace_t::buffer_size

A buffer size

Definition at line 326 of file litl_types.h.

◆ buffers

litl_write_buffer_t** litl_write_trace_t::buffers

An array of thread-specific buffers

Definition at line 324 of file litl_types.h.

◆ f_handle

int litl_write_trace_t::f_handle

A file handler

Definition at line 308 of file litl_types.h.

◆ filename

char* litl_write_trace_t::filename

A file name

Definition at line 309 of file litl_types.h.

◆ general_offset

litl_offset_t litl_write_trace_t::general_offset

An offset from the beginning of the trace file to the next free slot

Definition at line 311 of file litl_types.h.

◆ header

litl_buffer_t litl_write_trace_t::header

A pointer to the next free slot in the header

Definition at line 314 of file litl_types.h.

◆ header_nb_threads

litl_med_size_t litl_write_trace_t::header_nb_threads

A number of threads in the header

Definition at line 317 of file litl_types.h.

◆ header_offset

litl_size_t litl_write_trace_t::header_offset

An offset from the beginning of the header to the next free slot

Definition at line 316 of file litl_types.h.

◆ header_ptr

litl_buffer_t litl_write_trace_t::header_ptr

A pointer to the beginning of the header

Definition at line 313 of file litl_types.h.

◆ header_size

litl_size_t litl_write_trace_t::header_size

A header size

Definition at line 315 of file litl_types.h.

◆ index

pthread_key_t litl_write_trace_t::index

A private thread variable that holds its index

Definition at line 330 of file litl_types.h.

◆ index_once

pthread_once_t litl_write_trace_t::index_once

Guarantees that the initialization function is called only once

Definition at line 329 of file litl_types.h.

◆ is_buffer_full

litl_data_t litl_write_trace_t::is_buffer_full

Indicates whether the buffer is full

Definition at line 327 of file litl_types.h.

◆ is_header_flushed

litl_data_t litl_write_trace_t::is_header_flushed

Indicates whether the header with threads pairs has been flushed

Definition at line 318 of file litl_types.h.

◆ is_litl_initialized

litl_data_t litl_write_trace_t::is_litl_initialized

Ensures that a performance analysis library does not start recording events before the initialization is finished

Definition at line 334 of file litl_types.h.

◆ is_recording_paused

volatile litl_data_t litl_write_trace_t::is_recording_paused

Indicates whether LiTL stops recording events (1) for a while or not (0)

Definition at line 335 of file litl_types.h.

◆ lock_buffer_init

pthread_mutex_t litl_write_trace_t::lock_buffer_init

Handles race conditions while initializing threads pairs and buffers pointers

Definition at line 332 of file litl_types.h.

◆ lock_litl_flush

pthread_mutex_t litl_write_trace_t::lock_litl_flush

Handles write conflicts while using pthread

Definition at line 331 of file litl_types.h.

◆ nb_allocated_buffers

litl_size_t litl_write_trace_t::nb_allocated_buffers

A number of thread-specific buffers that are allocated

Definition at line 325 of file litl_types.h.

◆ nb_slots

litl_med_size_t litl_write_trace_t::nb_slots

A number of chunks with the information on threads (tid, offset); first chunk, which is in the header, does not count; each contains at most NBTHREADS threads

Definition at line 321 of file litl_types.h.

◆ nb_threads

litl_med_size_t litl_write_trace_t::nb_threads

A number of threads

Definition at line 320 of file litl_types.h.

◆ threads_offset

litl_param_t litl_write_trace_t::threads_offset

An offset to the next chunk of pairs (tid, offset) for a given thread

Definition at line 322 of file litl_types.h.


The documentation for this struct was generated from the following file: