"Fossies" - the Fresh Open Source Software Archive

Member "lttng-modules-2.11.0-rc5/lttng-tracer.h" (11 Jun 2019, 1816 Bytes) of package /linux/misc/lttng-modules-2.11.0-rc5.tar.bz2:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "lttng-tracer.h" see the Fossies "Dox" file reference documentation and the latest Fossies "Diffs" side-by-side code changes report: 2.11.0-rc4_vs_2.11.0-rc5.

    1 /* SPDX-License-Identifier: (GPL-2.0 or LGPL-2.1) */
    2 #ifndef _LTTNG_TRACER_H
    3 #define _LTTNG_TRACER_H
    4 
    5 /*
    6  * lttng-tracer.h
    7  *
    8  * This contains the definitions for the Linux Trace Toolkit Next
    9  * Generation tracer.
   10  *
   11  * Copyright (C) 2005-2012 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
   12  */
   13 
   14 #include <stdarg.h>
   15 #include <linux/types.h>
   16 #include <linux/limits.h>
   17 #include <linux/list.h>
   18 #include <linux/cache.h>
   19 #include <linux/timex.h>
   20 #include <linux/wait.h>
   21 #include <asm/atomic.h>
   22 #include <asm/local.h>
   23 
   24 #include <wrapper/trace-clock.h>
   25 #include <wrapper/compiler.h>
   26 #include <wrapper/vmalloc.h>
   27 #include <lttng-tracer-core.h>
   28 #include <lttng-events.h>
   29 
   30 #define LTTNG_MODULES_MAJOR_VERSION 2
   31 #define LTTNG_MODULES_MINOR_VERSION 11
   32 #define LTTNG_MODULES_PATCHLEVEL_VERSION 0
   33 #define LTTNG_MODULES_EXTRAVERSION "-rc5"
   34 
   35 #define LTTNG_VERSION_NAME      "Lafontaine"
   36 #define LTTNG_VERSION_DESCRIPTION   "A modern Saison beer from Montréal's Oshlag microbrewery, Lafontaine is a refreshing, zesty, rice beer with hints of fruit and spices."
   37 
   38 #ifndef CHAR_BIT
   39 #define CHAR_BIT 8
   40 #endif
   41 
   42 /* Number of bytes to log with a read/write event */
   43 #define LTTNG_LOG_RW_SIZE       32L
   44 #define LTTNG_MAX_SMALL_SIZE        0xFFFFU
   45 
   46 #ifdef RING_BUFFER_ALIGN
   47 #define lttng_alignof(type) __alignof__(type)
   48 #else
   49 #define lttng_alignof(type) 1
   50 #endif
   51 
   52 /* Tracer properties */
   53 #define CTF_MAGIC_NUMBER        0xC1FC1FC1
   54 #define TSDL_MAGIC_NUMBER       0x75D11D57
   55 
   56 /* CTF specification version followed */
   57 #define CTF_SPEC_MAJOR          1
   58 #define CTF_SPEC_MINOR          8
   59 
   60 /*
   61  * Number of milliseconds to retry before failing metadata writes on buffer full
   62  * condition. (10 seconds)
   63  */
   64 #define LTTNG_METADATA_TIMEOUT_MSEC 10000
   65 
   66 #define LTTNG_RFLAG_EXTENDED        RING_BUFFER_RFLAG_END
   67 #define LTTNG_RFLAG_END         (LTTNG_RFLAG_EXTENDED << 1)
   68 
   69 #endif /* _LTTNG_TRACER_H */