litl  0.1.1
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
Data Fields
litl_write_trace_t Struct Reference

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 304 of file litl_types.h.

Field Documentation

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 333 of file litl_types.h.

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 334 of file litl_types.h.

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 335 of file litl_types.h.

litl_size_t litl_write_trace_t::buffer_size

A buffer size

Definition at line 323 of file litl_types.h.

litl_write_buffer_t** litl_write_trace_t::buffers

An array of thread-specific buffers

Definition at line 321 of file litl_types.h.

int litl_write_trace_t::f_handle

A file handler

Definition at line 305 of file litl_types.h.

char* litl_write_trace_t::filename

A file name

Definition at line 306 of file litl_types.h.

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 308 of file litl_types.h.

litl_buffer_t litl_write_trace_t::header

A pointer to the next free slot in the header

Definition at line 311 of file litl_types.h.

litl_med_size_t litl_write_trace_t::header_nb_threads

A number of threads in the header

Definition at line 314 of file litl_types.h.

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 313 of file litl_types.h.

litl_buffer_t litl_write_trace_t::header_ptr

A pointer to the beginning of the header

Definition at line 310 of file litl_types.h.

litl_size_t litl_write_trace_t::header_size

A header size

Definition at line 312 of file litl_types.h.

pthread_key_t litl_write_trace_t::index

A private thread variable that holds its index

Definition at line 327 of file litl_types.h.

pthread_once_t litl_write_trace_t::index_once

Guarantees that the initialization function is called only once

Definition at line 326 of file litl_types.h.

litl_data_t litl_write_trace_t::is_buffer_full

Indicates whether the buffer is full

Definition at line 324 of file litl_types.h.

litl_data_t litl_write_trace_t::is_header_flushed

Indicates whether the header with threads pairs has been flushed

Definition at line 315 of file litl_types.h.

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 331 of file litl_types.h.

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 332 of file litl_types.h.

pthread_mutex_t litl_write_trace_t::lock_buffer_init

Handles race conditions while initializing threads pairs and buffers pointers

Definition at line 329 of file litl_types.h.

pthread_mutex_t litl_write_trace_t::lock_litl_flush

Handles write conflicts while using pthread

Definition at line 328 of file litl_types.h.

litl_size_t litl_write_trace_t::nb_allocated_buffers

A number of thread-specific buffers that are allocated

Definition at line 322 of file litl_types.h.

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 318 of file litl_types.h.

litl_med_size_t litl_write_trace_t::nb_threads

A number of threads

Definition at line 317 of file litl_types.h.

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 319 of file litl_types.h.


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