/usr/src/lttng-modules-2.7.1/lttng-tracer.h is in lttng-modules-dkms 2.7.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 | #ifndef _LTTNG_TRACER_H
#define _LTTNG_TRACER_H
/*
* lttng-tracer.h
*
* This contains the definitions for the Linux Trace Toolkit Next
* Generation tracer.
*
* Copyright (C) 2005-2012 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; only
* version 2.1 of the License.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include <stdarg.h>
#include <linux/types.h>
#include <linux/limits.h>
#include <linux/list.h>
#include <linux/cache.h>
#include <linux/timex.h>
#include <linux/wait.h>
#include <asm/atomic.h>
#include <asm/local.h>
#include "wrapper/trace-clock.h"
#include "wrapper/compiler.h"
#include "lttng-tracer-core.h"
#include "lttng-events.h"
#define LTTNG_MODULES_MAJOR_VERSION 2
#define LTTNG_MODULES_MINOR_VERSION 7
#define LTTNG_MODULES_PATCHLEVEL_VERSION 1
#define LTTNG_MODULES_EXTRAVERSION ""
#define LTTNG_VERSION_NAME "Herbe à Détourne"
#define LTTNG_VERSION_DESCRIPTION \
"Brewed with unrestrained amounts of Citra hop, the Herbe à Détourne is a fantastic New World Tripel brewed by \"Dieu du Ciel!\". Aromas of mango, cantaloupe melon and passion fruit, combined with a controlled bitter finish, unite in making this smooth golden-orange beer stand apart."
#ifndef CHAR_BIT
#define CHAR_BIT 8
#endif
/* Number of bytes to log with a read/write event */
#define LTTNG_LOG_RW_SIZE 32L
#define LTTNG_MAX_SMALL_SIZE 0xFFFFU
#ifdef RING_BUFFER_ALIGN
#define lttng_alignof(type) __alignof__(type)
#else
#define lttng_alignof(type) 1
#endif
/* Tracer properties */
#define CTF_MAGIC_NUMBER 0xC1FC1FC1
#define TSDL_MAGIC_NUMBER 0x75D11D57
/* CTF specification version followed */
#define CTF_SPEC_MAJOR 1
#define CTF_SPEC_MINOR 8
/*
* Number of milliseconds to retry before failing metadata writes on buffer full
* condition. (10 seconds)
*/
#define LTTNG_METADATA_TIMEOUT_MSEC 10000
#define LTTNG_RFLAG_EXTENDED RING_BUFFER_RFLAG_END
#define LTTNG_RFLAG_END (LTTNG_RFLAG_EXTENDED << 1)
#endif /* _LTTNG_TRACER_H */
|